2004-04-05 21:32:18 +00:00
|
|
|
# $FreeBSD$
|
2009-04-18 06:03:09 +00:00
|
|
|
.include <bsd.own.mk>
|
2004-04-05 21:32:18 +00:00
|
|
|
|
|
|
|
PROG= bsdtar
|
2010-05-08 16:29:02 +00:00
|
|
|
BSDTAR_VERSION_STRING=2.8.3
|
2010-02-06 19:53:48 +00:00
|
|
|
SRCS= bsdtar.c \
|
|
|
|
cmdline.c \
|
|
|
|
err.c \
|
|
|
|
getdate.c \
|
2010-02-07 02:00:26 +00:00
|
|
|
line_reader.c \
|
2010-02-06 19:53:48 +00:00
|
|
|
matching.c \
|
2010-02-07 02:00:26 +00:00
|
|
|
pathmatch.c \
|
2010-02-06 19:53:48 +00:00
|
|
|
read.c \
|
|
|
|
subst.c \
|
|
|
|
tree.c \
|
|
|
|
util.c \
|
|
|
|
write.c
|
2010-05-10 15:28:44 +00:00
|
|
|
DPADD= ${LIBARCHIVE} ${LIBBZ2} ${LIBZ} ${LIBMD} ${LIBLZMA}
|
|
|
|
LDADD= -larchive -lbz2 -lz -lmd -llzma
|
2009-04-18 06:03:09 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2010-02-25 20:24:19 +00:00
|
|
|
DPADD+= ${LIBCRYPTO}
|
2009-04-18 06:03:09 +00:00
|
|
|
LDADD+= -lcrypto
|
|
|
|
.endif
|
2008-01-02 00:27:14 +00:00
|
|
|
CFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\"
|
2007-04-12 04:45:32 +00:00
|
|
|
CFLAGS+= -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
|
2009-09-07 06:37:44 +00:00
|
|
|
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../lib/libarchive
|
2004-11-12 13:28:42 +00:00
|
|
|
SYMLINKS= bsdtar ${BINDIR}/tar
|
2004-04-19 22:09:04 +00:00
|
|
|
MLINKS= bsdtar.1 tar.1
|
2008-11-08 04:43:24 +00:00
|
|
|
DEBUG_FLAGS=-g
|
2004-04-19 22:09:04 +00:00
|
|
|
|
2008-05-26 17:10:10 +00:00
|
|
|
.PHONY: check test
|
|
|
|
check test: $(PROG) bsdtar.1.gz
|
2008-08-22 01:31:13 +00:00
|
|
|
cd ${.CURDIR}/test && make test
|
2008-01-02 00:27:14 +00:00
|
|
|
|
2004-08-07 03:24:49 +00:00
|
|
|
.include <bsd.prog.mk>
|