summaryrefslogtreecommitdiff
path: root/devel/jflex/Makefile
blob: 8597330d332380daf64b92e198bd50e1e49e9add (plain)
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
# $NetBSD: Makefile,v 1.5 2012/10/31 11:17:07 asau Exp $
#

DISTNAME=	jflex-1.4.1
CATEGORIES=	devel
MASTER_SITES=	http://jflex.de/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://jflex.de/
COMMENT=	Fast lexical analyzer generator for Java

USE_LANGUAGES=	# none
USE_JAVA=	run
USE_TOOLS+=	pax

INSTALLATION_DIRS=	bin lib/java share/doc/jflex share/examples/jflex

do-build:
	printf "#! ${SH}\\nexec ${PKG_JAVA_HOME}/bin/java -jar ${PREFIX}/lib/java/JFlex.jar \"\$$@\"\\n" > ${WRKSRC}/jflex.sh

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/jflex.sh ${DESTDIR}${PREFIX}/bin/jflex
	${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${DESTDIR}${PREFIX}/lib/java/
	cd ${WRKSRC}/doc && pax -wr -pm * ${DESTDIR}${PREFIX}/share/doc/jflex
	cd ${WRKSRC}/examples && pax -wr -pm * \
		${DESTDIR}${PREFIX}/share/examples/jflex

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"