aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2001-11-21 00:53:17 +0800
committerlioux <lioux@FreeBSD.org>2001-11-21 00:53:17 +0800
commit428708ef64af86882b5a95cb96956e69c1a618c0 (patch)
tree6b8ae090ba16068826503ad1ea0d8ce9d6d4b8ab /net
parentbb6d7ef22d60264cfcd1b37d062c08b0908caf1c (diff)
downloadfreebsd-ports-gnome-428708ef64af86882b5a95cb96956e69c1a618c0.tar.gz
freebsd-ports-gnome-428708ef64af86882b5a95cb96956e69c1a618c0.tar.zst
freebsd-ports-gnome-428708ef64af86882b5a95cb96956e69c1a618c0.zip
Actually build instead of just using shipped bytecode
Diffstat (limited to 'net')
-rw-r--r--net/javadc/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/javadc/Makefile b/net/javadc/Makefile
index 06276877d0d1..c31bc8549da4 100644
--- a/net/javadc/Makefile
+++ b/net/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: