From 0835676e361bca74b28b09fe0425ed5ee958f26b Mon Sep 17 00:00:00 2001 From: Muhammad Moinur Rahman Date: Fri, 27 Dec 2024 20:10:41 +0100 Subject: 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= use USES=java and JAVA_VERSION= Approved by: mat (portmgr), glewis Differential Revision: https://reviews.freebsd.org/D48201 --- security/xml-security/Makefile | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'security/xml-security') 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 +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 -- cgit v1.2.3