summaryrefslogtreecommitdiffstats
path: root/usr.bin/gzip/Makefile
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2007-01-26 10:19:08 +0000
committerdelphij <delphij@FreeBSD.org>2007-01-26 10:19:08 +0000
commit20898601354d3c57cf96586bb8940674bd793e59 (patch)
treee8c13cf34b1eb5603f26abafb36a705c40549e37 /usr.bin/gzip/Makefile
parent5e40eb222d8faef11e6c7575559461c42b5ec9f1 (diff)
downloadFreeBSD-src-20898601354d3c57cf96586bb8940674bd793e59.zip
FreeBSD-src-20898601354d3c57cf96586bb8940674bd793e59.tar.gz
Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU gzip using the freely-redistributable zlib and this version is expected to be mostly bug-to-bug compatible with the GNU implementation. - Because this is a piece of mature code and we want to make changes so it is added directly rather than importing to src/contrib. - Connect newly added code to src/usr.bin/ and rescue/rescue build. - Disconnect the GNU gzip code from build for now, they will be eventually removed completely. - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and WITHOUT_BZIP2. Tested by: kris (full exp-7 pointyhat build) Approved by: core (importing a 4-clause BSD licensed file) Approved by: re (adding new utility during -HEAD code slush)
Diffstat (limited to 'usr.bin/gzip/Makefile')
-rw-r--r--usr.bin/gzip/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/usr.bin/gzip/Makefile b/usr.bin/gzip/Makefile
new file mode 100644
index 0000000..0125d61
--- /dev/null
+++ b/usr.bin/gzip/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD: Makefile,v 1.10 2006/05/12 02:01:15 mrg Exp $
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+PROG= gzip
+MAN= gzip.1 gzexe.1 zdiff.1 zforce.1 zgrep.1 zmore.1 znew.1
+
+DPADD= ${LIBZ}
+LDADD= -lz
+WARNS?= 6
+
+.if ${MK_BZIP2_SUPPORT} != "no"
+DPADD+= ${LIBBZ2}
+LDADD+= -lbz2
+.else
+CFLAGS+= -DNO_BZIP2_SUPPORT
+.endif
+
+SCRIPTS= gzexe zdiff zforce zgrep zmore znew
+
+MLINKS+= gzip.1 gunzip.1 \
+ gzip.1 gzcat.1 \
+ gzip.1 zcat.1 \
+ zdiff.1 zcmp.1 \
+ zgrep.1 zegrep.1 \
+ zgrep.1 zfgrep.1
+
+LINKS+= ${BINDIR}/gzip ${BINDIR}/gunzip \
+ ${BINDIR}/gzip ${BINDIR}/gzcat \
+ ${BINDIR}/gzip ${BINDIR}/zcat \
+ ${BINDIR}/zdiff ${BINDIR}/zcmp \
+ ${BINDIR}/zgrep ${BINDIR}/zegrep \
+ ${BINDIR}/zgrep ${BINDIR}/zfgrep
+
+.include <bsd.prog.mk>
OpenPOWER on IntegriCloud