# $NetBSD: options.mk,v 1.7 2020/03/17 19:04:49 adam Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.powerdns PKG_SUPPORTED_OPTIONS= bind botan lua pipe random remote sqlite tools zeromq PKG_SUGGESTED_OPTIONS= bind pipe random .include "../../mk/bsd.options.mk" PLIST_VARS+= bind lua pipe random remote sqlite tools .if !empty(PKG_OPTIONS:Mbind) PDNS_MODULES+= bind PLIST.bind= yes .endif .if !empty(PKG_OPTIONS:Mbotan) .include "../../devel/gmp/buildlink3.mk" .include "../../security/botan-devel/buildlink3.mk" .endif .if !empty(PKG_OPTIONS:Mlua) .include "../../lang/lua/buildlink3.mk" .include "../../www/curl/buildlink3.mk" PLIST.lua= yes PDNS_MODULES+= lua .else CONFIGURE_ARGS+= --disable-lua-records CONFIGURE_ARGS+= --without-lua .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) . if empty(PKG_OPTIONS:Mremote) PKG_FAIL_REASON+= "The 'zeromq' option requires the 'remote' option enabled." . else CONFIGURE_ARGS+= --enable-remotebackend-zeromq=yes .include "../../net/zeromq/buildlink3.mk" . endif .else CONFIGURE_ARGS+= --enable-remotebackend-zeromq=no .endif