summaryrefslogtreecommitdiff
path: root/textproc
diff options
context:
space:
mode:
authorjperkin <jperkin>2012-12-06 11:38:19 +0000
committerjperkin <jperkin>2012-12-06 11:38:19 +0000
commitd1075ac5e177cf818e38cd0f1505c26f36dc3a71 (patch)
tree555081b2fb5c41657ee3f23bba4dfdd954cbed5e /textproc
parent0a481916e940c97ca2e8df1f9108861623f22bb1 (diff)
downloadpkgsrc-d1075ac5e177cf818e38cd0f1505c26f36dc3a71.tar.gz
Add PKGGNUDIR support.
Diffstat (limited to 'textproc')
-rw-r--r--textproc/grep/Makefile14
-rw-r--r--textproc/gsed/Makefile6
2 files changed, 12 insertions, 8 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
diff --git a/textproc/gsed/Makefile b/textproc/gsed/Makefile
index 076571a800d..1abf532fb6f 100644
--- a/textproc/gsed/Makefile
+++ b/textproc/gsed/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.41 2012/10/25 06:55:52 asau Exp $
+# $NetBSD: Makefile,v 1.42 2012/12/06 11:43:24 jperkin Exp $
#
DISTNAME= sed-4.2.1
@@ -26,8 +26,10 @@ USE_TOOLS+= grep makeinfo
CONFIGURE_ARGS+= --program-prefix=g
+.include "../../mk/bsd.prefs.mk"
+
post-install:
-.for g n in bin/gsed gnu/bin/sed man/man1/gsed.1 gnu/man/man1/sed.1
+.for g n in bin/gsed ${PKGGNUDIR}bin/sed ${PKGMANDIR}/man1/gsed.1 ${PKGGNUDIR}${PKGMANDIR}/man1/sed.1
${LN} -sf ${PREFIX}/${g} ${DESTDIR}${PREFIX}/${n}
.endfor