diff options
author | hq <hq@FreeBSD.org> | 2004-12-13 07:53:24 +0800 |
---|---|---|
committer | hq <hq@FreeBSD.org> | 2004-12-13 07:53:24 +0800 |
commit | 8e4e8a47a66c0b70c56b396301a9a64c8ce8f528 (patch) | |
tree | 88ebce880d437fd17c2d901e9c39ea7f40326254 | |
parent | 69c96be084a5190f7ca5c52169b4f2213cdf9f92 (diff) | |
download | freebsd-ports-gnome-8e4e8a47a66c0b70c56b396301a9a64c8ce8f528.tar.gz freebsd-ports-gnome-8e4e8a47a66c0b70c56b396301a9a64c8ce8f528.tar.zst freebsd-ports-gnome-8e4e8a47a66c0b70c56b396301a9a64c8ce8f528.zip |
- Register needed JAR files in build dependencies as well [1]
- Use only those JAR files in the classpath when building utility classes
Reported by: kris via pointyhat
-rw-r--r-- | textproc/jaxup/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/textproc/jaxup/Makefile b/textproc/jaxup/Makefile index 57fa0671c752..7b3ee85805b2 100644 --- a/textproc/jaxup/Makefile +++ b/textproc/jaxup/Makefile @@ -14,12 +14,14 @@ DISTNAME= ${PORTNAME}-${PORTVERSION}-src MAINTAINER= hq@FreeBSD.org COMMENT= Java XUpdate engine -BUILD_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper -RUN_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \ - ${JAVALIBDIR}/jaxen-core.jar:${PORTSDIR}/java/jaxen \ - ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j \ +BUILD_DEPENDS= ${JAR_DEPENDS} +RUN_DEPENDS= ${JAR_DEPENDS} \ java:${PORTSDIR}/java/javavmwrapper +JAR_DEPENDS= ${JAVALIBDIR}/jdom.jar:${PORTSDIR}/java/jdom \ + ${JAVALIBDIR}/jaxen-full.jar:${PORTSDIR}/java/jaxen \ + ${JAVALIBDIR}/xercesImpl.jar:${PORTSDIR}/textproc/xerces-j + USE_ZIP= yes WRKSRC= ${WRKDIR}/${PORTNAME} @@ -44,6 +46,9 @@ PORTDOCS= LICENSE.txt api index.html jaxup_files xupdate-wd.html xupdate-wd_file .include <bsd.port.pre.mk> +UTIL_CLASSPATH_JARS= jaxen-full saxpath xercesImpl +UTIL_CLASSPATH!= ${ECHO_CMD} ${UTIL_CLASSPATH_JARS:S,^,${JAVALIBDIR}/,:S,$,.jar,} | ${TR} " " ":" + .if !defined(NOPORTDOCS) JDK_API!= (${FIND} -s ${LOCALBASE}/share/doc/jdk1.[4-5] -maxdepth 1 -name api -type d 2>/dev/null || ${TRUE}) | ${TAIL} -n 1 .if ${JDK_API} != "" @@ -63,7 +68,7 @@ post-extract: post-build: @${ECHO_MSG} ">> Building utility classes..." - cd ${WRKDIR} && ${JAVAC} -classpath "`${LOCALBASE}/bin/classpath`:${WRKSRC}/build/lib/jaxup.jar" DOMXUpdater.java + cd ${WRKDIR} && ${JAVAC} -classpath "${UTIL_CLASSPATH}:${WRKSRC}/build/lib/jaxup.jar" DOMXUpdater.java ${ECHO_CMD} "Main-Class: DOMXUpdater" >${WRKDIR}/MANIFEST cd ${WRKDIR} && ${JAR} -cmf MANIFEST jaxup-xupdater.jar DOMXUpdater.class |