aboutsummaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2014-05-13 12:06:33 +0000
committerAlex Dupre <ale@FreeBSD.org>2014-05-13 12:06:33 +0000
commit4fdaf29780878169e8087b0ab327521fa42c9dae (patch)
treec061db0bb3b551a046756cc6d38f2390f632dd85 /print
parent1f8935d509a71cde0654809aa661b5d37241436b (diff)
downloadports-4fdaf29780878169e8087b0ab327521fa42c9dae.tar.gz
ports-4fdaf29780878169e8087b0ab327521fa42c9dae.zip
Notes
Diffstat (limited to 'print')
-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