2019-07-27 15:18:06 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
2021-07-07 15:42:01 +00:00
|
|
|
patch -p1 < no-fribidi.patch
|
|
|
|
|
|
|
|
# Remove configure check for atk-bridge and fribidi.
|
|
|
|
sed -e 's/\(ATK_PACKAGES="atk\) atk-bridge-2.0"/\1"/' \
|
|
|
|
-e 's/fribidi >= 0\.19\.7//g' \
|
|
|
|
configure > _
|
2021-07-03 21:44:07 +00:00
|
|
|
mv -f _ configure
|
|
|
|
chmod +x configure
|
2019-11-18 01:17:44 +00:00
|
|
|
|
2021-07-03 21:44:07 +00:00
|
|
|
# Remove atk-bridge code.
|
|
|
|
sed '/<atk-bridge.h>/d;/atk_bridge_adaptor_init/d' \
|
|
|
|
gtk/a11y/gtkaccessibility.c > _
|
|
|
|
mv -f _ gtk/a11y/gtkaccessibility.c
|
2019-07-27 16:35:15 +00:00
|
|
|
|
2020-01-12 08:20:48 +00:00
|
|
|
# Don't build GTK examples/demos/testsuite.
|
2021-07-03 21:44:07 +00:00
|
|
|
sed 's/demos tests testsuite examples//;s/docs \(m4macros\)/\1/' Makefile.in > _
|
|
|
|
mv -f _ Makefile.in
|
2020-01-12 08:20:48 +00:00
|
|
|
|
2019-07-27 15:18:06 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
2019-07-27 15:24:23 +00:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--enable-xkb \
|
|
|
|
--enable-xinerama \
|
|
|
|
--enable-xrandr \
|
|
|
|
--enable-xfixes \
|
|
|
|
--enable-xcomposite \
|
|
|
|
--enable-xdamage \
|
|
|
|
--enable-x11-backend \
|
2019-07-27 16:17:49 +00:00
|
|
|
--disable-schemas-compile \
|
2019-07-27 15:18:06 +00:00
|
|
|
--disable-cups \
|
|
|
|
--disable-papi \
|
|
|
|
--disable-cloudprint \
|
2020-01-12 08:20:48 +00:00
|
|
|
--disable-glibtest \
|
2020-05-12 05:39:46 +00:00
|
|
|
--disable-nls \
|
2020-02-07 23:40:04 +00:00
|
|
|
--disable-installed-tests \
|
2019-07-27 15:18:06 +00:00
|
|
|
--enable-introspection=no \
|
|
|
|
--enable-colord=no \
|
|
|
|
--enable-gtk-doc-html=no
|
|
|
|
|
|
|
|
make
|
|
|
|
make DESTDIR="$1" install
|
2020-05-03 17:59:23 +00:00
|
|
|
|
|
|
|
# We don't compile with librsvg which leads to this
|
|
|
|
# utility solely causing compiler errors for some
|
|
|
|
# packages. It has no use at all.
|
2020-05-17 07:39:05 +00:00
|
|
|
rm -f "$1/usr/bin/gtk-encode-symbolic-svg"
|