mirror of
https://git.freebsd.org/ports.git
synced 2025-06-09 14:50:31 -04:00
35 lines
828 B
Text
35 lines
828 B
Text
--- Makefile.orig 2011-10-02 00:39:02.000000000 +0200
|
|
+++ Makefile 2011-10-02 17:25:40.000000000 +0200
|
|
@@ -4,23 +4,15 @@
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
-.if ${MK_BSD_GREP} == "yes"
|
|
PROG= grep
|
|
-.else
|
|
-PROG= bsdgrep
|
|
-CLEANFILES+= bsdgrep.1
|
|
-
|
|
-bsdgrep.1: grep.1
|
|
- cp ${.ALLSRC} ${.TARGET}
|
|
-.endif
|
|
SRCS= file.c grep.c queue.c util.c
|
|
+CFLAGS+=-std=gnu99
|
|
|
|
# Extra files ported backported form some regex improvements
|
|
.PATH: ${.CURDIR}/regex
|
|
SRCS+= fastmatch.c hashtable.c tre-compile.c tre-fastmatch.c xmalloc.c
|
|
CFLAGS+=-I${.CURDIR}/regex
|
|
|
|
-.if ${MK_BSD_GREP} == "yes"
|
|
LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
|
|
${BINDIR}/grep ${BINDIR}/fgrep \
|
|
${BINDIR}/grep ${BINDIR}/zgrep \
|
|
@@ -50,7 +42,6 @@
|
|
grep.1 lzgrep.1 \
|
|
grep.1 lzegrep.1 \
|
|
grep.1 lzfgrep.1
|
|
-.endif
|
|
|
|
LDADD= -lz -lbz2 -llzma
|
|
DPADD= ${LIBZ} ${LIBBZ2} ${LIBLZMA}
|