#!/bin/sh
HERE=${0%/*}
cd $HERE
tce-load -i `cat build-dep`
tce-load -i compiletc autogen-dev automake
tar zxf ibus-*.tar.gz -C /tmp
./downloaded/MODIFY
cd /tmp/ibus*
./autogen.sh --prefix=/usr/local \
--sysconfdir=/usr/local/etc \
--libdir=/usr/local/lib \
--libexecdir=/usr/local/lib/ibus \
--enable-python-library \
--enable-gtk-doc \
--enable-vala=yes \
--enable-wayland \
CC="gcc -flto -fuse-linker-plugin" \
CXX="g++ -flto -fuse-linker-plugin" \
CFLAGS="-mtune=generic -Os -pipe" \
CXXFLAGS="-mtune=generic -Os -pipe" \
LDFLAGS="-Wl,-O1" 1> /tmp/autogen1 2> /tmp/autogen2
XML_CATALOG_FILES="/usr/local/etc/xml/catalog" make -j 1> /tmp/make1 2> /tmp/make2
make DESTDIR=/tmp/ibus-base install 1> /tmp/install1 2> /tmp/install2
