summaryrefslogtreecommitdiff
path: root/lang/sun-jre6
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/sun-jre6
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/sun-jre6')
-rw-r--r--lang/sun-jre6/Makefile.common8
1 files changed, 5 insertions, 3 deletions
diff --git a/lang/sun-jre6/Makefile.common b/lang/sun-jre6/Makefile.common
index d9537bf487f..735e8f0c232 100644
--- a/lang/sun-jre6/Makefile.common
+++ b/lang/sun-jre6/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.8 2008/01/20 12:51:43 obache Exp $
+# $NetBSD: Makefile.common,v 1.9 2008/03/04 16:38:13 jlam Exp $
CATEGORIES= lang java
COMMENT= Sun's Java(tm) 2 Standard Edition, ${DOWNLOAD_NAME}
@@ -17,6 +17,8 @@ NO_BIN_ON_FTP= ${RESTRICTED}
EMUL_PLATFORMS= linux-i386
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../mk/bsd.prefs.mk"
EMUL_MODULES.linux= compat locale x11
@@ -67,7 +69,7 @@ post-fetch:
fi
do-install:
- ${INSTALL_PROGRAM_DIR} ${JAVA_HOME}
- cd ${WRKSRC} && ${PAX} -rwp ma . ${JAVA_HOME}
+ ${INSTALL_PROGRAM_DIR} ${DESTDIR}${JAVA_HOME}
+ cd ${WRKSRC} && ${PAX} -rwp ma . ${DESTDIR}${JAVA_HOME}
.include "../../mk/java-env.mk"