1c6063d0dSWarner Losh.include <src.opts.mk> 2d7fe3b4fSTim Kientzle 3a35f04fbSWarner Losh_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 445d3b226SMartin Matuska 5a7b5a3d4SEmmanuel VadotPACKAGE= runtime 6d7fe3b4fSTim KientzlePROG= bsdtar 7*2ff66a91SXin LIBSDTAR_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \ 8*2ff66a91SXin LI ${_LIBARCHIVEDIR}/libarchive/archive.h 945d3b226SMartin Matuska 103c89d6b0SBryan Drewery.PATH: ${_LIBARCHIVEDIR}/tar 112be33632STim KientzleSRCS= bsdtar.c \ 122be33632STim Kientzle cmdline.c \ 13acc60b03SMartin Matuska creation_set.c \ 142be33632STim Kientzle read.c \ 152be33632STim Kientzle subst.c \ 162be33632STim Kientzle util.c \ 172be33632STim Kientzle write.c 182ad1419fSMartin Matuska 193c89d6b0SBryan Drewery.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 202ad1419fSMartin MatuskaSRCS+= err.c \ 21cdf63a70SMartin Matuska line_reader.c \ 22cdf63a70SMartin Matuska passphrase.c 232ad1419fSMartin Matuska 243e11bd9eSBaptiste DaroussinLIBADD= archive 2583c03ed2SMartin Matuska 266c95142eSMartin Matuska.if ${MK_ICONV} != "no" 276c95142eSMartin MatuskaCFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const 286c95142eSMartin Matuska.endif 296c95142eSMartin Matuska 30d6711375STim KientzleCFLAGS+= -DBSDTAR_VERSION_STRING=\"${BSDTAR_VERSION_STRING}\" 31a35f04fbSWarner LoshCFLAGS+= -DPLATFORM_CONFIG_H=\"${SRCTOP}/lib/libarchive/config_freebsd.h\" 323c89d6b0SBryan DreweryCFLAGS+= -I${_LIBARCHIVEDIR}/tar -I${_LIBARCHIVEDIR}/libarchive 333c89d6b0SBryan DreweryCFLAGS+= -I${_LIBARCHIVEDIR}/libarchive_fe 342f841e1aSRuslan ErmilovSYMLINKS= bsdtar ${BINDIR}/tar 3597c4c530STim KientzleMLINKS= bsdtar.1 tar.1 3697c4c530STim Kientzle 37d511b20aSEnji CooperHAS_TESTS= 384b330699SEnji CooperSUBDIR.${MK_TESTS}+= tests 39d6711375STim Kientzle 4052329060STim Kientzle.include <bsd.prog.mk> 41