blob: 035080f69b5d7e6ef05c6cb7e0fc1e2244ab6f32 (
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
|
# Ports collection Makefile for: JFlex
# Date created: 27 January 2004
# Whom: Conor McDermottroe <ports@mcdermottroe.com>
#
# $FreeBSD$
#
PORTNAME= jflex
PORTVERSION= 1.4.1
CATEGORIES= java devel
MASTER_SITES= http://www.jflex.de/:jflexde \
http://jflex.sourceforge.net/jar/devel/:jflexsf
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz:jflexde \
JFlex.jar:jflexsf \
java_cup.jar:jflexsf
EXTRACT_ONLY= ${PORTNAME}-${PORTVERSION}.tar.gz
MAINTAINER= ports@mcdermottroe.com
COMMENT= The Fast Lexical Analyser Generator for Java[tm]
BUILD_DEPENDS= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
USE_JAVA= yes
USE_ANT= yes
BUILD_WRKSRC= ${WRKSRC}/src
ALL_TARGET= jar
MAKE_ENV+= CLASSPATH="${JAVALIBDIR}/junit.jar"
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
SUB_FILES= jflex.sh
post-extract:
${MKDIR} ${WRKSRC}/tools
${CP} ${DISTDIR}/JFlex.jar ${WRKSRC}/tools/
${CP} ${DISTDIR}/java_cup.jar ${WRKSRC}/tools/
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/jflex.sh ${PREFIX}/bin/jflex
${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${JAVAJARDIR}/JFlex.jar
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
${MKDIR} ${EXAMPLESDIR}
.for EXAMPLE in binary byaccj cup interpreter java simple standalone
${MKDIR} ${EXAMPLESDIR}/${EXAMPLE}
${INSTALL_DATA} ${WRKSRC}/examples/${EXAMPLE}/* ${EXAMPLESDIR}/${EXAMPLE}
.endfor
.include <bsd.port.mk>
|