Sun Apr 12 07:21:04 2020 UTC ()
libxml2: add icu option


(adam)
diff -r1.18 -r1.19 pkgsrc/textproc/libxml2/buildlink3.mk
diff -r1.2 -r1.3 pkgsrc/textproc/libxml2/options.mk

cvs diff -r1.18 -r1.19 pkgsrc/textproc/libxml2/buildlink3.mk (expand / switch to context diff)
--- pkgsrc/textproc/libxml2/buildlink3.mk 2012/06/14 07:39:37 1.18
+++ pkgsrc/textproc/libxml2/buildlink3.mk 2020/04/12 07:21:04 1.19
@@ -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
 
@@ -12,6 +12,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"

cvs diff -r1.2 -r1.3 pkgsrc/textproc/libxml2/options.mk (expand / switch to context diff)
--- pkgsrc/textproc/libxml2/options.mk 2012/06/12 15:46:03 1.2
+++ pkgsrc/textproc/libxml2/options.mk 2020/04/12 07:21:04 1.3
@@ -1,10 +1,17 @@
-# $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