pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/bind95 add options framework, and optionalize (def...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/84535a394217
branches:  trunk
changeset: 550816:84535a394217
user:      spz <spz%pkgsrc.org@localhost>
date:      Sat Nov 29 21:47:32 2008 +0000

description:
add options framework, and optionalize (default off) the building of the
xml statistics server (+bump pkgrev)

diffstat:

 net/bind95/Makefile   |   5 +++--
 net/bind95/options.mk |  16 ++++++++++++++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diffs (44 lines):

diff -r 0853d5414124 -r 84535a394217 net/bind95/Makefile
--- a/net/bind95/Makefile       Sat Nov 29 21:44:26 2008 +0000
+++ b/net/bind95/Makefile       Sat Nov 29 21:47:32 2008 +0000
@@ -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@localhost
 HOMEPAGE=      http://www.isc.org/sw/bind/
@@ -75,7 +76,7 @@
 
 .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 -r 0853d5414124 -r 84535a394217 net/bind95/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bind95/options.mk     Sat Nov 29 21:47:32 2008 +0000
@@ -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
+



Home | Main Index | Thread Index | Old Index