Thu Feb 25 17:24:13 2016 UTC ()
Use CPPFLAGS.NetBSD


(roy)
diff -r1.42 -r1.43 pkgsrc/net/unbound/Makefile

cvs diff -r1.42 -r1.43 pkgsrc/net/unbound/Makefile (expand / switch to unified diff)

--- pkgsrc/net/unbound/Makefile 2016/02/25 16:55:14 1.42
+++ pkgsrc/net/unbound/Makefile 2016/02/25 17:24:13 1.43
@@ -1,40 +1,40 @@ @@ -1,40 +1,40 @@
1# $NetBSD: Makefile,v 1.42 2016/02/25 16:55:14 roy Exp $ 1# $NetBSD: Makefile,v 1.43 2016/02/25 17:24:13 roy Exp $
2 2
3DISTNAME= unbound-1.5.7 3DISTNAME= unbound-1.5.7
4PKGREVISION= 2 4PKGREVISION= 2
5CATEGORIES= net 5CATEGORIES= net
6MASTER_SITES= http://www.unbound.net/downloads/ 6MASTER_SITES= http://www.unbound.net/downloads/
7 7
8MAINTAINER= pettai@NetBSD.org 8MAINTAINER= pettai@NetBSD.org
9HOMEPAGE= http://www.unbound.net/ 9HOMEPAGE= http://www.unbound.net/
10COMMENT= DNS resolver and recursive server 10COMMENT= DNS resolver and recursive server
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP 13BUILD_DEFS+= VARBASE UNBOUND_USER UNBOUND_GROUP
14FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP} 14FILES_SUBST+= UNBOUND_USER=${UNBOUND_USER} UNBOUND_GROUP=${UNBOUND_GROUP}
15 15
16GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
17USE_LIBTOOL= yes 17USE_LIBTOOL= yes
18 18
19CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat} 19CONFIGURE_ARGS+= --with-libexpat=${BUILDLINK_PREFIX.expat}
20CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid 20CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/unbound/unbound.pid
21CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE} 21CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFBASE}
22CONFIGURE_ARGS+= --enable-allsymbols 22CONFIGURE_ARGS+= --enable-allsymbols
23 23
24# unbound uses some OpenBSD libc functions such as reallocarray(3) 24# unbound uses some OpenBSD libc functions such as reallocarray(3).
25# the existing tests just look for the symbol in libc regardless 25# The existing tests just look for the symbol in libc regardless
26# of any 26# of anything in stdlib.h
27CPPFLAGS+= -D_OPENBSD_SOURCE 27CPPFLAGS.NetBSD+= -D_OPENBSD_SOURCE
28 28
29# Add the same logic as for ldns, so sha2/gost is configured automatically 29# Add the same logic as for ldns, so sha2/gost is configured automatically
30CHECK_BUILTIN.openssl= yes 30CHECK_BUILTIN.openssl= yes
31.include "../../security/openssl/builtin.mk" 31.include "../../security/openssl/builtin.mk"
32CHECK_BUILTIN.openssl= no 32CHECK_BUILTIN.openssl= no
33.include "../../security/openssl/buildlink3.mk" 33.include "../../security/openssl/buildlink3.mk"
34 34
35PLIST_VARS+= sha2 gost 35PLIST_VARS+= sha2 gost
36.if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS]) 36.if defined(USE_BUILTIN.openssl) && !empty(USE_BUILTIN.openssl:M[yY][eE][sS])
37PLIST_VARS.gost!= \ 37PLIST_VARS.gost!= \
38 if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \ 38 if ${PKG_ADMIN} pmatch 'openssl>=1.0.0' ${BUILTIN_PKG.openssl:Q}; then \
39 ${ECHO} "yes"; \ 39 ${ECHO} "yes"; \
40 else \ 40 else \