Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/libxml2 libxml2: add icu option



details:   https://anonhg.NetBSD.org/pkgsrc/rev/95ea29331b5a
branches:  trunk
changeset: 428815:95ea29331b5a
user:      adam <adam%pkgsrc.org@localhost>
date:      Sun Apr 12 07:21:04 2020 +0000

description:
libxml2: add icu option

diffstat:

 textproc/libxml2/buildlink3.mk |   8 +++++++-
 textproc/libxml2/options.mk    |  11 +++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)

diffs (46 lines):

diff -r 698a2260bc2b -r 95ea29331b5a textproc/libxml2/buildlink3.mk
--- a/textproc/libxml2/buildlink3.mk    Sun Apr 12 07:06:43 2020 +0000
+++ b/textproc/libxml2/buildlink3.mk    Sun Apr 12 07:21:04 2020 +0000
@@ -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 @@
 
 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 -r 698a2260bc2b -r 95ea29331b5a textproc/libxml2/options.mk
--- a/textproc/libxml2/options.mk       Sun Apr 12 07:06:43 2020 +0000
+++ b/textproc/libxml2/options.mk       Sun Apr 12 07:21:04 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index