summaryrefslogtreecommitdiff
path: root/net/bind99/options.mk
diff options
context:
space:
mode:
authorsbd <sbd>2012-07-10 10:23:03 +0000
committersbd <sbd>2012-07-10 10:23:03 +0000
commitbe8ddba8df58bed9a6b92783e98fa168729fd20a (patch)
treed800dcd7af11b76c77f7f309d119debfbd487ee4 /net/bind99/options.mk
parentc814a7ea4c1ff2d2f706589c2666e2336022083c (diff)
downloadpkgsrc-be8ddba8df58bed9a6b92783e98fa168729fd20a.tar.gz
Add and enable readline option.
To make this work properly rework the readline detection to not use LIBS but instead use the new @LIBREADLINE@ AC_SUBST (This stops _everything_ being linked to libreadline!). Bump PKGREVISION.
Diffstat (limited to 'net/bind99/options.mk')
-rw-r--r--net/bind99/options.mk15
1 files changed, 13 insertions, 2 deletions
diff --git a/net/bind99/options.mk b/net/bind99/options.mk
index 38c931d910b..f60d691904c 100644
--- a/net/bind99/options.mk
+++ b/net/bind99/options.mk
@@ -1,8 +1,9 @@
-# $NetBSD: options.mk,v 1.2 2012/07/10 07:52:46 sbd Exp $
+# $NetBSD: options.mk,v 1.3 2012/07/10 10:23:03 sbd Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.bind99
PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
-PKG_SUPPORTED_OPTIONS+= inet6 threads mysql pgsql ldap dlz-filesystem
+PKG_SUPPORTED_OPTIONS+= inet6 threads readline mysql pgsql ldap dlz-filesystem
+PKG_SUGGESTED_OPTIONS+= readline
PTHREAD_OPTS+= native
.include "../../mk/pthread.buildlink3.mk"
@@ -82,6 +83,16 @@ CONFIGURE_ARGS+= --disable-threads
.endif
###
+### readline support in dig(1) and nsupdate(1).
+###
+.if !empty(PKG_OPTIONS:Mreadline)
+.include "../../devel/readline/buildlink3.mk"
+CONFIGURE_ARGS+= --with-readline
+.else
+CONFIGURE_ARGS+= --without-readline
+.endif
+
+###
### dig(1) option +sigchase for DNSSEC signature chasing
###
.if !empty(PKG_OPTIONS:Mbind-dig-sigchase)