summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorspz <spz@pkgsrc.org>2008-11-29 21:47:32 +0000
committerspz <spz@pkgsrc.org>2008-11-29 21:47:32 +0000
commitd045f6e2b4d8e0b9d8637028f33d64cfdeda2122 (patch)
treee961365edc9621a1cd450fb1b0f5725a6163b9a8 /net
parentade9915b033c4750eff7e88be95d954b980d4192 (diff)
downloadpkgsrc-d045f6e2b4d8e0b9d8637028f33d64cfdeda2122.tar.gz
add options framework, and optionalize (default off) the building of the
xml statistics server (+bump pkgrev)
Diffstat (limited to 'net')
-rw-r--r--net/bind95/Makefile5
-rw-r--r--net/bind95/options.mk16
2 files changed, 19 insertions, 2 deletions
diff --git a/net/bind95/Makefile b/net/bind95/Makefile
index cf303e57496..b2b431255e5 100644
--- a/net/bind95/Makefile
+++ b/net/bind95/Makefile
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.3 2008/08/03 18:42:31 adrianp Exp $
+# $NetBSD: Makefile,v 1.4 2008/11/29 21:47:32 spz Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME:S/-P2/pl2/}
CATEGORIES= net
MASTER_SITES= ftp://ftp.isc.org/isc/bind9/${BIND_VERSION}/
+PKGREVISION= 1
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.isc.org/sw/bind/
@@ -75,7 +76,7 @@ post-install:
.include "../../mk/pthread.buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
-.include "../../textproc/libxml2/buildlink3.mk"
+.include "options.mk"
.include "../../mk/bsd.pkg.mk"
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none") || \
diff --git a/net/bind95/options.mk b/net/bind95/options.mk
new file mode 100644
index 00000000000..53acba7ac1d
--- /dev/null
+++ b/net/bind95/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2008/11/29 21:47:32 spz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bind95
+PKG_SUPPORTED_OPTIONS= bind-xml-statistics-server
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+# use the statistics server in bind95 and later? It'll need libxml2
+.if !empty(PKG_OPTIONS:Mbind-xml-statistics-server)
+.include "../../textproc/libxml2/buildlink3.mk"
+CONFIGURE_ARGS+=--with-libxml2=yes
+.else
+CONFIGURE_ARGS+=--with-libxml2=no
+.endif
+