gtk+2: simplify build

This commit is contained in:
Dylan Araps 2019-10-08 09:53:28 +03:00
parent 1bcad09d8d
commit 6f852812ef
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 7 deletions

View File

@ -1,11 +1,8 @@
#!/bin/sh -e
triplet=$(cc -dumpmachine)
export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
./configure \
--build="$triplet" \
--host="$triplet" \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
@ -13,11 +10,9 @@ export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
--disable-gtk-doc \
--with-xinput=yes
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
sed -i -e 's/demos //g' Makefile
make
make DESTDIR="$1" install
# Conflicts with GTK+3.
rm -f "$1/usr/bin/gtk-update-icon-cache"
rm -f "$1/usr/bin/gtk-demo"
rm -rf "$1/usr/share/gtk-2.0/demo"