build_midori-gtk2() { . ./libsoup-sc.inc || exit 1 . ./desktop-file-utils-sc.inc || exit 1 . ./sqlite3-sc.inc || exit 1 . ./glib2-sc.inc || exit 1 . ./libxslt-sc.inc || exit 1 . ./gstreamer-sc.inc || exit 1 . ./liboil-sc.inc || exit 1 export PATH="/apps/bin:$PATH" HERE=`pwd` NAME=wget VER=1.10.2 BUILDDEPS="compiletc.tcz intltool.tcz gettext.tcz" #DEPS= for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done 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" if [ ! -f "$TMPDIR"/gmp ]; then export ABI="32" tar xvf gmp-5.0.2.tar.bz2 || exit 1 cd gmp-5.0.2 || exit 1 ./configure --prefix="$PKGPATH" || 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" || 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" || 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" || 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" || 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" || 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" || 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" || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/gnutls cd "$HERE" fi if [ ! -f "$TMPDIR"/ca-certificates ]; then tar xvf ca-certificates_20111211.tar.gz || exit 1 cd ca-certificates-20111211 || exit 1 mkdir -p $PKGPATH/share/ca-certificates make CERTSDIR="$PKGPATH/share/ca-certificates" || exit 1 make CERTSDIR="$PKGPATH/share/ca-certificates" install || exit 1 touch "$TMPDIR"/ca-certificates cd "$HERE" fi if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/glib-networking ]; then tar xvf glib-networking-2.30.2.tar.xz || exit 1 cd glib-networking-2.30.2 || exit 1 ./configure --prefix="$PKGPATH" --with-ca-certificates=$PKGPATH/share/ca-certificates || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/glib-networking cd "$HERE" fi if [ ! -f "$TMPDIR"/libsoup ]; then build_libsoup "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/desktop-file-utils ]; then build_desktop-file-utils "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/sqlite3 ]; then build_sqlite3 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/icu ]; then tar xvf icu4c-4_8_1_1-src.tgz || exit 1 cd icu/source || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/icu cd "$HERE" fi if [ ! -f "$TMPDIR"/libxslt ]; then build_libxslt "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/liboil ]; then build_liboil "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gstreamer ]; then build_gstreamer "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gstreamer-plugins-base ]; then tar xvf gst-plugins-base-0.10.35.tar.bz2 || exit 1 cd gst-plugins-base-0.10.35 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/gstreamer-plugins-base cd "$HERE" fi if [ ! -f "$TMPDIR"/webkit ]; then ln -sf /usr/local/bin/gcc /usr/bin/gcc tar xvf webkit-1.6.1.tar.gz || exit 1 cd webkit-1.6.1 || exit 1 PYTHON=/apps/python-2.7/bin/python ./configure --prefix="$PKGPATH" --with-gtk=2.0 || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/webkit cd "$HERE" fi if [ ! -f "$TMPDIR"/vala ]; then tar xvf vala-0.14.1.tar.xz || exit 1 cd vala-0.14.1 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/vala cd "$HERE" fi if [ ! -f "$TMPDIR"/midori-gtk2 ]; then tar xvf midori-0.4.3.tar.bz2 || exit 1 cd midori-0.4.3 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/midori-gtk2 cd "$HERE" fi touch "$TMPDIR"/midori-gtk2 }