4c8382aec0
their files via a custom do-install target.
30 lines
882 B
Makefile
30 lines
882 B
Makefile
# $NetBSD: Makefile,v 1.2 2008/03/03 17:45:35 jlam Exp $
|
|
#
|
|
|
|
DISTNAME= jflex-1.4.1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= http://jflex.de/
|
|
|
|
MAINTAINER= rillig@NetBSD.org
|
|
HOMEPAGE= http://jflex.de/
|
|
COMMENT= Fast lexical analyzer generator for Java
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
USE_LANGUAGES= # none
|
|
USE_JAVA= run
|
|
|
|
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"
|