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 .if defined
(NOSHARED
) && ( ${NOSHARED} != "no" && ${NOSHARED} != "NO" )
53 .PATH
: ${XZDIR}/scripts
54 SCRIPTS
= xzdiff xzgrep xzless xzmore
55 MAN
+= ${SCRIPTS
:S
/$/.1/g
}
56 PKG_NAME
!= grep
-w PACKAGE_NAME
${LIBLZMADIR}/config.h | awk
-F
\" '{print $$2}'
57 VERSION
!= grep
-w VERSION
${LIBLZMADIR}/config.h | awk
-F
\" '{print $$2}'
58 PKG_BUG
!= grep
-w PACKAGE_BUGREPORT
${LIBLZMADIR}/config.h | awk
-F
\" '{print $$2}'
60 ${SCRIPTS}: ${.TARGET
}.in
61 sed
-e s
,@POSIX_SHELL@
,/bin
/sh
,g \
63 -e s
,@PACKAGE_NAME@
,${PKG_NAME
:Q
},g \
64 -e s
,@VERSION@
,${VERSION
:Q
},g \
65 -e s
,@PACKAGE_BUGREPORT@
,${PKG_BUG
:Q
},g
${.ALLSRC
} > ${.TARGET
}
67 CLEANFILES
= ${SCRIPTS}
68 LINKS
+= ${SCRIPTSDIR}/xzdiff
${SCRIPTSDIR}/xzcmp \
69 ${SCRIPTSDIR}/xzgrep
${SCRIPTSDIR}/xzegrep \
70 ${SCRIPTSDIR}/xzgrep
${SCRIPTSDIR}/xzfgrep \
71 ${SCRIPTSDIR}/xzdiff
${SCRIPTSDIR}/lzdiff \
72 ${SCRIPTSDIR}/xzdiff
${SCRIPTSDIR}/lzcmp \
73 ${SCRIPTSDIR}/xzgrep
${SCRIPTSDIR}/lzgrep \
74 ${SCRIPTSDIR}/xzgrep
${SCRIPTSDIR}/lzegrep \
75 ${SCRIPTSDIR}/xzgrep
${SCRIPTSDIR}/lzfgrep \
76 ${SCRIPTSDIR}/xzmore
${SCRIPTSDIR}/lzmore \
77 ${SCRIPTSDIR}/xzless
${SCRIPTSDIR}/lzless
78 MLINKS
+=xzdiff
.1 xzcmp
.1 \
89 .
include <bsd.prog.mk
>