libxml2: add icu option
This commit is contained in:
parent
6f4a8dc086
commit
2e34eabace
2 changed files with 16 additions and 3 deletions
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue