summaryrefslogtreecommitdiff
path: root/editors/emacs21
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2011-03-21 06:05:44 +0000
committerobache <obache@pkgsrc.org>2011-03-21 06:05:44 +0000
commitfc3d21cb1b9a34a823d74e59cf7b82e1ba19f47d (patch)
treee5f43f9e624ec36671dedda488576dbb55174283 /editors/emacs21
parentf2d739c44c91e50fd4416ba628d574e7586b5841 (diff)
downloadpkgsrc-fc3d21cb1b9a34a823d74e59cf7b82e1ba19f47d.tar.gz
Add user-destdir installation support.
Diffstat (limited to 'editors/emacs21')
-rw-r--r--editors/emacs21/Makefile4
-rw-r--r--editors/emacs21/Makefile.common9
2 files changed, 9 insertions, 4 deletions
diff --git a/editors/emacs21/Makefile b/editors/emacs21/Makefile
index edc62c10997..034919441bc 100644
--- a/editors/emacs21/Makefile
+++ b/editors/emacs21/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2011/03/10 10:24:52 obache Exp $
+# $NetBSD: Makefile,v 1.19 2011/03/21 06:05:44 obache Exp $
PKGREVISION= 21
CATEGORIES= editors
@@ -6,6 +6,8 @@ COMMENT= GNU editing macros (editor)
CONFLICTS+= emacs-nox11-[0-9]*
+PKG_DESTDIR_SUPPORT= user-destdir
+
USE_TOOLS+= imake
.include "options.mk"
diff --git a/editors/emacs21/Makefile.common b/editors/emacs21/Makefile.common
index 05fe8442901..670eda135d3 100644
--- a/editors/emacs21/Makefile.common
+++ b/editors/emacs21/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.7 2010/05/05 14:26:36 roy Exp $
+# $NetBSD: Makefile.common,v 1.8 2011/03/21 06:05:44 obache Exp $
DISTNAME= emacs-${EMACSVERSION}a
@@ -28,6 +28,9 @@ CHECK_WRKREF_SKIP+= bin/emacs
CHECK_WRKREF_SKIP+= bin/emacs-${EMACSVERSION}
CONFIGURE_ARGS+= --srcdir=${WRKSRC:Q}
+INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
+INSTALL_MAKE_FLAGS+= mandir=${DESTDIR}${PREFIX}/${PKGMANDIR}
+INSTALL_MAKE_FLAGS+= infodir=${DESTDIR}${PREFIX}/${PKGINFODIR}
.include "../../mk/bsd.prefs.mk"
@@ -97,5 +100,5 @@ pre-install:
@${FIND} ${WRKSRC} -type f -name "*.orig" -print | ${XARGS} ${RM} -f
post-install:
- ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/emacs
- ${CHMOD} -R go-w ${PREFIX}/share/emacs
+ ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/share/emacs
+ ${CHMOD} -R go-w ${DESTDIR}${PREFIX}/share/emacs