blob: 2ea8a6180696b6e69e79c31d2d92b9854afd7189 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.1.1.1 2008/12/09 06:56:52 bjs Exp $
#
DISTNAME= zzuf-0.12
CATEGORIES= devel security
MASTER_SITES= http://caca.zoy.org/files/zzuf/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://caca.zoy.org/wiki/zzuf/
COMMENT= Transparent application input fuzzer
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
BUILDLINK_TRANSFORM+= l:gnugetopt:getopt
REPLACE_SH= test/testsuite.sh
SHLIBTOOL_OVERRIDE= # empty
SUBST_CLASSES+= fix-paths
SUBST_FILES.fix-paths= doc/libzzuf.3
SUBST_MESSAGE.fix-paths=Fixing hard-coded pathnames
SUBST_SED.fix-paths= -e 's,/usr,${PREFIX},g'
SUBST_STAGE.fix-paths= post-patch
.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
do-test:
${RUN} cd ${WRKSRC}/test && ${SETENV} ${TEST_ENV} \
${SH} ./testsuite.sh
.include "options.mk"
.include "../../devel/libgetopt/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
|