diff options
author | lioux <lioux@FreeBSD.org> | 2001-11-20 16:53:17 +0000 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2001-11-20 16:53:17 +0000 |
commit | 428708ef64af86882b5a95cb96956e69c1a618c0 (patch) | |
tree | 6b8ae090ba16068826503ad1ea0d8ce9d6d4b8ab /net-p2p | |
parent | bb6d7ef22d60264cfcd1b37d062c08b0908caf1c (diff) | |
download | FreeBSD-ports-428708ef64af86882b5a95cb96956e69c1a618c0.zip FreeBSD-ports-428708ef64af86882b5a95cb96956e69c1a618c0.tar.gz |
Actually build instead of just using shipped bytecode
Diffstat (limited to 'net-p2p')
-rw-r--r-- | net-p2p/javadc/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net-p2p/javadc/Makefile b/net-p2p/javadc/Makefile index 0627687..c31bc85 100644 --- a/net-p2p/javadc/Makefile +++ b/net-p2p/javadc/Makefile @@ -19,15 +19,17 @@ RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \ ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk12-beta WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION} -BUILD_WRKSRC= ${WRKSRC}/classes +BUILD_WRKSRC= ${WRKDIR}/classes PLIST_SUB= JAR_DIR=${JAR_DIR} \ JAR_FILE=${JAR_FILE} JDK_VERSION= 1.2.2 +JAVAC_CMD= ${LOCALBASE}/jdk${JDK_VERSION}/bin/javac JAR_CMD= ${LOCALBASE}/jdk${JDK_VERSION}/bin/jar JAVAVM= ${LOCALBASE}/bin/javavm JAR_DIR= share/java/jar/${PORTNAME} JAR_MANIFEST= ${FILESDIR}/manifest +CLASS_SRCDIR= ${WRKSRC}/source DOC_FILES= COPYING ChangeLog INSTALL README @@ -38,6 +40,9 @@ post-patch: # as far as build goes... ;) do-build: + @${MKDIR} ${BUILD_WRKSRC} + @${JAVAC_CMD} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} ${CLASS_SRCDIR}/*.java 2>/dev/null + @${CP} ${CLASS_SRCDIR}/*.txt ${BUILD_WRKSRC} @cd ${BUILD_WRKSRC} && ${JAR_CMD} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} * do-install: |