summaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authornia <nia@pkgsrc.org>2020-11-07 10:05:11 +0000
committernia <nia@pkgsrc.org>2020-11-07 10:05:11 +0000
commit0d716ae55ba5ae384b563e21e6ed3b306a91eeb9 (patch)
treea7400da3d42198d60eae8839ab1c647edce3bd2a /x11
parentd2cee045d483d198f3c1fb597f3ee3124f661bdc (diff)
downloadpkgsrc-0d716ae55ba5ae384b563e21e6ed3b306a91eeb9.tar.gz
vte3: Make icu support optional.
According to upstream it's only used for legacy charset support, and doesn't seem to be enabled in some popular Linux distributions I checked.
Diffstat (limited to 'x11')
-rw-r--r--x11/vte3/Makefile6
-rw-r--r--x11/vte3/options.mk16
2 files changed, 19 insertions, 3 deletions
diff --git a/x11/vte3/Makefile b/x11/vte3/Makefile
index 1d0ace7eef3..679f9a51272 100644
--- a/x11/vte3/Makefile
+++ b/x11/vte3/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.32 2020/11/05 09:09:29 ryoon Exp $
+# $NetBSD: Makefile,v 1.33 2020/11/07 10:05:11 nia Exp $
DISTNAME= vte-0.60.3
PKGNAME= ${DISTNAME:S/vte/vte3/}
-PKGREVISION= 4
+PKGREVISION= 5
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/vte/0.60/}
EXTRACT_SUFX= .tar.xz
@@ -25,6 +25,7 @@ GCC_REQD+= 7
# have libsystemd.
MESON_ARGS+= -D_systemd=false
+.include "options.mk"
.include "../../devel/meson/build.mk"
.include "../../converters/fribidi/buildlink3.mk"
.include "../../devel/glib2/buildlink3.mk"
@@ -34,7 +35,6 @@ MESON_ARGS+= -D_systemd=false
.include "../../devel/zlib/buildlink3.mk"
.include "../../lang/vala/buildlink3.mk"
.include "../../security/gnutls/buildlink3.mk"
-.include "../../textproc/icu/buildlink3.mk"
.include "../../x11/gtk3/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/termcap.buildlink3.mk"
diff --git a/x11/vte3/options.mk b/x11/vte3/options.mk
new file mode 100644
index 00000000000..5e9b4c82b48
--- /dev/null
+++ b/x11/vte3/options.mk
@@ -0,0 +1,16 @@
+# $NetBSD: options.mk,v 1.1 2020/11/07 10:05:11 nia Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.vte3
+PKG_SUPPORTED_OPTIONS= icu
+
+.include "../../mk/bsd.options.mk"
+
+#
+# Enable legacy charsets support.
+#
+.if !empty(PKG_OPTIONS:Micu)
+. include "../../textproc/icu/buildlink3.mk"
+MESON_ARGS+= -Dicu=true
+.else
+MESON_ARGS+= -Dicu=false
+.endif