summaryrefslogtreecommitdiff
path: root/net-p2p/javadc/Makefile
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-11-20 02:16:48 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2001-11-20 02:16:48 +0000
commit38779987a4c2cc45fe9481689bb7091069572c56 (patch)
tree5f036955047a713d781e10e8c7a0bb24fb2838a2 /net-p2p/javadc/Makefile
parentUpdated MASTER_SITES. (diff)
New port javadc version 0.20: Open source Java DirectConnect (TM)
command-line client
Diffstat (limited to 'net-p2p/javadc/Makefile')
-rw-r--r--net-p2p/javadc/Makefile58
1 files changed, 58 insertions, 0 deletions
diff --git a/net-p2p/javadc/Makefile b/net-p2p/javadc/Makefile
new file mode 100644
index 000000000000..06276877d0d1
--- /dev/null
+++ b/net-p2p/javadc/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: java Direct Connection
+# Date created: Mon Nov 19 23:48:51 BRST 2001
+# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= javadc
+PORTVERSION= 0.20
+CATEGORIES= net java
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+
+MAINTAINER= lioux@FreeBSD.org
+
+BUILD_DEPENDS= ${LOCALBASE}/jdk${JDK_VERSION}/bin/jar:${PORTSDIR}/java/jdk12-beta
+RUN_DEPENDS= ${JAVAVM}:${PORTSDIR}/java/javavmwrapper \
+ ${LOCALBASE}/etc/javavms:${PORTSDIR}/java/jre \
+ ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk12-beta
+
+WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION}
+BUILD_WRKSRC= ${WRKSRC}/classes
+PLIST_SUB= JAR_DIR=${JAR_DIR} \
+ JAR_FILE=${JAR_FILE}
+
+JDK_VERSION= 1.2.2
+JAR_CMD= ${LOCALBASE}/jdk${JDK_VERSION}/bin/jar
+JAVAVM= ${LOCALBASE}/bin/javavm
+JAR_DIR= share/java/jar/${PORTNAME}
+JAR_MANIFEST= ${FILESDIR}/manifest
+
+DOC_FILES= COPYING ChangeLog INSTALL README
+
+post-patch:
+ @${SED} -e "s|%%JAR_DIR%%|${JAR_DIR}|;s|%%JAR_FILE%%|${JAR_FILE}|; \
+ s|%%JAVAVM%%|${JAVAVM}|;s|%%PREFIX%%|${PREFIX}|" \
+ ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
+
+# as far as build goes... ;)
+do-build:
+ @cd ${BUILD_WRKSRC} && ${JAR_CMD} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} *
+
+do-install:
+ @${MKDIR} ${PREFIX}/${JAR_DIR}
+ @${INSTALL_DATA} ${WRKDIR}/${JAR_FILE} ${PREFIX}/${JAR_DIR}
+ @${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME:L}
+.ifndef(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for doc in ${DOC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.pre.mk>
+
+JAR_FILE= ${PORTNAME}.jar
+
+.include <bsd.port.post.mk>