summaryrefslogtreecommitdiff
path: root/devel/jflex
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 17:45:33 +0000
commit4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/jflex
parent3a62565eb9471348d02d74145e302b5675905a43 (diff)
downloadpkgsrc-4c8382aec039aefeebaf1aaac5cd7985337ed917.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/jflex')
-rw-r--r--devel/jflex/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/devel/jflex/Makefile b/devel/jflex/Makefile
index a4b38d12d5f..0d2b14f169b 100644
--- a/devel/jflex/Makefile
+++ b/devel/jflex/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2007/02/22 08:24:44 rillig Exp $
+# $NetBSD: Makefile,v 1.2 2008/03/03 17:45:35 jlam Exp $
#
DISTNAME= jflex-1.4.1
@@ -9,6 +9,8 @@ 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
@@ -18,10 +20,11 @@ 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 ${PREFIX}/bin/jflex
- ${INSTALL_DATA} ${WRKSRC}/lib/JFlex.jar ${PREFIX}/lib/java/
- cd ${WRKSRC}/doc && pax -wr -pm * ${PREFIX}/share/doc/jflex
- cd ${WRKSRC}/examples && pax -wr -pm * ${PREFIX}/share/examples/jflex
+ ${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"