1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5_LIBARCHIVEDIR= ${SRCTOP}/contrib/libarchive 6_LIBARCHIVECONFDIR= ${SRCTOP}/lib/libarchive 7 8PROG= bsdcat 9BSDCAT_VERSION_STRING= 3.2.2 10 11.PATH: ${_LIBARCHIVEDIR}/cat 12SRCS= bsdcat.c cmdline.c 13 14.PATH: ${_LIBARCHIVEDIR}/libarchive_fe 15SRCS+= err.c 16 17CFLAGS+= -DBSDCAT_VERSION_STRING=\"${BSDCAT_VERSION_STRING}\" 18CFLAGS+= -DPLATFORM_CONFIG_H=\"${_LIBARCHIVECONFDIR}/config_freebsd.h\" 19CFLAGS+= -I${_LIBARCHIVEDIR}/cat -I${_LIBARCHIVEDIR}/libarchive_fe 20 21LIBADD= archive 22 23.if ${MK_ICONV} != "no" 24CFLAGS+= -DHAVE_ICONV=1 -DHAVE_ICONV_H=1 -DICONV_CONST=const 25.endif 26 27.if ${MK_TESTS} != "no" 28SUBDIR+= tests 29.endif 30 31.include <bsd.prog.mk> 32