diff options
author | obache <obache@pkgsrc.org> | 2011-03-21 06:05:44 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-03-21 06:05:44 +0000 |
commit | d3d1e6300650c6c88590f62928a2aa8f29e0ee31 (patch) | |
tree | e5f43f9e624ec36671dedda488576dbb55174283 /editors/emacs21 | |
parent | 4005236684ad37d267143fdb49bdf31221f8db14 (diff) | |
download | pkgsrc-d3d1e6300650c6c88590f62928a2aa8f29e0ee31.tar.gz |
Add user-destdir installation support.
Diffstat (limited to 'editors/emacs21')
-rw-r--r-- | editors/emacs21/Makefile | 4 | ||||
-rw-r--r-- | editors/emacs21/Makefile.common | 9 |
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 |