diff options
author | Alex Dupre <ale@FreeBSD.org> | 2014-05-13 12:06:33 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2014-05-13 12:06:33 +0000 |
commit | 4fdaf29780878169e8087b0ab327521fa42c9dae (patch) | |
tree | c061db0bb3b551a046756cc6d38f2390f632dd85 /print | |
parent | 1f8935d509a71cde0654809aa661b5d37241436b (diff) | |
download | ports-4fdaf29780878169e8087b0ab327521fa42c9dae.tar.gz ports-4fdaf29780878169e8087b0ab327521fa42c9dae.zip |
Notes
Diffstat (limited to 'print')
-rw-r--r-- | print/pdf-renderer/Makefile | 19 |
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 |