1# $FreeBSD$ 2.include <src.opts.mk> 3 4_LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive 5 6PROG= bsdtar 7BSDTAR_VERSION_STRING= 3.3.1 8 9.PATH: ${_LIBARCHIVEDIR}/tar 10SRCS= bsdtar.c \ 11 cmdline.c \ 12 creation_set.c \ 13 read.c \ 14 subst.c \ 15 util.c \ 16 write.c 17 18.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 19SRCS+= err.c \ 20 line_reader.c \ 21 passphrase.c 22 23LIBADD= archive 24 25.if ${MK_ICONV} != "no" 26CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const 27.endif 28 29CFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\" 30CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/../../lib/libarchive/config_freebsd.h\" 31CFLAGS+= -I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/libarchive 32CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe 33SYMLINKS= bsdtar ${BINDIR}/tar 34MLINKS= bsdtar.1 tar.1 35 36.if ${MK_TESTS} != "no" 37SUBDIR+= tests 38.endif 39 40.include <bsd.prog.mk> 41