build_libguess() { HERE=`pwd` NAME=libguess VER=1.1 . ./libmowgli-sc.inc || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib $LDFLAGS" export CPPFLAGS="-I$PKGPATH/include $CPPFLAGS" export PATH="$PKGPATH/bin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/libmowgli ]; then build_libmowgli "$PKGPATH" || exit 1 fi tar xvf libguess-1.1.tar.gz|| exit 1 cd libguess-1.1 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/libguess }