2001-11-20 02:16:48 +00:00
|
|
|
# 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}
|
|
|
|
|
2003-11-10 01:39:44 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= Open source Java DirectConnect (TM) command-line client
|
2001-11-20 02:16:48 +00:00
|
|
|
|
2004-06-09 18:19:58 +00:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_VERSION= 1.3
|
|
|
|
USE_JIKES= no
|
2001-11-20 02:16:48 +00:00
|
|
|
WRKSRC= ${WRKDIR}/DirectConnect${PORTVERSION}
|
2001-11-20 16:53:17 +00:00
|
|
|
BUILD_WRKSRC= ${WRKDIR}/classes
|
2001-11-20 02:16:48 +00:00
|
|
|
PLIST_SUB= JAR_DIR=${JAR_DIR} \
|
|
|
|
JAR_FILE=${JAR_FILE}
|
|
|
|
|
|
|
|
JAVAVM= ${LOCALBASE}/bin/javavm
|
|
|
|
JAR_DIR= share/java/jar/${PORTNAME}
|
|
|
|
JAR_MANIFEST= ${FILESDIR}/manifest
|
2001-11-20 16:53:17 +00:00
|
|
|
CLASS_SRCDIR= ${WRKSRC}/source
|
2001-11-20 02:16:48 +00:00
|
|
|
|
|
|
|
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:
|
2001-11-20 16:53:17 +00:00
|
|
|
@${MKDIR} ${BUILD_WRKSRC}
|
2004-06-09 18:19:58 +00:00
|
|
|
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} ${CLASS_SRCDIR}/*.java
|
2001-11-20 16:53:17 +00:00
|
|
|
@${CP} ${CLASS_SRCDIR}/*.txt ${BUILD_WRKSRC}
|
2002-03-28 14:48:49 +00:00
|
|
|
@cd ${BUILD_WRKSRC} && ${JAR} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} *
|
2001-11-20 02:16:48 +00:00
|
|
|
|
|
|
|
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>
|