summaryrefslogtreecommitdiff
path: root/lib/libarchive
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2019-09-18 07:57:56 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2019-09-18 07:57:56 +0000
commitd567f909ef23d362b39eb2327b1c917d7c8bbfca (patch)
tree15f4987840c3499b70c1bfcd3273fab69eaae53e /lib/libarchive
parent05e08cbdaccc97cf11abac3919f7b0c6ea99637b (diff)
downloadsrc-test-d567f909ef23d362b39eb2327b1c917d7c8bbfca.tar.gz
src-test-d567f909ef23d362b39eb2327b1c917d7c8bbfca.zip
Add native support for zstd to libarchive
Note that old pkg will failed to build after this. A recent ports tree (one providing pkg 1.12+) is required to build. Older already built pkg, should continue working as expected PR: 238797 Exp run by: antoine Reviewed by: cem Approved by: cem Differential Revision: https://reviews.freebsd.org/D20752
Notes
Notes: svn path=/head/; revision=352482
Diffstat (limited to 'lib/libarchive')
-rw-r--r--lib/libarchive/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libarchive/Makefile b/lib/libarchive/Makefile
index 5c44669f6f85c..474a91f7dda11 100644
--- a/lib/libarchive/Makefile
+++ b/lib/libarchive/Makefile
@@ -6,8 +6,8 @@ _LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive
LIB= archive
-LIBADD= z bz2 lzma bsdxml
-CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1
+LIBADD= z bz2 lzma bsdxml zstd
+CFLAGS+= -DHAVE_BZLIB_H=1 -DHAVE_LIBLZMA=1 -DHAVE_LZMA_H=1 -DHAVE_ZSTD_H=1 -DHAVE_LIBZSTD=1
# FreeBSD SHLIB_MAJOR value is managed as part of the FreeBSD system.
# It has no real relation to the libarchive version number.
@@ -15,6 +15,7 @@ SHLIB_MAJOR= 7
CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/config_freebsd.h\"
CFLAGS+= -I${.OBJDIR}
+CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/lib
.if ${MK_OPENSSL} != "no"
CFLAGS+= -DWITH_OPENSSL