2023-01-28 18:53:47 +00:00
|
|
|
.include <src.opts.mk>
|
2010-05-10 06:59:50 +00:00
|
|
|
|
|
|
|
PROG= xz
|
|
|
|
|
|
|
|
LINKS= ${BINDIR}/xz ${BINDIR}/unxz
|
|
|
|
LINKS+= ${BINDIR}/xz ${BINDIR}/lzma
|
|
|
|
LINKS+= ${BINDIR}/xz ${BINDIR}/unlzma
|
|
|
|
LINKS+= ${BINDIR}/xz ${BINDIR}/xzcat
|
|
|
|
LINKS+= ${BINDIR}/xz ${BINDIR}/lzcat
|
|
|
|
|
|
|
|
MLINKS= xz.1 unxz.1 xz.1 lzma.1 xz.1 unlzma.1 xz.1 xzcat.1 xz.1 lzcat.1
|
|
|
|
|
2017-03-12 18:58:44 +00:00
|
|
|
XZDIR= ${SRCTOP}/contrib/xz/src
|
|
|
|
LZMALIBDIR= ${SRCTOP}/lib/liblzma
|
2010-05-10 06:59:50 +00:00
|
|
|
|
|
|
|
.PATH: ${XZDIR}/xz
|
|
|
|
|
|
|
|
SRCS= args.c \
|
|
|
|
coder.c \
|
|
|
|
file_io.c \
|
|
|
|
hardware.c \
|
|
|
|
list.c \
|
|
|
|
main.c \
|
|
|
|
message.c \
|
2015-02-09 06:20:34 +00:00
|
|
|
mytime.c \
|
2010-05-10 06:59:50 +00:00
|
|
|
options.c \
|
|
|
|
signals.c \
|
|
|
|
suffix.c \
|
|
|
|
util.c
|
|
|
|
|
|
|
|
.PATH: ${XZDIR}/common
|
|
|
|
|
|
|
|
SRCS+= tuklib_open_stdxxx.c \
|
|
|
|
tuklib_progname.c \
|
|
|
|
tuklib_exit.c \
|
2010-10-11 21:16:50 +00:00
|
|
|
tuklib_cpucores.c \
|
|
|
|
tuklib_mbstr_width.c \
|
|
|
|
tuklib_mbstr_fw.c
|
2010-05-10 06:59:50 +00:00
|
|
|
|
|
|
|
WARNS?= 3
|
|
|
|
|
|
|
|
CFLAGS+= -DHAVE_CONFIG_H \
|
|
|
|
-I${LZMALIBDIR} \
|
2010-05-10 07:47:31 +00:00
|
|
|
-I${XZDIR}/common
|
2010-05-10 06:59:50 +00:00
|
|
|
|
2023-01-28 18:53:47 +00:00
|
|
|
.if ${MK_CAPSICUM} == "no"
|
|
|
|
CFLAGS+= -DWITHOUT_CAPSICUM
|
|
|
|
.endif
|
|
|
|
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= lzma
|
2010-05-10 06:59:50 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|