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 | e655762fb793a09bcd629a5ee8889dfe5b1550a0 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/eclipse | |
parent | 2d370b7fe4d16560d65355fc39f74d9ef5e1f0c9 (diff) | |
download | pkgsrc-e655762fb793a09bcd629a5ee8889dfe5b1550a0.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/eclipse')
-rw-r--r-- | devel/eclipse/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/devel/eclipse/Makefile b/devel/eclipse/Makefile index 8d6a9a92121..6ac04b931e9 100644 --- a/devel/eclipse/Makefile +++ b/devel/eclipse/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.20 2006/05/22 22:22:02 jlam Exp $ +# $NetBSD: Makefile,v 1.21 2008/03/03 17:45:35 jlam Exp $ # DISTNAME= ${PKGNAME_NOREV} @@ -16,6 +16,8 @@ LICENSE= eclipse-license DEPENDS+= apache-ant>=1.4.1:../../devel/apache-ant +PKG_DESTDIR_SUPPORT= user-destdir + PKG_JVMS_ACCEPTED= sun-jdk15 sun-jdk14 MAKE_ENV+= JAVA_HOME=${PKG_JAVA_HOME:Q} @@ -51,10 +53,11 @@ post-build: ${RM} -fr ${WRKDIR}/tmp do-install: - cd ${PREFIX} && unzip ${WRKDIR}/result/linux-motif-x86-sdk.zip + cd ${DESTDIR}${PREFIX} && \ + unzip ${WRKDIR}/result/linux-motif-x86-sdk.zip ${SED} -e "s,@PREFIX@,${PREFIX}," ${FILESDIR}/eclipse > \ - ${WRKDIR}/.eclipse - ${INSTALL_SCRIPT} ${WRKDIR}/.eclipse ${PREFIX}/bin/eclipse + ${WRKDIR}/.eclipse + ${INSTALL_SCRIPT} ${WRKDIR}/.eclipse ${DESTDIR}${PREFIX}/bin/eclipse .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk" |