summaryrefslogtreecommitdiff
path: root/science/colt
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-04 22:08:14 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-04 22:08:14 +0000
commitd7964bc2699613e5b855a60b33978c6926fed4ac (patch)
treee17b8e2668f61273f7d92b0e106d3da5553774ce /science/colt
parentdd46e5cccaacbd51b3bbcf35c2de7103807d58d7 (diff)
downloadfreebsd-ports-d7964bc2699613e5b855a60b33978c6926fed4ac.zip
Remove NOPORTDOCS and NOPORTEXAMPLES.
Diffstat (limited to 'science/colt')
-rw-r--r--science/colt/Makefile21
1 files changed, 10 insertions, 11 deletions
diff --git a/science/colt/Makefile b/science/colt/Makefile
index a8e0e291c85b..2d88d567d086 100644
--- a/science/colt/Makefile
+++ b/science/colt/Makefile
@@ -14,18 +14,24 @@ USE_JAVA= yes
JAVA_VERSION= 1.6+
WRKSRC= ${WRKDIR}/${PORTNAME}
-.if !defined(WITHOUT_COMPILE)
+OPTIONS_DEFINE= DOCS COMPILE
+OPTIONS_DEFAULT=COMPILE
+COMPILE_DESC= Install the pre-compiled .jar file
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCOMPILE}
USE_ANT= yes
ALL_TARGET= build
MAKE_ENV= LANG=en_US.ISO8859-1
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
ALL_TARGET+= javadoc
.endif
.else
NO_BUILD= yes
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= *
.endif
@@ -33,15 +39,8 @@ PLIST_FILES= %%JAVAJARDIR%%/colt.jar
.include <bsd.port.pre.mk>
-pre-fetch:
- @${ECHO_MSG} ""
- @${ECHO_MSG} "You may use the following build options:"
- @${ECHO_MSG} ""
- @${ECHO_MSG} " WITHOUT_COMPILE=yes Install the pre-compiled .jar file"
- @${ECHO_MSG} ""
-
do-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation in ${STAGEDIR}${DOCSDIR}..."
@cd ${WRKSRC}/doc && ${FIND} . -type d -exec ${MKDIR} ${STAGEDIR}${DOCSDIR}/{} \;
@cd ${WRKSRC}/doc && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/{} \;