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
15 XZDIR
= ${.CURDIR
}/..
/..
/contrib
/xz
/src
31 .PATH
: ${XZDIR}/common
32 SRCS
+= tuklib_open_stdxxx.c \
36 tuklib_mbstr_width.c \
41 LIBLZMADIR
= ${.CURDIR
}/..
/..
/lib
/liblzma
42 CFLAGS
+= -DHAVE_CONFIG_H
43 CFLAGS
+= -I
${LIBLZMADIR} -I
${XZDIR}/common
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 \
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 \
84 .
include <bsd.prog.mk
>