build_pidgin-minimal() { HERE=`pwd` NAME=pidgin VER=2.10.1 BUILDDEPS="intltool.tcz Xorg-7.6-lib.tcz Xorg-7.6-dev.tcz compiletc.tcz gettext.tcz" scm-load -iw perl5.scm scm-load -iw python-2.7.scm for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done export PKGPATH=$1 export LDFLAGS="-L"$PKGPATH"/lib -L/apps/gtk2/lib $LDFLAGS" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include -I$PKGPATH/include/ncurses $CPPFLAGS" export PATH=""$PKGPATH"/localbin:/apps/gtk2/localbin:$PATH" export PKG_CONFIG_PATH="/apps/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH=""$PKGPATH"/lib:/apps/gtk2/lib" if [ ! -f "$TMPDIR"/ncurses ]; then tar xvf ncurses-5.9.tar.gz || exit 1 cd ncurses-5.9 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH/localbin" --with-shared --with-ncurses-headers="$PKGPATH"/include --with-normal --without-debug --without-ada --without-tests || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/ncurses cd "$HERE" fi if [ ! -f "$TMPDIR"/gmp ]; then tar xvf gmp-5.0.2.tar.bz2 || exit 1 cd gmp-5.0.2 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/gmp cd "$HERE" fi if [ ! -f "$TMPDIR"/libidn ]; then tar xvf libidn-1.22.tar.gz || exit 1 cd libidn-1.22 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/libidn cd "$HERE" fi if [ ! -f "$TMPDIR"/nettle ]; then tar xvf nettle-2.4.tar.gz || exit 1 cd nettle-2.4 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/nettle cd "$HERE" fi if [ ! -f "$TMPDIR"/p11-kit ]; then tar xvf p11-kit-0.9.tar.gz || exit 1 cd p11-kit-0.9 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/p11-kit cd "$HERE" fi if [ ! -f "$TMPDIR"/libgpg-error ]; then tar xvf libgpg-error-1.10.tar.bz2 || exit 1 cd libgpg-error-1.10 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/libgpg-error cd "$HERE" fi if [ ! -f "$TMPDIR"/libgcrypt ]; then tar xvf libgcrypt-1.5.0.tar.bz2 || exit 1 cd libgcrypt-1.5.0 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/libgcrypt cd "$HERE" fi if [ ! -f "$TMPDIR"/libtasn1 ]; then tar xvf libtasn1-2.9.tar.gz || exit 1 cd libtasn1-2.9 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/libtasn1 cd "$HERE" fi if [ ! -f "$TMPDIR"/gnutls ]; then tar xvf gnutls-3.0.9.tar.xz || exit 1 cd gnutls-3.0.9 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/gnutls cd "$HERE" fi tar xvf pidgin-2.10.6.tar.bz2 || exit 1 cd pidgin-2.10.6 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin --with-ncurses-headers="$PKGPATH"/include/ncurses --disable-nss --with-gnutls-libs=/apps/pidgin-minimal/lib --with-gnutls-includes="$PKGPATH"/include --disable-avahi --disable-meanwhile --disable-idn --disable-vv --with-x --disable-doxygen --disable-tk --disable-tcl --disable-dbus --disable-nm --disable-gstreamer --disable-gstreamer-interfaces --disable-gtkspell || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/pidgin-minimal }