From b9a330aa43602992a7f8bd052bf8d74eb31eff45 Mon Sep 17 00:00:00 2001 From: Alex Dupre Date: Mon, 12 May 2014 16:02:34 +0000 Subject: [PATCH] Stagify. --- net/jgroups/Makefile | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/net/jgroups/Makefile b/net/jgroups/Makefile index fac3cdfdece1..5d0ece01fe65 100644 --- a/net/jgroups/Makefile +++ b/net/jgroups/Makefile @@ -11,34 +11,33 @@ MAINTAINER= ale@FreeBSD.org COMMENT= A Java toolkit for reliable multicast communication LICENSE= LGPL21 -LICENSE_FILE= ${WRKSRC}/LICENSE + +OPTIONS_DEFINE= DOCS USE_JAVA= yes JAVA_VERSION= 1.6+ USE_ANT= yes ALL_TARGET= jar -.if !defined(NOPORTDOCS) -ALL_TARGET+= javadoc -.endif + +PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar PORTDATA= * PORTDOCS= * -PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar +.include + +.if ${PORT_OPTIONS:MDOCS} +ALL_TARGET+= javadoc +.endif -NO_STAGE= yes do-install: ${INSTALL_DATA} ${WRKSRC}/dist/${DISTNAME}.Final.jar \ - ${JAVAJARDIR}/${PORTNAME}.jar -.if !defined(NOPORTDATA) - @${MKDIR} ${DATADIR} + ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar + @${MKDIR} ${STAGEDIR}${DATADIR} @${INSTALL_DATA} ${WRKSRC}/dist/${PORTNAME}-sources.jar \ - ${DATADIR}/ -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/dist/README ${DOCSDIR}/ - @(cd ${WRKSRC}/dist && ${COPYTREE_SHARE} javadoc ${DOCSDIR}) -.endif + ${STAGEDIR}${DATADIR}/ + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/dist/README ${STAGEDIR}${DOCSDIR}/ + @(cd ${WRKSRC}/dist && ${COPYTREE_SHARE} javadoc ${STAGEDIR}${DOCSDIR}) .include