summaryrefslogtreecommitdiff
path: root/editors/speedbar
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-03 18:25:52 +0000
committerjlam <jlam>2008-03-03 18:25:52 +0000
commit3d81effabfcbab5f1fe7b559a3b6f6d5f452285e (patch)
tree94991d2182e36c43f4a6dac0f35a6023230a4d45 /editors/speedbar
parentdb9434603719ac10a2850a15ce7013bca33811d2 (diff)
downloadpkgsrc-3d81effabfcbab5f1fe7b559a3b6f6d5f452285e.tar.gz
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'editors/speedbar')
-rw-r--r--editors/speedbar/Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/editors/speedbar/Makefile b/editors/speedbar/Makefile
index ccbe506a431..04b9c4ceaf4 100644
--- a/editors/speedbar/Makefile
+++ b/editors/speedbar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2007/07/05 18:21:20 jnemeth Exp $
+# $NetBSD: Makefile,v 1.19 2008/03/03 18:25:53 jlam Exp $
#
DISTNAME= speedbar-0.14beta4
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://cedet.sourceforge.net/speedbar.shtml
COMMENT= Directory and code browser for emacs
+PKG_DESTDIR_SUPPORT= user-destdir
+
.include "../../mk/emacs.mk"
PKGSRC_MAKE_ENV+= EMACS=${EMACS}
@@ -31,13 +33,14 @@ IMAGES= sb-dir-plus.xpm sb-dir-minus.xpm sb-dir.xpm sb-pg-plus.xpm \
INSTALLATION_DIRS= ${EMACS_INFOPREFIX}
do-install:
- ${INSTALL_DATA_DIR} ${EMACS_LISPPREFIX}/speedbar
+ ${INSTALL_DATA_DIR} ${DESTDIR}${EMACS_LISPPREFIX}/speedbar
cd ${WRKSRC} && ${INSTALL_DATA} ${SRCS} ${SRCS:.el=.elc} \
- ${EMACS_LISPPREFIX}/speedbar
- cd ${WRKSRC} && ${INSTALL_DATA} ${IMAGES} ${EMACS_LISPPREFIX}/speedbar
+ ${DESTDIR}${EMACS_LISPPREFIX}/speedbar
+ cd ${WRKSRC} && ${INSTALL_DATA} ${IMAGES} \
+ ${DESTDIR}${EMACS_LISPPREFIX}/speedbar
cd ${WRKSRC}; for file in *.info *.info-[0-9]*; do \
${TEST} ! -f "$$file" || \
- ${INSTALL_DATA} "$$file" ${EMACS_INFOPREFIX}; \
+ ${INSTALL_DATA} "$$file" ${DESTDIR}${EMACS_INFOPREFIX}; \
done
.include "../../mk/bsd.pkg.mk"