pkgsrc/textproc/bsdgrep-devel/patches/patch-aa
2016-03-30 09:57:50 +00:00

46 lines
1 KiB
Text

$NetBSD: patch-aa,v 1.7 2016/03/30 09:57:50 jperkin Exp $
Call it bgrep. Pass pkgsrc variables.
--- Makefile.orig 2006-05-15 21:12:21.000000000 +0000
+++ Makefile
@@ -2,18 +2,18 @@
-PROG= grep
+PROG= bgrep
SRCS= binary.c file.c grep.c mmfile.c queue.c util.c
-LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
- ${BINDIR}/grep ${BINDIR}/fgrep \
- ${BINDIR}/grep ${BINDIR}/zgrep \
- ${BINDIR}/grep ${BINDIR}/zegrep \
- ${BINDIR}/grep ${BINDIR}/zfgrep
-
-MLINKS= grep.1 egrep.1 \
- grep.1 fgrep.1 \
- grep.1 zgrep.1 \
- grep.1 zegrep.1 \
- grep.1 zfgrep.1
+LINKS= ${BINDIR}/bgrep ${BINDIR}/ebgrep \
+ ${BINDIR}/bgrep ${BINDIR}/fbgrep \
+ ${BINDIR}/bgrep ${BINDIR}/zbgrep \
+ ${BINDIR}/bgrep ${BINDIR}/zebgrep \
+ ${BINDIR}/bgrep ${BINDIR}/zfbgrep
+
+MLINKS= bgrep.1 ebgrep.1 \
+ bgrep.1 fbgrep.1 \
+ bgrep.1 zbgrep.1 \
+ bgrep.1 zebgrep.1 \
+ bgrep.1 zfbgrep.1
-LDADD= -lz
+LDADD= -lz ${LIBS}
@@ -21,2 +21,7 @@ WARNS= 4
+PREFIX?= /usr/local
+MANDIR= ${PREFIX}/${PKGMANDIR}
+BINDIR= ${PREFIX}/bin
+MKCATPAGES?= no
+
.include <bsd.prog.mk>