summaryrefslogtreecommitdiff
path: root/textproc/libxml2
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2020-04-12 07:21:04 +0000
committeradam <adam@pkgsrc.org>2020-04-12 07:21:04 +0000
commitc0803da8b7152ce28d2aefad53c14da60e7e5b12 (patch)
tree41904687bd5aac7f5e518978ebbd2e5c71abb447 /textproc/libxml2
parent52552027c9a367ecc3382e756fed1d237e7878b1 (diff)
downloadpkgsrc-c0803da8b7152ce28d2aefad53c14da60e7e5b12.tar.gz
libxml2: add icu option
Diffstat (limited to 'textproc/libxml2')
-rw-r--r--textproc/libxml2/buildlink3.mk8
-rw-r--r--textproc/libxml2/options.mk11
2 files changed, 16 insertions, 3 deletions
diff --git a/textproc/libxml2/buildlink3.mk b/textproc/libxml2/buildlink3.mk
index 172bb774e19..0168bf3a80c 100644
--- a/textproc/libxml2/buildlink3.mk
+++ b/textproc/libxml2/buildlink3.mk
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.18 2012/06/14 07:39:37 sbd Exp $
+# $NetBSD: buildlink3.mk,v 1.19 2020/04/12 07:21:04 adam Exp $
BUILDLINK_TREE+= libxml2
@@ -13,6 +13,12 @@ BUILDLINK_FILES.libxml2+= bin/xml2-config
USE_FEATURES+= glob
+pkgbase := libxml2
+.include "../../mk/pkg-build-options.mk"
+.if ${PKG_BUILD_OPTIONS.libxml2:Micu}
+.include "../../textproc/icu/buildlink3.mk"
+.endif
+
.include "../../archivers/xz/buildlink3.mk"
.include "../../converters/libiconv/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
diff --git a/textproc/libxml2/options.mk b/textproc/libxml2/options.mk
index 15c408f6397..6faceb82263 100644
--- a/textproc/libxml2/options.mk
+++ b/textproc/libxml2/options.mk
@@ -1,11 +1,18 @@
-# $NetBSD: options.mk,v 1.2 2012/06/12 15:46:03 wiz Exp $
+# $NetBSD: options.mk,v 1.3 2020/04/12 07:21:04 adam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libxml2
-PKG_SUPPORTED_OPTIONS+= inet6
+PKG_SUPPORTED_OPTIONS+= icu inet6
PKG_SUGGESTED_OPTIONS= inet6
.include "../../mk/bsd.options.mk"
+.if !empty(PKG_OPTIONS:Micu)
+.include "../../textproc/icu/buildlink3.mk"
+CONFIGURE_ARGS+= --with-icu
+.else
+CONFIGURE_ARGS+= --without-icu
+.endif
+
.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+= --enable-ipv6
.else