blob: 376ac4cbb5b7c5e03370d373caf7fff376fa0a80 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# 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}
MASTER_SITE_SUBDIR= ${PORTNAME:L}
MAINTAINER= lioux@FreeBSD.org
BROKEN= 'Does not currently work'
USE_JAVA= 1.2+
NEED_JAVAC= YES
USE_ZIP= yes
NO_WRKSUBDIR= yes
BUILD_WRKSRC= ${WRKSRC}/classes
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
CLASS_PACKAGE= net/sourceforge/jift
CLASS_SRCDIRS= node/query \
node/net/packet \
node/net/crypto \
node/net \
.
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:
@${MKDIR} ${BUILD_WRKSRC}
.for dir in ${CLASS_SRCDIRS}
@${JAVAC} -d ${BUILD_WRKSRC} -classpath ${BUILD_WRKSRC} -sourcepath ${WRKDIR} ${WRKDIR}/${CLASS_PACKAGE}/${dir}/*.java
.endfor
@cd ${BUILD_WRKSRC} && ${JAR} -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}
.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>
|