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