summaryrefslogtreecommitdiff
path: root/devel/javadeps
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 17:45:33 +0000
committerjlam <jlam>2008-03-03 17:45:33 +0000
commit7a1142123798f48c48fc2d1fe38690a6b94d1df7 (patch)
tree620d08cc8bf79f9bacb7746632192670c7d6350d /devel/javadeps
parente629efdae96bb93a089e74409a36149a86e10f81 (diff)
downloadpkgsrc-7a1142123798f48c48fc2d1fe38690a6b94d1df7.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/javadeps')
-rw-r--r--devel/javadeps/Makefile17
1 files changed, 10 insertions, 7 deletions
diff --git a/devel/javadeps/Makefile b/devel/javadeps/Makefile
index 871d0a097f2..571aca39f32 100644
--- a/devel/javadeps/Makefile
+++ b/devel/javadeps/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2006/03/16 22:46:30 wiz Exp $
+# $NetBSD: Makefile,v 1.15 2008/03/03 17:45:35 jlam Exp $
#
DISTNAME= javadeps-1.1
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.vet.com.au/java/javadeps/
COMMENT= Automatic dependency tracking for Java
+PKG_DESTDIR_SUPPORT= destdir
+
WRKSRC= ${WRKDIR}/JavaDeps-1.1
USE_JAVA= run
@@ -25,12 +27,13 @@ do-build:
done
do-install:
- ${CP} ${WRKSRC}/jdeps ${PREFIX}/bin
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/jdeps
- ${CP} ${WRKSRC}/jdeps.jar ${PREFIX}/share/jdeps/jdeps.jar
- ${INSTALL_PROGRAM_DIR} ${PREFIX}/share/doc/jdeps
- cd ${WRKSRC}/doc && ${PAX} -rw -pe . ${PREFIX}/share/doc/jdeps
- ${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/jdeps ${PREFIX}/share/doc/jdeps
+ ${CP} ${WRKSRC}/jdeps ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/share/jdeps
+ ${CP} ${WRKSRC}/jdeps.jar ${DESTDIR}${PREFIX}/share/jdeps/jdeps.jar
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${PREFIX}/share/doc/jdeps
+ cd ${WRKSRC}/doc && ${PAX} -rw -pe . ${DESTDIR}${PREFIX}/share/doc/jdeps
+ ${CHOWN} -R ${BINOWN}:${BINGRP} \
+ ${DESTDIR}${PREFIX}/share/jdeps ${PREFIX}/share/doc/jdeps
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"