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
|
|
|
|
2011-12-22 08:42:07 +00:00
|
|
|
LIBARCHIVEDIR= ${.CURDIR}/../../contrib/libarchive
|
|
|
|
|
2004-04-05 21:32:18 +00:00
|
|
|
PROG= bsdtar
|
2013-03-22 13:36:03 +00:00
|
|
|
BSDTAR_VERSION_STRING= 3.1.2
|
2011-12-22 08:42:07 +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
|
|
|
|
2011-12-22 08:42:07 +00:00
|
|
|
.PATH: ${LIBARCHIVEDIR}/libarchive_fe
|
2011-07-17 21:33:15 +00:00
|
|
|
SRCS+= err.c \
|
2012-07-28 06:38:44 +00:00
|
|
|
line_reader.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\"
|
2011-12-22 08:42:07 +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>
|