aboutsummaryrefslogtreecommitdiffstats
path: root/net/spread-j
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/spread-j
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/spread-j')
-rw-r--r--net/spread-j/Makefile21
1 files changed, 13 insertions, 8 deletions
diff --git a/net/spread-j/Makefile b/net/spread-j/Makefile
index cc9a12c41095..ecdcc78979a9 100644
--- a/net/spread-j/Makefile
+++ b/net/spread-j/Makefile
@@ -18,25 +18,30 @@ USE_JAVA= YES
JAVA_VERSION= 1.6+
PKGMESSAGE= ${WRKSRC}/../license.txt
+OPTIONS_DEFINE= DOCS
+
ANT?= ${LOCALBASE}/bin/ant
-.if defined(NOPORTDOCS)
+ANT_PARAMS+= -Dlib.dir=${STAGEDIR}${JAVAJARDIR} -Djavadoc.destdir=docs -Dversion=${PORTVERSION}
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}/java
+PLIST_SUB+= PORTNAME="${PORTNAME}" PORTVERSION="${PORTVERSION}"
+
+.include <bsd.port.options.mk>
+
+.if empty(PORT_OPTIONS:MDOCS)
ANT_TARGET= jar
.else
ANT_TARGET= javadocs jar
PORTDOCS+= java
.endif
-ANT_PARAMS+= -Dlib.dir=${STAGEDIR}${JAVAJARDIR} -Djavadoc.destdir=docs -Dversion=${PORTVERSION}
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-src-${PORTVERSION}/java
-PLIST_SUB+= PORTNAME="${PORTNAME}" PORTVERSION="${PORTVERSION}"
do-build:
- @cd ${WRKSRC} && \
+ cd ${WRKSRC} && \
${SETENV} JAVA_HOME=${JAVA_HOME} ${ANT} ${ANT_TARGET} ${ANT_PARAMS}
do-install:
- @cd ${WRKSRC} && ${ANT} install ${ANT_PARAMS}
-.if !defined(NOPORTDOCS)
+ cd ${WRKSRC} && ${ANT} install ${ANT_PARAMS}
+.if ${PORT_OPTIONS:MDOCS}
${INSTALL} -d -o root -g wheel -m 0755 ${STAGEDIR}${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/recThread.java ${STAGEDIR}${EXAMPLESDIR}/java
${INSTALL_DATA} ${WRKSRC}/Flooder.java ${STAGEDIR}${EXAMPLESDIR}/java