summaryrefslogtreecommitdiff
path: root/net/powerdns/options.mk
blob: 9bb36d415c57d1a972dfae8bdcaaca726d3e406c (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
52
53
54
55
56
57
58
59
60
61
62
63
64
# $NetBSD: options.mk,v 1.2 2015/03/27 23:37:52 rodent Exp $

PKG_OPTIONS_VAR=	PKG_OPTIONS.powerdns
PKG_SUPPORTED_OPTIONS=	bind botan cryptopp pipe random remote sqlite tools
PKG_SUPPORTED_OPTIONS+=	zeromq
PKG_SUGGESTED_OPTIONS=	bind pipe random

.include "../../mk/bsd.options.mk"

PLIST_VARS+=		bind pipe random remote sqlite tools

.if !empty(PKG_OPTIONS:Mbind)
PDNS_MODULES+=		bind
PLIST.bind=		yes
.endif

.if !empty(PKG_OPTIONS:Mbotan)
CONFIGURE_ARGS+=	--enable-botan1.8
.include "../../security/botan/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mcryptopp)
.include "../../security/crypto++/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-cryptopp=yes
CRYPTOPP_CFLAGS=	-I${BUILDLINK_PREFIX.cryptopp}/include
CRYPTOPP_LIBS=		-L${BUILDLINK_PREFIX.cryptopp}/lib -Wl,-R${BUILDLINK_PREFIX.cryptopp}/lib -lcryptopp
CONFIGURE_ENV+=		CRYPTOPP_CFLAGS=${CRYPTOPP_CFLAGS:Q}
CONFIGURE_ENV+=		CRYPTOPP_LIBS=${CRYPTOPP_LIBS:Q}
.else
CONFIGURE_ARGS+=	--enable-cryptopp=no
.endif

.if !empty(PKG_OPTIONS:Mpipe)
PLIST.pipe=		yes
PDNS_MODULES+=		pipe
.endif

.if !empty(PKG_OPTIONS:Mrandom)
PLIST.random=		yes
PDNS_MODULES+=		random
.endif

.if !empty(PKG_OPTIONS:Mremote)
PLIST.remote=		yes
PDNS_MODULES+=		remote
.endif

.if !empty(PKG_OPTIONS:Msqlite)
PDNS_MODULES+=		gsqlite3
PLIST.sqlite=		yes
.include "../../databases/sqlite3/buildlink3.mk"
.endif

.if !empty(PKG_OPTIONS:Mtools)
CONFIGURE_ARGS+=	--enable-tools
PLIST.tools=		yes
.endif

.if !empty(PKG_OPTIONS:Mzeromq)
.include "../../net/zeromq/buildlink3.mk"
CONFIGURE_ARGS+=	--enable-remotebackend-zeromq=yes
.else
CONFIGURE_ARGS+=	--enable-remotebackend-zeromq=no
.endif