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