mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
Zstd is a discrete, self-contained system component. To match how we package zlib, bzip2 and xz, move it to its own package, with a separate lib package. Add the new package to the minimal set, since this is a core component that users expect to be installed. This change adds a new package to the system so, until we have a proper policy on how to handle this in release/stable branches, it should not be MFC'd. MFC after: never Reviewed by: bapt Sponsored by: https://www.patreon.com/bsdivy Differential Revision: https://reviews.freebsd.org/D53603
34 lines
709 B
Makefile
34 lines
709 B
Makefile
PACKAGE= zstd
|
|
|
|
PROG= zstd
|
|
SRCS= \
|
|
benchfn.c \
|
|
benchzstd.c \
|
|
datagen.c \
|
|
dibio.c \
|
|
fileio.c \
|
|
timefn.c \
|
|
util.c \
|
|
zstdcli.c \
|
|
zstdcli_trace.c
|
|
|
|
CFLAGS+= -I${SRCTOP}/sys/contrib/zstd/programs \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/common \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/compress \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib/dictBuilder \
|
|
-I${SRCTOP}/sys/contrib/zstd/lib \
|
|
-DXXH_NAMESPACE=ZSTD_ \
|
|
-DHAVE_THREAD=1 \
|
|
-DZSTD_MULTITHREAD=1
|
|
LINKS= ${BINDIR}/zstd ${BINDIR}/unzstd \
|
|
${BINDIR}/zstd ${BINDIR}/zstdcat \
|
|
${BINDIR}/zstd ${BINDIR}/zstdmt
|
|
MLINKS= zstd.1 unzstd.1 \
|
|
zstd.1 zstdcat.1 \
|
|
zstd.1 zstdmt.1
|
|
|
|
WARNS?= 2
|
|
LIBADD= zstd
|
|
.PATH: ${SRCTOP}/sys/contrib/zstd/programs
|
|
|
|
.include <bsd.prog.mk>
|