build_gamin(){ HERE=`pwd` BUILDDEPS="compiletc.tcz Xorg-7.6-lib.tcz Xorg-7.6-dev.tcz gettext.tcz intltool.tcz" for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done . ./glib2-sc.inc || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib -L/apps/gtk2/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include" export PATH="$PKGPATH/bin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib:/apps/gtk2/lib" if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" || exit 1 fi tar xvf gamin-0.1.10.tar.xz || exit 1 cd gamin-0.1.10 || exit 1 # https://bugzilla.redhat.com/show_bug.cgi?id=786170 zcat ../fix-double-lock-in-inotify-helper-c.patch.gz | patch -p1 --verbose || exit 1 # Fix a build error with newer toolchain zcat ../no_g_const_return.patch.gz | patch -p1 --verbose || exit 1 ./configure --prefix="$PKGPATH" --disable-static --with-threads \ --disable-debug-api --disable-debug --libexecdir="$PKGPATH"/libexec || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/gamin }