master hovercats/oakiss / repo / gtk+3 / build
 1#!/bin/sh -e
 2
 3export DESTDIR="$1"
 4export PKG_CONFIG_PATH=/usr/lib/pkgconfig
 5
 6patch -p1 < 0001-remove-fribidi-dependency.patch
 7
 8# fix build for muon
 9sed -E "/boolean/s~'(true|false)'~\1~g" meson_options.txt > _
10mv -f _ meson_options.txt
11
12# Disable native language support, disable atk-bridge, don't compile schemas.
13sed -e '/compile_schemas/s/true/false/' \
14    -e '/ENABLE_NLS/s/1/0/' \
15    -e "/subdir('po/d" \
16    -e "/atk-bridge/d" \
17    meson.build > _
18mv -f _ meson.build
19
20# Remove atk-bridge code.
21sed '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
22    gtk/a11y/gtkaccessibility.c > _
23mv -f _ gtk/a11y/gtkaccessibility.c
24
25muon setup \
26	-Dprefix=/usr \
27	-Dbuildtype=release \
28	-Db_colorout=never \
29	-Dx11_backend=false \
30	-Dwayland_backend=true \
31	-Dxinerama=yes \
32	-Dprint_backends=file,lpr \
33	-Dcolord=no \
34	-Dintrospection=false \
35	-Ddemos=false \
36	-Dexamples=false \
37	-Dtests=false \
38	-Ddefault_library=shared \
39	build
40
41samu -C build
42muon -C build install
43
44# We don't compile with librsvg which leads to this utility solely causing
45# compiler errors for some packages. It has no use at all.
46rm -f "$1/usr/bin/gtk-encode-symbolic-svg"