diff options
Diffstat (limited to 'security/xml-security/Makefile')
-rw-r--r-- | security/xml-security/Makefile | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/security/xml-security/Makefile b/security/xml-security/Makefile index 7c796082ea85..d03e3fb355fd 100644 --- a/security/xml-security/Makefile +++ b/security/xml-security/Makefile @@ -15,13 +15,11 @@ RUN_DEPENDS= ${JAVALIBDIR}/commons-logging.jar:java/apache-commons-logging LICENSE= APACHE20 -OPTIONS_DEFINE= DOCS EXAMPLES -USES= cpe zip +USES= cpe java:ant zip CPE_PRODUCT= xml_security_for_java CPE_VENDOR= apache -USE_JAVA= yes + WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION} -USE_ANT= yes MAKE_ENV= ANT_INCLUDE_SHARED_JARS=YES ALL_TARGET= jar @@ -30,30 +28,28 @@ PORTEXAMPLES= * PLIST_FILES= %%JAVAJARDIR%%/xmlsec.jar -.include <bsd.port.options.mk> +OPTIONS_DEFINE= DOCS EXAMPLES -.if ${PORT_OPTIONS:MDOCS} -ALL_TARGET+= javadoc -.endif +DOCS_ALL_TARGET= javadoc do-install: @${ECHO} -n ">> Installing JAR as ${JAVAJARDIR}/xmlsec.jar..." @${INSTALL_DATA} ${WRKSRC}/build/xmlsec-${PORTVERSION}.jar \ ${STAGEDIR}/${JAVAJARDIR}/xmlsec.jar @${ECHO} " [ DONE ]" -.if ${PORT_OPTIONS:MDOCS} + +do-install-DOCS-on: @${ECHO} -n ">> Installing documentation in ${DOCSDIR}..." @${MKDIR} ${STAGEDIR}/${DOCSDIR} @(cd ${WRKSRC}/build/docs/html && ${COPYTREE_SHARE} javadoc \ ${STAGEDIR}/${DOCSDIR}) @${ECHO} " [ DONE ]" -.endif -.if ${PORT_OPTIONS:MEXAMPLES} + +do-install-EXAMPLES-on: @${ECHO} -n ">> Installing examples in ${EXAMPLESDIR}..." @${MKDIR} ${STAGEDIR}/${EXAMPLESDIR} @(cd ${WRKSRC}/samples && ${COPYTREE_SHARE} "javax org" \ ${STAGEDIR}/${EXAMPLESDIR}) @${ECHO} " [ DONE ]" -.endif .include <bsd.port.mk> |