1.include <src.opts.mk> 2 3_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 4_LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive 5 6PROG= bsdunzip 7 8BSDUNZIP_VERSION_STRING!= sed -n '/define.*ARCHIVE_VERSION_ONLY_STRING/{s,[^0-9.],,gp;q;}' \ 9 ${_LIBARCHIVEDIR}/libarchive/archive.h 10 11.PATH: ${_LIBARCHIVEDIR}/unzip 12SRCS= bsdunzip.c 13 14.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 15SRCS+= cmdline.c err.c passphrase.c 16 17CFLAGS+= -DBSDUNZIP_VERSION_STRING=\"${BSDUNZIP_VERSION_STRING}\" 18CFLAGS+= -DPLATFORM_CONFIG_H=\"${_LIBARCHIVECONFDIR}/config_freebsd.h\" 19CFLAGS+= -I${_LIBARCHIVEDIR}/unzip -I${_LIBARCHIVEDIR}/libarchive_fe 20 21LIBADD= archive 22 23SYMLINKS=bsdunzip ${BINDIR}/unzip 24MLINKS= bsdunzip.1 unzip.1 25 26HAS_TESTS= 27SUBDIR.${MK_TESTS}+= tests 28 29.include <bsd.prog.mk> 30# DO NOT DELETE 31