summaryrefslogtreecommitdiff
path: root/textproc/grep
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2012-12-06 11:38:19 +0000
committerjperkin <jperkin@pkgsrc.org>2012-12-06 11:38:19 +0000
commitb17b53dc8e583cdf15aa1f3ae609d744e2cce357 (patch)
tree555081b2fb5c41657ee3f23bba4dfdd954cbed5e /textproc/grep
parentfd61cb92740bc60c6a0ab08b35c0aa84934f97c1 (diff)
downloadpkgsrc-b17b53dc8e583cdf15aa1f3ae609d744e2cce357.tar.gz
Add PKGGNUDIR support.
Diffstat (limited to 'textproc/grep')
-rw-r--r--textproc/grep/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/textproc/grep/Makefile b/textproc/grep/Makefile
index 14ed0f16b59..8240ff48c4b 100644
--- a/textproc/grep/Makefile
+++ b/textproc/grep/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.31 2012/10/25 06:55:51 asau Exp $
+# $NetBSD: Makefile,v 1.32 2012/12/06 11:43:24 jperkin Exp $
DISTNAME= grep-2.14
PKGREVISION= 1
@@ -22,12 +22,14 @@ TEXINFO_REQD= 4.0
INSTALLATION_DIRS= gnu/bin gnu/man/man1
+.include "../../mk/bsd.prefs.mk"
+
post-install:
-.for g n in bin/ggrep gnu/bin/grep bin/gegrep gnu/bin/egrep \
- bin/gfgrep gnu/bin/fgrep \
- man/man1/ggrep.1 gnu/man/man1/grep.1 \
- man/man1/ggrep.1 gnu/man/man1/egrep.1 \
- man/man1/ggrep.1 gnu/man/man1/fgrep.1
+.for g n in bin/ggrep ${PKGGNUDIR}bin/grep bin/gegrep ${PKGGNUDIR}bin/egrep \
+ bin/gfgrep ${PKGGNUDIR}bin/fgrep \
+ man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/grep.1 \
+ man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/egrep.1 \
+ man/man1/ggrep.1 ${PKGGNUDIR}${PKGMANDIR}/man1/fgrep.1
${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
.endfor