5393242c73
Performing substitutions during post-patch breaks tools such as mkpatches, making it very difficult to regenerate correct patches after making changes, and often leading to substituted string replacements being committed.
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2018/07/04 13:40:16 jperkin Exp $
|
|
#
|
|
|
|
DISTNAME= zzuf-0.15
|
|
CATEGORIES= devel security
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=samhocevar/zzuf/releases/download/v${DISTNAME:C:zzuf-::}/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://caca.zoy.org/wiki/zzuf/
|
|
COMMENT= Transparent application input fuzzer
|
|
|
|
USE_LANGUAGES= c99
|
|
GNU_CONFIGURE= yes
|
|
USE_LIBTOOL= yes
|
|
|
|
BUILDLINK_TRANSFORM+= l:gnugetopt:getopt
|
|
SHLIBTOOL_OVERRIDE= # empty
|
|
CONFIG_GUESS_OVERRIDE= .auto/config.guess
|
|
CONFIG_SUB_OVERRIDE= .auto/config.sub
|
|
|
|
SUBST_CLASSES+= fix-paths
|
|
SUBST_FILES.fix-paths= doc/libzzuf.3.in
|
|
SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames
|
|
SUBST_SED.fix-paths= -e 's,/usr,${PREFIX},g'
|
|
SUBST_STAGE.fix-paths= pre-configure
|
|
|
|
.include "../../mk/bsd.fast.prefs.mk"
|
|
|
|
LIBS.NetBSD+= ${NETBSDLIB.rt}
|
|
###
|
|
### XXX Do this with autoconf?
|
|
###
|
|
.if ${OPSYS} == "NetBSD" && exists(/usr/include/aio.h)
|
|
.PHONY: netbsd-posix-aio-check
|
|
netbsd-posix-aio-check:
|
|
NETBSDLIB.rt!= \
|
|
if ( /sbin/sysctl -n kern.posix_aio >/dev/null 2>&1 ); then \
|
|
lib=-lrt; \
|
|
fi || ${TRUE}; \
|
|
echo "$$lib"
|
|
.endif
|
|
|
|
CPPFLAGS.SunOS+= -D_XOPEN_SOURCE=600 -D__EXTENSIONS__
|
|
|
|
TEST_TARGET= check
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../devel/libgetopt/buildlink3.mk"
|
|
.include "../../mk/dlopen.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|