summaryrefslogtreecommitdiff
path: root/editors/leim21
diff options
context:
space:
mode:
authorobache <obache>2011-03-21 06:05:44 +0000
committerobache <obache>2011-03-21 06:05:44 +0000
commit7c5a1985a0a18efec05e3471c88e3aa20062aed2 (patch)
treee5f43f9e624ec36671dedda488576dbb55174283 /editors/leim21
parentf905b9f63df528db45273a283081633f8e91241f (diff)
downloadpkgsrc-7c5a1985a0a18efec05e3471c88e3aa20062aed2.tar.gz
Add user-destdir installation support.
Diffstat (limited to 'editors/leim21')
-rw-r--r--editors/leim21/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/editors/leim21/Makefile b/editors/leim21/Makefile
index 7e05c730143..4cd6ea44664 100644
--- a/editors/leim21/Makefile
+++ b/editors/leim21/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/10/11 09:31:56 uebayasi Exp $
+# $NetBSD: Makefile,v 1.8 2011/03/21 06:12:19 obache Exp $
DISTNAME= leim-${VERSION}
PKGNAME= ${EMACS_PKGNAME_PREFIX}${DISTNAME}
@@ -11,6 +11,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.gnu.org/software/emacs/emacs.html
COMMENT= Libraries of Emacs Input Methods (for emacs21)
+PKG_DESTDIR_SUPPORT= user-destdir
+
WRKSRC= ${WRKDIR}/emacs-${VERSION}/leim
GNU_CONFIGURE= yes
USE_TOOLS+= gmake
@@ -24,6 +26,9 @@ CONFIG_SUB_OVERRIDE= ../config.sub
EMACS21_FILESDIR= ${.CURDIR}/../../editors/emacs21/files
+INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
+INSTALLATION_DIRS+= share/emacs/${VERSION}/leim
+
post-extract:
@${ECHO} '#!/bin/sh' >${WRKSRC}/configure
@${ECHO} 'cd ..' >>${WRKSRC}/configure
@@ -34,7 +39,7 @@ post-extract:
.include "../../mk/bsd.prefs.mk"
post-install:
- @${CHOWN} -R ${ROOT_USER} ${PREFIX}/share/emacs/${VERSION}/leim
+ @${CHOWN} -R ${ROOT_USER} ${DESTDIR}${PREFIX}/share/emacs/${VERSION}/leim
.include "../../editors/emacs/modules.mk"
.include "../../mk/bsd.pkg.mk"