summaryrefslogtreecommitdiff
path: root/lang/joos
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
committerjlam <jlam@pkgsrc.org>2008-03-04 16:38:11 +0000
commit8216d744ac7ee52a87a0c54540fc68d487f4ad1f (patch)
tree3b3e69289dd17a1030bb7365e1cb146dbfea41bd /lang/joos
parent642995a0c4f1913cc6893865f1f5905084199dc1 (diff)
downloadpkgsrc-8216d744ac7ee52a87a0c54540fc68d487f4ad1f.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'lang/joos')
-rw-r--r--lang/joos/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/lang/joos/Makefile b/lang/joos/Makefile
index 69344854fa0..e8384e6afe2 100644
--- a/lang/joos/Makefile
+++ b/lang/joos/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2007/02/22 19:26:38 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2008/03/04 16:38:12 jlam Exp $
#
DISTNAME= joos-0.2
@@ -10,12 +10,14 @@ MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://www.brics.dk/~mis/dOvs/index.html
COMMENT= Java Object Oriented Subset
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_JAVA= run
do-install:
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/joos
- cd ${WRKSRC} && ${PAX} -s ,^./.*orig,, -rw . ${PREFIX}/joos
- cd ${PREFIX}/joos/Bin && ${LN} -s joos.a- joos
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/joos
+ cd ${WRKSRC} && ${PAX} -s ,^./.*orig,, -rw . ${DESTDIR}${PREFIX}/joos
+ cd ${DESTDIR}${PREFIX}/joos/Bin && ${LN} -s joos.a- joos
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"