summaryrefslogtreecommitdiff
path: root/editors/jde/Makefile
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-03 18:25:52 +0000
committerjlam <jlam@pkgsrc.org>2008-03-03 18:25:52 +0000
commit80c7fb273d8e710ea174cde389ccea199e8a754b (patch)
tree94991d2182e36c43f4a6dac0f35a6023230a4d45 /editors/jde/Makefile
parent38c8b857b2a15de072b4fa8baf0650634b5be996 (diff)
downloadpkgsrc-80c7fb273d8e710ea174cde389ccea199e8a754b.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'editors/jde/Makefile')
-rw-r--r--editors/jde/Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/editors/jde/Makefile b/editors/jde/Makefile
index 843bd2e76a6..e916af711b1 100644
--- a/editors/jde/Makefile
+++ b/editors/jde/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2007/07/05 18:21:20 jnemeth Exp $
+# $NetBSD: Makefile,v 1.23 2008/03/03 18:25:52 jlam Exp $
#
DISTNAME= jde-2.3.2
@@ -18,6 +18,8 @@ DEPENDS+= ${EMACS_PKGNAME_PREFIX}eieio>=0.17:../../lang/eieio
DEPENDS+= ${EMACS_PKGNAME_PREFIX}semantic>=1.4rc13:../../devel/semantic
DEPENDS+= ${EMACS_PKGNAME_PREFIX}elib>=1.0:../../devel/elib
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/${DISTNAME}/lisp
.include "../../mk/emacs.mk"
@@ -38,17 +40,19 @@ post-extract:
@${RMDIR} ${WRKDIR}/${DISTNAME}/java/classes
do-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jde
- ${INSTALL_DATA_DIR} ${PREFIX}/share/jde
- ${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/jde
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/jde
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/jde
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/jde
cd ${WRKDIR}/${DISTNAME}/doc && \
${PAX} -s',^src.*,,' -s',.*\.nosearch.*,,' \
- -rw * ${PREFIX}/share/doc/jde
+ -rw * ${DESTDIR}${PREFIX}/share/doc/jde
cd ${WRKDIR}/${DISTNAME} && \
${PAX} -s',^java/classes.*,,' -s',^java/src.*,,' \
- -s',.*\.nosearch.*,,' -rw java ${PREFIX}/share/jde
+ -s',.*\.nosearch.*,,' -rw java \
+ ${DESTDIR}${PREFIX}/share/jde
cd ${WRKDIR}/${DISTNAME} && \
- ${PAX} -rw -s ',.*\.orig$$,,' lisp ${EMACS_LISPPREFIX}/jde
+ ${PAX} -rw -s ',.*\.orig$$,,' lisp \
+ ${DESTDIR}${EMACS_LISPPREFIX}/jde
.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"