aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2001-03-13 19:55:18 +0800
committerdemon <demon@FreeBSD.org>2001-03-13 19:55:18 +0800
commitfcdaad18043d4d2312d94f30e0298f2ffee1babf (patch)
tree71bb107309a098d412c4127e5d0b0789650b59d4
parent16e72441100aece9f997856e23521744893de5b2 (diff)
downloadfreebsd-ports-gnome-fcdaad18043d4d2312d94f30e0298f2ffee1babf.tar.gz
freebsd-ports-gnome-fcdaad18043d4d2312d94f30e0298f2ffee1babf.tar.zst
freebsd-ports-gnome-fcdaad18043d4d2312d94f30e0298f2ffee1babf.zip
Install additional documentation.
-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