summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-07 21:45:56 +0000
committerjoerg <joerg>2009-07-07 21:45:56 +0000
commit0200a973a1cc009b2b25057aea5d24c726e30e9e (patch)
tree84911ddb3087c84317018619214dec9b7d040bcd /textproc
parent955b4fc8b68eaa44964aa5fcaee74eada8c51795 (diff)
downloadpkgsrc-0200a973a1cc009b2b25057aea5d24c726e30e9e.tar.gz
user-destdir support
Diffstat (limited to 'textproc')
-rw-r--r--textproc/ja-grep/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/textproc/ja-grep/Makefile b/textproc/ja-grep/Makefile
index 9ce20155219..7f2716e0f37 100644
--- a/textproc/ja-grep/Makefile
+++ b/textproc/ja-grep/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2007/02/22 19:27:14 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2009/07/07 21:45:56 joerg Exp $
DISTNAME= grep-2.4.2
PKGNAME= ja-grep-2.4.2
@@ -9,6 +9,8 @@ PATCH_SITES= http://www.hinadori.atnifty.com/~wills/program/
PATCHFILES= grep-2.4.2-mlb2.patch.gz
PATCH_DIST_STRIP= -p1
+PKG_DESTDIR_SUPPORT= user-destdir
+
CONFLICTS+= grep-[0-9]*
MAINTAINER= tech-pkg-ja@jp.NetBSD.org
@@ -22,9 +24,12 @@ CONFIGURE_ARGS+= --program-transform-name='s,^,j,'
TEST_TARGET= check
INFO_FILES= # PLIST
+INSTALLATION_DIRS= share/doc/ja-grep
+
+INSTALL_MAKE_FLAGS+= gnulocaledir=${DESTDIR}${PREFIX}/${PKGLOCALEDIR}/locale
+
post-install:
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ja-grep
- ${INSTALL_DATA} ${WRKSRC}/README.MB ${PREFIX}/share/doc/ja-grep
+ ${INSTALL_DATA} ${WRKSRC}/README.MB ${DESTDIR}${PREFIX}/share/doc/ja-grep
.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"