1# $FreeBSD$ 2.include <bsd.own.mk> 3 4PROG= bsdtar 5BSDTAR_VERSION_STRING=2.8.3 6SRCS= bsdtar.c \ 7 cmdline.c \ 8 err.c \ 9 getdate.c \ 10 line_reader.c \ 11 matching.c \ 12 pathmatch.c \ 13 read.c \ 14 subst.c \ 15 tree.c \ 16 util.c \ 17 write.c 18DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBMD} ${LIBLZMA} 19LDADD= -larchive -lbz2 -lz -lmd -llzma 20.if ${MK_OPENSSL} != "no" 21DPADD+= ${LIBCRYPTO} 22LDADD+= -lcrypto 23.endif 24CFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\" 25CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\" 26CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../lib/libarchive 27SYMLINKS= bsdtar ${BINDIR}/tar 28MLINKS= bsdtar.1 tar.1 29DEBUG_FLAGS=-g 30 31.PHONY: check test 32check test: $(PROG) bsdtar.1.gz 33 cd ${.CURDIR}/test && make test 34 35.include <bsd.prog.mk> 36