summaryrefslogtreecommitdiff
path: root/math/glpk
diff options
context:
space:
mode:
authorDmitry Sivachenko <demon@FreeBSD.org>2001-03-13 11:55:18 +0000
committerDmitry Sivachenko <demon@FreeBSD.org>2001-03-13 11:55:18 +0000
commit5798f2c9d45b48b27a712ea5b575b946f71dbff0 (patch)
treedb3b3566224307329dca67c41ee69d6164cdde2d /math/glpk
parentUpdate to 2.4. (diff)
Install additional documentation.
Notes
Notes: svn path=/head/; revision=39746
Diffstat (limited to 'math/glpk')
-rw-r--r--math/glpk/Makefile15
-rw-r--r--math/glpk/distinfo3
-rw-r--r--math/glpk/pkg-plist4
3 files changed, 22 insertions, 0 deletions
diff --git a/math/glpk/Makefile b/math/glpk/Makefile
index 50ebfa76774e..6ce96871fead 100644
--- a/math/glpk/Makefile
+++ b/math/glpk/Makefile
@@ -10,9 +10,24 @@ PORTVERSION= 2.1
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= glpk
+.if !defined(NOPORTDOCS)
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DOCFILES}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+.endif
MAINTAINER= demon@FreeBSD.org
GNU_CONFIGURE= yes
+DOCFILES= glpk_lr-1.1.1.ps.gz glpk_sm.ps.gz glpk_ug-1.1.1.ps.gz
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${PREFIX}/share/doc/glpk
+ for file in ${DOCFILES} ; do \
+ ${INSTALL_DATA} ${DISTDIR}/$$file ${PREFIX}/share/doc/glpk/ ; \
+ ${GUNZIP_CMD} ${PREFIX}/share/doc/glpk/$$file ; \
+ done
+.endif
+
.include <bsd.port.mk>
diff --git a/math/glpk/distinfo b/math/glpk/distinfo
index 412855941db2..daeba2e18388 100644
--- a/math/glpk/distinfo
+++ b/math/glpk/distinfo
@@ -1 +1,4 @@
MD5 (glpk-2.1.tar.gz) = 4b79594e4975257a70d8ff62194f6450
+MD5 (glpk_lr-1.1.1.ps.gz) = 0a6be2872326b4f4a06d15f1b0ab6166
+MD5 (glpk_sm.ps.gz) = 2ebff1d9049ecbb95b5149f9691caf42
+MD5 (glpk_ug-1.1.1.ps.gz) = 52131f60de64d70d1f0f23e2587599ff
diff --git a/math/glpk/pkg-plist b/math/glpk/pkg-plist
index 1b0952468751..8e42ba42cce0 100644
--- a/math/glpk/pkg-plist
+++ b/math/glpk/pkg-plist
@@ -18,3 +18,7 @@ include/glprsm.h
include/glpset.h
include/glpstr.h
lib/libglpk.a
+%%PORTDOCS%%share/doc/glpk/glpk_lr-1.1.1.ps
+%%PORTDOCS%%share/doc/glpk/glpk_ug-1.1.1.ps
+%%PORTDOCS%%share/doc/glpk/glpk_sm.ps
+%%PORTDOCS%%@dirrm share/doc/glpk