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