diff options
author | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2024-12-27 20:10:41 +0100 |
---|---|---|
committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2024-12-31 09:57:55 +0100 |
commit | 0835676e361bca74b28b09fe0425ed5ee958f26b (patch) | |
tree | 9617744fefea8689073e388ab345f23c6765b4fd /security/xml-security | |
parent | security/libtatsu: Update to 1.0.4 (diff) |
Mk/**java.mk: Convert bsd.java.mk to USES
The following features have been added or changed:
- Instead of USE_JAVA use USES=java. This defaults to
USES=java:build,run if NO_BUILD is undefined. Else it defaults to
USES=java:run
- Instead of USE_ANT=yes use USES=java:ant which also implies
USES=java:build
- Instead of JAVA_BUILD=yes use USES=java:build. Does not imply run or
extract
- Instead of JAVA_EXTRACT=yes use USES=java:extract does not imply
build or run
- Instead of JAVA_RUN=yes use USES=java:run does not imply extract or
build
- Instead of USE_JAVA=<version> use USES=java and JAVA_VERSION=<version>
Approved by: mat (portmgr), glewis
Differential Revision: https://reviews.freebsd.org/D48201
Diffstat (limited to 'security/xml-security')
-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> |