aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2014-05-13 20:06:33 +0800
committerale <ale@FreeBSD.org>2014-05-13 20:06:33 +0800
commit4342b111e141f5e32b30669c22f5569650187373 (patch)
treec061db0bb3b551a046756cc6d38f2390f632dd85
parent22dd6842c1cd3bf1017bc0360d14a801524d0b92 (diff)
downloadfreebsd-ports-gnome-4342b111e141f5e32b30669c22f5569650187373.tar.gz
freebsd-ports-gnome-4342b111e141f5e32b30669c22f5569650187373.tar.zst
freebsd-ports-gnome-4342b111e141f5e32b30669c22f5569650187373.zip
Stagify.
-rw-r--r--print/pdf-renderer/Makefile19
1 files changed, 11 insertions, 8 deletions
diff --git a/print/pdf-renderer/Makefile b/print/pdf-renderer/Makefile
index 8e46299a66b0..d2d5313f9528 100644
--- a/print/pdf-renderer/Makefile
+++ b/print/pdf-renderer/Makefile
@@ -20,24 +20,27 @@ JAVA_VERSION= 1.6+
USE_ANT= yes
ALL_TARGET= jar
-.if !defined(NOPORTDOCS)
-ALL_TARGET+= javadoc
-.endif
PLIST_FILES= %%JAVAJARDIR%%/${PORTNAME}.jar
PORTDOCS= *
-NO_STAGE= yes
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MDOCS}
+ALL_TARGET+= javadoc
+.endif
+
do-install:
@${ECHO_MSG} -n ">> Installing JAR file as ${JAVAJARDIR}/${PORTNAME}.jar..."
- @${INSTALL_DATA} ${WRKSRC}/dist/PDFRenderer.jar ${JAVAJARDIR}/${PORTNAME}.jar
+ @${INSTALL_DATA} ${WRKSRC}/dist/PDFRenderer.jar \
+ ${STAGEDIR}${JAVAJARDIR}/${PORTNAME}.jar
@${ECHO_MSG} " [DONE]"
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${ECHO_MSG} -n ">> Installing documentation..."
- @${MKDIR} ${DOCSDIR}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/dist && ${FIND} javadoc \
- | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
+ | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${STAGEDIR}${DOCSDIR} > /dev/null 2>&1
@${ECHO_MSG} " [DONE]"
.endif