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