freebsd-ports/java/jflex/Makefile
Herve Quiroz 958b51028a - Update to version 1.4.1 [1]
- Use USE_ANT [1]
- No longer add %%JAVAJARDIR%% to PLIST_SUB [1]
- Update to bsd.java.mk 2.0
- No longer patch the distribution shell script but rather use a FreeBSD
  specific one [1]
- Use SUB_FILES/SUB_LIST to perform substitutions on the launcher shell script
- Minor cosmetic improvements
- Use JAVALIBDIR rather than JAVAJARDIR for JAR dependencies
- Moved the BUILD_DEPENDS statement to calm portlint

PR:		75198 [1]
Submitted by:	maintainer [1]
2004-12-20 14:36:39 +00:00

49 lines
1.3 KiB
Makefile

# 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="${DISTDIR}/JFlex.jar:${DISTDIR}/java_cup.jar:${JAVALIBDIR}/junit.jar"
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
SUB_FILES= jflex.sh
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>