aboutsummaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-09-09 20:11:26 +0300
committerCem Keylan <cem@ckyln.com>2021-09-09 20:11:26 +0300
commitc2c3cbb75bba9e990d71f74629fec147c0e043bd (patch)
tree9d0e524032968df29da3852e927a597e8367af13 /extra
parenta61250b4198fa1b3153f303c7cc6082cf63f0c42 (diff)
downloadrepository-c2c3cbb75bba9e990d71f74629fec147c0e043bd.tar.gz
gtk+3: use cl-meson
Diffstat (limited to 'extra')
-rwxr-xr-xextra/gtk+3/build51
-rw-r--r--extra/gtk+3/depends1
2 files changed, 20 insertions, 32 deletions
diff --git a/extra/gtk+3/build b/extra/gtk+3/build
index c6b7d7c3..23bdec18 100755
--- a/extra/gtk+3/build
+++ b/extra/gtk+3/build
@@ -1,41 +1,28 @@
#!/bin/sh -e
-sed_i() {
- for file; do :; done
- sed "$@" > _
- cat _ > "$file"; rm -f _
-}
+export DESTDIR=$1
+
+# Remove error on array-bounds
+clsed '/array-bounds/d' meson.build
# Remove 'atk-bridge' dependency which removes the 'dbus' dependency.
-sed_i 's/ATK_PACKAGES="atk atk-bridge-2.0"/ATK_PACKAGES="atk"/' \
- configure
+clsed '/atk-bridge-2/d' meson.build
-sed_i '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
+clsed '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
gtk/a11y/gtkaccessibility.c
-cpt l wayland >/dev/null 2>&1 && wayland=--enable-wayland-backend
+tests=false; [ "$CPT_TEST" = 1 ] && tests=true
-./configure \
- --prefix=/usr \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --enable-static \
- --enable-xkb \
- --enable-xinerama \
- --enable-xrandr \
- --enable-xfixes \
- --enable-xcomposite \
- --enable-xdamage \
- --enable-x11-backend \
- "$wayland" \
- --enable-debug=no \
- --disable-schemas-compile \
- --disable-cups \
- --disable-papi \
- --disable-cloudprint \
- --enable-introspection \
- --enable-colord=no \
- --enable-gtk-doc-html=no
+cl-meson \
+ -Ddefault_library=both \
+ -Dxinerama=yes \
+ -Dx11_backend=true \
+ -Dwayland_backend="$(cpt l -C wayland true false)" \
+ -Dprint_backends=file \
+ -Ddemos=false \
+ -Dexamples=false \
+ -Dtests="$tests" \
+ . output
-make
-make DESTDIR="$1" install
+ninja -C output
+ninja -C output install
diff --git a/extra/gtk+3/depends b/extra/gtk+3/depends
index d7874876..56352d9b 100644
--- a/extra/gtk+3/depends
+++ b/extra/gtk+3/depends
@@ -10,6 +10,7 @@ libXi
libXinerama
libXrandr
libepoxy
+meson make
pango
perl make
python make