diff options
Diffstat (limited to 'net/powerdns/options.mk')
-rw-r--r-- | net/powerdns/options.mk | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/net/powerdns/options.mk b/net/powerdns/options.mk index 0d21fe5d450..9bb36d415c5 100644 --- a/net/powerdns/options.mk +++ b/net/powerdns/options.mk @@ -1,7 +1,8 @@ -# $NetBSD: options.mk,v 1.1 2014/12/10 14:50:08 fhajny Exp $ +# $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 pipe random remote sqlite tools +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" @@ -18,6 +19,17 @@ 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 @@ -43,3 +55,10 @@ PLIST.sqlite= yes 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 |