2004-04-05 21:32:18 +00:00
|
|
|
# $FreeBSD$
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2004-04-05 21:32:18 +00:00
|
|
|
|
2015-12-01 22:20:04 +00:00
|
|
|
_LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive
|
2011-12-22 08:42:07 +00:00
|
|
|
|
2004-04-05 21:32:18 +00:00
|
|
|
PROG= bsdtar
|
2016-05-12 10:16:16 +00:00
|
|
|
BSDTAR_VERSION_STRING= 3.2.0
|
2011-12-22 08:42:07 +00:00
|
|
|
|
2015-12-01 22:20:04 +00:00
|
|
|
.PATH: ${_LIBARCHIVEDIR}/tar
|
2010-02-06 19:53:48 +00:00
|
|
|
SRCS= bsdtar.c \
|
|
|
|
cmdline.c \
|
2013-03-22 13:36:03 +00:00
|
|
|
creation_set.c \
|
2010-02-06 19:53:48 +00:00
|
|
|
read.c \
|
|
|
|
subst.c \
|
|
|
|
util.c \
|
|
|
|
write.c
|
2011-07-17 21:33:15 +00:00
|
|
|
|
2015-12-01 22:20:04 +00:00
|
|
|
.PATH: ${_LIBARCHIVEDIR}/libarchive_fe
|
2011-07-17 21:33:15 +00:00
|
|
|
SRCS+= err.c \
|
2016-05-12 10:16:16 +00:00
|
|
|
line_reader.c \
|
|
|
|
passphrase.c
|
2011-07-17 21:33:15 +00:00
|
|
|
|
2014-11-25 14:29:10 +00:00
|
|
|
LIBADD= archive
|
2011-08-01 08:22:40 +00:00
|
|
|
|
2012-02-25 10:58:02 +00:00
|
|
|
.if ${MK_ICONV} != "no"
|
|
|
|
CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const
|
|
|
|
.endif
|
|
|
|
|
2008-01-02 00:27:14 +00:00
|
|
|
CFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\"
|
2012-02-25 10:58:02 +00:00
|
|
|
CFLAGS+= -DPLATFORM_CONFIG_H=\"${.CURDIR}/../../lib/libarchive/config_freebsd.h\"
|
2015-12-01 22:20:04 +00:00
|
|
|
CFLAGS+= -I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/libarchive
|
|
|
|
CFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe
|
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
|
|
|
|
|
2015-10-12 18:31:21 +00:00
|
|
|
.if ${MK_TESTS} != "no"
|
|
|
|
SUBDIR+= tests
|
|
|
|
.endif
|
2008-01-02 00:27:14 +00:00
|
|
|
|
2004-08-07 03:24:49 +00:00
|
|
|
.include <bsd.prog.mk>
|