build_gftp-gtk1(){ HERE=`pwd` . ./glib1-sc.inc || exit 1 . ./gtk1-sc.inc || exit 1 . ./openssl-sc.inc || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/openssl ]; then build_openssl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/glib1 ]; then build_glib1 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gtk1 ]; then build_gtk1 "$PKGPATH" || exit 1 fi tar xvf gftp-2.0.19.tar.bz2 cd gftp-2.0.19 ./configure --prefix="$PKGPATH" --disable-nls --disable-gtk20 || exit 1 make make install touch "$TMPDIR"/gftp-gtk1 }