summaryrefslogtreecommitdiff
path: root/chat
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>2021-10-31 07:47:06 +0000
committerkim <kim@pkgsrc.org>2021-10-31 07:47:06 +0000
commit9dbf054b6b555c44f7292fa8c8e4eee172ac8c19 (patch)
tree1eae2980999b879f4a8242ac78adfce7c10f9d57 /chat
parenta4203ba640688cd4e7a099ba4cb53da687de4a0c (diff)
downloadpkgsrc-9dbf054b6b555c44f7292fa8c8e4eee172ac8c19.tar.gz
znc: Separate charset support from nls support by adding option `icu'
Diffstat (limited to 'chat')
-rw-r--r--chat/znc/options.mk17
1 files changed, 11 insertions, 6 deletions
diff --git a/chat/znc/options.mk b/chat/znc/options.mk
index 5ba765af2b3..28c0634695e 100644
--- a/chat/znc/options.mk
+++ b/chat/znc/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.3 2019/10/01 13:49:58 nia Exp $
+# $NetBSD: options.mk,v 1.4 2021/10/31 07:47:06 kim Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.znc
-PKG_SUPPORTED_OPTIONS= inet6 nls perl python sasl-cyrus tcl
-PKG_SUGGESTED_OPTIONS= inet6 nls
+PKG_SUPPORTED_OPTIONS= icu inet6 nls perl python sasl-cyrus tcl
+PKG_SUGGESTED_OPTIONS= icu inet6 nls
PKG_OPTIONS_LEGACY_OPTS+= sasl:sasl-cyrus
@@ -15,17 +15,22 @@ CMAKE_ARGS+= -DWANT_IPV6=ON
CMAKE_ARGS+= -DWANT_IPV6=OFF
.endif
+# Charset support
+.if !empty(PKG_OPTIONS:Micu)
+CMAKE_ARGS+= -DWANT_ICU=ON
+. include "../../textproc/icu/buildlink3.mk"
+.else
+CMAKE_ARGS+= -DWANT_ICU=OFF
+.endif
+
# Native Language support
.if !empty(PKG_OPTIONS:Mnls)
USE_TOOLS+= msgfmt
PLIST_SRC+= PLIST.nls
CMAKE_ARGS+= -DWANT_I18N=ON
-CMAKE_ARGS+= -DWANT_ICU=ON
. include "../../devel/boost-libs/buildlink3.mk"
-. include "../../textproc/icu/buildlink3.mk"
.else
CMAKE_ARGS+= -DWANT_I18N=OFF
-CMAKE_ARGS+= -DWANT_ICU=OFF
.endif
# Perl support