drm/i915: Update to Linux 4.2
[dragonfly.git] / usr.bin / xz / Makefile
blobedfe7fe5c9f30899bd5c0feaabcdfcbcdf0bfbfa
1 PROG= xz
2 MAN= xz.1
4 LINKS= ${BINDIR}/xz ${BINDIR}/unxz
5 LINKS+= ${BINDIR}/xz ${BINDIR}/xzcat
6 LINKS+= ${BINDIR}/xz ${BINDIR}/lzma
7 LINKS+= ${BINDIR}/xz ${BINDIR}/unlzma
8 LINKS+= ${BINDIR}/xz ${BINDIR}/lzcat
9 MLINKS= xz.1 unxz.1 \
10 xz.1 xzcat.1 \
11 xz.1 lzma.1 \
12 xz.1 unlzma.1 \
13 xz.1 lzcat.1
15 XZDIR= ${.CURDIR}/../../contrib/xz/src
17 .PATH: ${XZDIR}/xz
18 SRCS= args.c \
19 coder.c \
20 file_io.c \
21 hardware.c \
22 list.c \
23 main.c \
24 message.c \
25 mytime.c \
26 options.c \
27 signals.c \
28 suffix.c \
29 util.c
31 .PATH: ${XZDIR}/common
32 SRCS+= tuklib_open_stdxxx.c \
33 tuklib_progname.c \
34 tuklib_exit.c \
35 tuklib_cpucores.c \
36 tuklib_mbstr_width.c \
37 tuklib_mbstr_fw.c
39 WARNS?= 3
41 LIBLZMADIR= ${.CURDIR}/../../lib/liblzma
42 CFLAGS+= -DHAVE_CONFIG_H
43 CFLAGS+= -I${LIBLZMADIR} -I${XZDIR}/common
45 DPADD= ${LIBLZMA}
46 LDADD= -llzma
48 .PATH: ${XZDIR}/scripts
49 SCRIPTS= xzdiff xzgrep xzless xzmore
50 MAN+= ${SCRIPTS:S/$/.1/g}
51 PKG_NAME!= grep -w PACKAGE_NAME ${LIBLZMADIR}/config.h | awk -F\" '{print $$2}'
52 VERSION!= grep -w VERSION ${LIBLZMADIR}/config.h | awk -F\" '{print $$2}'
53 PKG_BUG!= grep -w PACKAGE_BUGREPORT ${LIBLZMADIR}/config.h | awk -F\" '{print $$2}'
55 ${SCRIPTS}: ${.TARGET}.in
56 sed -e s,@POSIX_SHELL@,/bin/sh,g \
57 -e s,@xz@,xz,g \
58 -e s,@PACKAGE_NAME@,${PKG_NAME:Q},g \
59 -e s,@VERSION@,${VERSION:Q},g \
60 -e s,@PACKAGE_BUGREPORT@,${PKG_BUG:Q},g ${.ALLSRC} > ${.TARGET}
62 CLEANFILES= ${SCRIPTS}
63 LINKS+= ${SCRIPTSDIR}/xzdiff ${SCRIPTSDIR}/xzcmp \
64 ${SCRIPTSDIR}/xzgrep ${SCRIPTSDIR}/xzegrep \
65 ${SCRIPTSDIR}/xzgrep ${SCRIPTSDIR}/xzfgrep \
66 ${SCRIPTSDIR}/xzdiff ${SCRIPTSDIR}/lzdiff \
67 ${SCRIPTSDIR}/xzdiff ${SCRIPTSDIR}/lzcmp \
68 ${SCRIPTSDIR}/xzgrep ${SCRIPTSDIR}/lzgrep \
69 ${SCRIPTSDIR}/xzgrep ${SCRIPTSDIR}/lzegrep \
70 ${SCRIPTSDIR}/xzgrep ${SCRIPTSDIR}/lzfgrep \
71 ${SCRIPTSDIR}/xzmore ${SCRIPTSDIR}/lzmore \
72 ${SCRIPTSDIR}/xzless ${SCRIPTSDIR}/lzless
73 MLINKS+=xzdiff.1 xzcmp.1 \
74 xzgrep.1 xzegrep.1 \
75 xzgrep.1 xzfgrep.1 \
76 xzdiff.1 lzdiff.1 \
77 xzdiff.1 lzcmp.1 \
78 xzgrep.1 lzgrep.1 \
79 xzgrep.1 lzegrep.1 \
80 xzgrep.1 lzfgrep.1 \
81 xzmore.1 lzmore.1 \
82 xzless.1 lzless.1
84 .include <bsd.prog.mk>