aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-08-28 21:20:21 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-08-28 21:20:21 +0800
commitdea901dd50f529b6a70a2b62a50ff8e3f72e4ac4 (patch)
tree1a1d0386e526c2b962140718e81b5c02be6306a6 /math
parent97e696c463c74c4acd5e7f021397b55659a4e50e (diff)
downloadfreebsd-ports-gnome-dea901dd50f529b6a70a2b62a50ff8e3f72e4ac4.tar.gz
freebsd-ports-gnome-dea901dd50f529b6a70a2b62a50ff8e3f72e4ac4.tar.zst
freebsd-ports-gnome-dea901dd50f529b6a70a2b62a50ff8e3f72e4ac4.zip
- Fix build with DOCS disabled (port tried to install nonexistinent files)
- Switch to options helpers Approved by: portmgr blanket
Diffstat (limited to 'math')
-rw-r--r--math/jama/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/math/jama/Makefile b/math/jama/Makefile
index 76ab1356a244..25d476fa9b1c 100644
--- a/math/jama/Makefile
+++ b/math/jama/Makefile
@@ -7,7 +7,8 @@ CATEGORIES= math devel
MASTER_SITES= http://math.nist.gov/tnt/
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
DIST_SUBDIR= tnt
-EXTRACT_ONLY=
+EXTRACT_ONLY= # empty
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
MAINTAINER= erik@bz.bzflag.bz
COMMENT= Java-like Matrix C++ Templates
@@ -20,17 +21,15 @@ NO_BUILD= yes
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-DISTFILES=${DISTNAME}${EXTRACT_SUFX} jama102doc.zip
-.endif
+DOCS_DISTFILES= jama102doc.zip
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/include/tnt
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX} \
-d ${STAGEDIR}${PREFIX}/include/tnt
${MKDIR} ${WRKDIR}/doc ${STAGEDIR}${DOCSDIR}
+
+do-install-DOCS-on:
${EXTRACT_CMD} ${EXTRACT_BEFORE_ARGS} ${DISTDIR}/${DIST_SUBDIR}/jama102doc.zip \
-d ${WRKDIR}/doc
(cd ${WRKDIR}/doc/doxygen && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})