build_wget() { . ./openssl-sc.inc HERE=`pwd` NAME=wget VER=1.10.2 BUILDDEPS="compiletc.tcz" #DEPS= if [ ! -f wget-1.13.4.tar.xz ]; then wget http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.xz || exit 1 fi for I in `echo "$BUILDDEPS"`; do su tc -c "tce-load -i "$I"" || su tc -c "tce-load -iw "$I"" done PKGPATH=$1 if [ ! -f "$TMPDIR"/openssl ]; then build_openssl "$PKGPATH" || exit 1 fi tar xvf wget-1.13.4.tar.xz || exit 1 cd wget-1.13.4 || exit 1 ./configure --prefix="$PKGPATH" --with-ssl=openssl --with-libssl-prefix="$PKGPATH"|| exit 1 make || exit 1 make install || exit 1 touch "$TMPDIR"/wget }