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
commit8d0951c02b9e717c86c9e3d32a6541c5abc534ac (patch)
tree555081b2fb5c41657ee3f23bba4dfdd954cbed5e /textproc/grep
parent5b75a8a64c2cbba9de4b08b71ba1f60fd0094bbb (diff)
downloadpkgsrc-8d0951c02b9e717c86c9e3d32a6541c5abc534ac.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