aboutsummaryrefslogtreecommitdiffstats
path: root/usr.bin/bsdcat/Makefile
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2016-06-17 22:40:10 +0000
committerMartin Matuska <mm@FreeBSD.org>2016-06-17 22:40:10 +0000
commit27370ec7a5d96b40bfc715dd4e826d3447120ce1 (patch)
treec36277ceb452e4862141a9167b27e72819038726 /usr.bin/bsdcat/Makefile
parentbb93646b7a91ffab05590af33e0fc2594c416e88 (diff)
downloadsrc-27370ec7a5d96b40bfc715dd4e826d3447120ce1.tar.gz
src-27370ec7a5d96b40bfc715dd4e826d3447120ce1.zip
MFC r299529,r299540,r299576,r299896:
r299529,r299540: Update libarchive to 3.2.0 New features: - new bsdcat command-line utility - LZ4 compression (in src only via external utility from ports) - Warc format support - 'Raw' format writer - Zip: Support archives >4GB, entries >4GB - Zip: Support encrypting and decrypting entries - Zip: Support experimental streaming extension - Identify encrypted entries in several formats - New --clear-nochange-flags option to bsdtar tries to remove noschg and similar flags before deleting files - New --ignore-zeros option to bsdtar to handle concatenated tar archives - Use multi-threaded LZMA decompression if liblzma supports it - Expose version info for libraries used by libarchive r299576,r299896: Fix broken cpio behavior. Relnotes: yes
Notes
Notes: svn path=/stable/10/; revision=302001
Diffstat (limited to 'usr.bin/bsdcat/Makefile')
-rw-r--r--usr.bin/bsdcat/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/usr.bin/bsdcat/Makefile b/usr.bin/bsdcat/Makefile
new file mode 100644
index 000000000000..edbb212228f9
--- /dev/null
+++ b/usr.bin/bsdcat/Makefile
@@ -0,0 +1,39 @@
+# $FreeBSD$
+
+.include <bsd.own.mk>
+
+_LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive
+_LIBARCHIVECONFDIR= ${.CURDIR}/../../lib/libarchive
+
+PROG= bsdcat
+BSDCAT_VERSION_STRING= 3.2.0
+
+.PATH: ${_LIBARCHIVEDIR}/cat
+SRCS= bsdcat.c cmdline.c
+
+.PATH: ${_LIBARCHIVEDIR}/libarchive_fe
+SRCS+= err.c
+
+CFLAGS+= -DBSDCAT_VERSION_STRING=\"${BSDCAT_VERSION_STRING}\"
+CFLAGS+= -DPLATFORM_CONFIG_H=\"${_LIBARCHIVECONFDIR}/config_freebsd.h\"
+CFLAGS+= -I${_LIBARCHIVEDIR}/cat -I${_LIBARCHIVEDIR}/libarchive_fe
+
+DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBLZMA} ${LIBPTHREAD} ${LIBBSDXML}
+LDADD= -larchive -lbz2 -lz -llzma -lpthread -lbsdxml
+.if ${MK_OPENSSL} != "no"
+DPADD+= ${LIBCRYPTO}
+LDADD+= -lcrypto
+.else
+DPADD+= ${LIBMD}
+LDADD+= -lmd
+.endif
+
+.if ${MK_ICONV} != "no"
+CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const
+.endif
+
+.if ${MK_TESTS} != "no"
+SUBDIR+= tests
+.endif
+
+.include <bsd.prog.mk>