2001-11-19 23:45:29 -05:00
|
|
|
# New ports collection makefile for: jiFT
|
|
|
|
# Date created: Mon Nov 19 23:48:51 BRST 2001
|
|
|
|
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= jiFT
|
|
|
|
PORTVERSION= 0.8
|
|
|
|
CATEGORIES= net java
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2001-11-23 17:21:44 -05:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME:L}
|
2001-11-19 23:45:29 -05:00
|
|
|
|
|
|
|
MAINTAINER= lioux@FreeBSD.org
|
|
|
|
|
2002-01-21 14:27:13 -05:00
|
|
|
BROKEN= 'Does not currently work'
|
|
|
|
|
2002-03-28 09:48:49 -05:00
|
|
|
USE_JAVA= 1.2+
|
2002-04-26 18:28:52 -04:00
|
|
|
NEED_JAVAC= YES
|
2001-11-19 23:45:29 -05:00
|
|
|
USE_ZIP= yes
|
|
|
|
NO_WRKSUBDIR= yes
|
2001-11-20 12:42:55 -05:00
|
|
|
BUILD_WRKSRC= ${WRKSRC}/classes
|
2001-11-19 23:45:29 -05: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
|
|
|
|
|
|
|
|
DOC_FILES= copying.txt readme.txt
|
2001-11-20 12:42:55 -05:00
|
|
|
CLASS_PACKAGE= net/sourceforge/jift
|
|
|
|
CLASS_SRCDIRS= node/query \
|
|
|
|
node/net/packet \
|
|
|
|
node/net/crypto \
|
|
|
|
node/net \
|
|
|
|
.
|
2001-11-19 23:45:29 -05:00
|
|
|
|
|
|
|
post-patch:
|
|
|
|
# remove trailing ^M
|
|
|
|
@${PERL} -pi -ne 's!\r\n!\n!' ${WRKSRC}/*.txt
|
|
|
|
@${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 12:42:55 -05:00
|
|
|
@${MKDIR} ${BUILD_WRKSRC}
|
|
|
|
.for dir in ${CLASS_SRCDIRS}
|
2002-03-28 09:48:49 -05:00
|
|
|
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} -sourcepath ${WRKDIR} ${WRKDIR}/${CLASS_PACKAGE}/${dir}/*.java
|
2001-11-20 12:42:55 -05:00
|
|
|
.endfor
|
2002-03-28 09:48:49 -05:00
|
|
|
@cd ${BUILD_WRKSRC} && ${JAR} -cmf ${JAR_MANIFEST} ${WRKDIR}/${JAR_FILE} *
|
2001-11-19 23:45:29 -05:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
@${MKDIR} ${PREFIX}/${JAR_DIR}
|
|
|
|
@${INSTALL_DATA} ${WRKDIR}/${JAR_FILE} ${PREFIX}/${JAR_DIR}
|
|
|
|
@${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${PREFIX}/bin/${PORTNAME}
|
|
|
|
.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>
|