mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-23 07:40:11 -07:00
gtk+2: simplify build
This commit is contained in:
parent
1bcad09d8d
commit
6f852812ef
@ -1,11 +1,8 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
triplet=$(cc -dumpmachine)
|
|
||||||
export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
|
export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--build="$triplet" \
|
|
||||||
--host="$triplet" \
|
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
@ -13,11 +10,9 @@ export CFLAGS="$CFLAGS -UGDK_PIXBUF_DISABLE_DEPRECATED"
|
|||||||
--disable-gtk-doc \
|
--disable-gtk-doc \
|
||||||
--with-xinput=yes
|
--with-xinput=yes
|
||||||
|
|
||||||
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
||||||
sed -i -e 's/demos //g' Makefile
|
|
||||||
|
|
||||||
make
|
make
|
||||||
make DESTDIR="$1" install
|
make DESTDIR="$1" install
|
||||||
|
|
||||||
# Conflicts with GTK+3.
|
|
||||||
rm -f "$1/usr/bin/gtk-update-icon-cache"
|
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"
|
||||||
|
Loading…
Reference in New Issue
Block a user