aboutsummaryrefslogtreecommitdiff
path: root/math/jama
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-04 00:52:39 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-04 00:52:39 +0000
commitd9b51276267edffe96f5dfa613e9010e8b20d481 (patch)
tree71cbf3545f3c46063cafedf3043c72b11789854f /math/jama
parent3b13c98a60e823f1bc3e1f443d21e61fcb8dcbcc (diff)
downloadports-d9b51276267edffe96f5dfa613e9010e8b20d481.tar.gz
ports-d9b51276267edffe96f5dfa613e9010e8b20d481.zip
Notes
Diffstat (limited to 'math/jama')
-rw-r--r--math/jama/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/math/jama/Makefile b/math/jama/Makefile
index c5d803aa779d..76ab1356a244 100644
--- a/math/jama/Makefile
+++ b/math/jama/Makefile
@@ -6,9 +6,6 @@ PORTVERSION= 1.2.5
CATEGORIES= math devel
MASTER_SITES= http://math.nist.gov/tnt/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
-.ifndef NOPORTDOCS
-DISTFILES=${DISTNAME}${EXTRACT_SUFX} jama102doc.zip
-.endif
DIST_SUBDIR= tnt
EXTRACT_ONLY=
@@ -21,6 +18,14 @@ RUN_DEPENDS= ${LOCALBASE}/include/tnt/tnt.h:${PORTSDIR}/devel/tnt
USES= zip
NO_BUILD= yes
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+DISTFILES=${DISTNAME}${EXTRACT_SUFX} jama102doc.zip
+.endif
+
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/tnt
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \