diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-11-20 16:53:17 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2001-11-20 16:53:17 +0000 |
commit | cab70e65366448b1e690dff5286bce4e79ad9669 (patch) | |
tree | d4dce40ef0ec5eada1041b1fe3c5c8ea2d721b67 /net-p2p/javadc | |
parent | 786a71b71250f78e64408ea2d8dca4a6d92d94b3 (diff) |
Actually build instead of just using shipped bytecode
Notes
Notes:
svn path=/head/; revision=50266
Diffstat (limited to 'net-p2p/javadc')
-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 06276877d0d1..c31bc8549da4 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: |