summaryrefslogtreecommitdiff
path: root/math/glpk/Makefile
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/Makefile
parentUpdate to 2.4. (diff)
Install additional documentation.
Notes
Notes: svn path=/head/; revision=39746
Diffstat (limited to 'math/glpk/Makefile')
-rw-r--r--math/glpk/Makefile15
1 files changed, 15 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>