summaryrefslogtreecommitdiff
path: root/textproc/libxml2
diff options
context:
space:
mode:
authordrochner <drochner>2007-10-31 20:14:45 +0000
committerdrochner <drochner>2007-10-31 20:14:45 +0000
commitea62d392f03cba76abad424008fc836a4a63801a (patch)
treea49fc48b80b37a4bc70f5ec3b8d98707e349f710 /textproc/libxml2
parent46478313a869406b3fae1bcf469a850dd22b3112 (diff)
downloadpkgsrc-ea62d392f03cba76abad424008fc836a4a63801a.tar.gz
make it obey the inet6 option, from Yakovetsky Vladimir per PR pkg/37120
(A single trivial option os not worth wasting an inode, so I've put it into the Makefile.)
Diffstat (limited to 'textproc/libxml2')
-rw-r--r--textproc/libxml2/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/textproc/libxml2/Makefile b/textproc/libxml2/Makefile
index 09562e7161b..ef6026a6b6f 100644
--- a/textproc/libxml2/Makefile
+++ b/textproc/libxml2/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.89 2007/09/08 21:58:00 jlam Exp $
+# $NetBSD: Makefile,v 1.90 2007/10/31 20:14:45 drochner Exp $
DISTNAME= libxml2-2.6.30
CATEGORIES= textproc
@@ -22,6 +22,15 @@ CONFIGURE_ARGS+= --with-iconv=${BUILDLINK_PREFIX.iconv}
CONFIGURE_ARGS+= --with-html-subdir=libxml2
CONFIGURE_ARGS+= --without-python
+PKG_OPTIONS_VAR= PKG_OPTIONS.libxml2
+PKG_SUPPORTED_OPTIONS+= inet6
+.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+
# Don't use threads - it's not apparent whether it's necessary or not,
# and this library needs to be usable by non-threaded applications too
CONFIGURE_ARGS+= --without-threads