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