diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
commit | 4c8382aec039aefeebaf1aaac5cd7985337ed917 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/sablecc | |
parent | 3a62565eb9471348d02d74145e302b5675905a43 (diff) | |
download | pkgsrc-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/sablecc')
-rw-r--r-- | devel/sablecc/Makefile | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/devel/sablecc/Makefile b/devel/sablecc/Makefile index a9604a3c2c4..c75e48e3990 100644 --- a/devel/sablecc/Makefile +++ b/devel/sablecc/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2006/10/04 21:36:00 wiz Exp $ +# $NetBSD: Makefile,v 1.11 2008/03/03 17:45:37 jlam Exp $ # DISTNAME= sablecc-2.16.2 @@ -10,6 +10,8 @@ MAINTAINER= hag@linnaean.org HOMEPAGE= http://sablecc.org/ COMMENT= Java based Compiler Compiler +PKG_DESTDIR_SUPPORT= user-destdir + USE_JAVA= run USE_JAVA2= yes @@ -21,9 +23,9 @@ do-build: < ${FILESDIR}/sablecc > ${WRKDIR}/sablecc do-install: - ${INSTALL_SCRIPT} ${WRKDIR}/sablecc ${PREFIX}/bin - ${INSTALL_DATA_DIR} ${PREFIX}/lib/java - ${INSTALL_DATA} ${WRKSRC}/lib/sablecc.jar ${PREFIX}/lib/java + ${INSTALL_SCRIPT} ${WRKDIR}/sablecc ${DESTDIR}${PREFIX}/bin + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/java + ${INSTALL_DATA} ${WRKSRC}/lib/sablecc.jar ${DESTDIR}${PREFIX}/lib/java .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" |