aboutsummaryrefslogtreecommitdiffstats
path: root/net/jakarta-commons-net
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-05 05:44:04 +0800
committeradamw <adamw@FreeBSD.org>2014-07-05 05:44:04 +0800
commit6f4296b0136375c849414ae5c03abbad92011567 (patch)
tree745f97af838071739e1b6070acbf4862962b5405 /net/jakarta-commons-net
parent7358548dfc6a0ba78831b72d59132f5b85966e0d (diff)
downloadfreebsd-ports-gnome-6f4296b0136375c849414ae5c03abbad92011567.tar.gz
freebsd-ports-gnome-6f4296b0136375c849414ae5c03abbad92011567.tar.zst
freebsd-ports-gnome-6f4296b0136375c849414ae5c03abbad92011567.zip
Remove NOPORTDOCS and NOPORTEXAMPLES.
Diffstat (limited to 'net/jakarta-commons-net')
-rw-r--r--net/jakarta-commons-net/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/net/jakarta-commons-net/Makefile b/net/jakarta-commons-net/Makefile
index ee8c1ede1b5e..2497fe227c34 100644
--- a/net/jakarta-commons-net/Makefile
+++ b/net/jakarta-commons-net/Makefile
@@ -21,6 +21,8 @@ USE_JAVA= yes
JAVA_VERSION= 1.6+
USE_ANT= yes
+OPTIONS_DEFINE= DOCS
+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKE_ARGS= -cp ${JAVALIBDIR}/junit.jar -Dlibdir=${JAVALIBDIR} -Dnoget=""
MAKE_ENV+= LANG=C
@@ -31,7 +33,9 @@ ALL_TARGET= dist
ALL_TARGET= compile test jar dist
.endif
-.if !defined(NOPORTDOCS)
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
PORTDOCS= LICENSE.txt NOTICE.txt api
ALL_TARGET+= javadoc
.endif
@@ -42,7 +46,7 @@ do-install:
${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation..."
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/dist/docs && ${FIND} api \