build_git() { HERE=`pwd` BUILDDEPS="compiletc.tcz" #DEPS= . ./curl-sc.inc || exit 1 . ./openssl-sc.inc || exit 1 . ./expat-sc.inc || exit 1 . ./pcre-sc.inc || exit 1 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" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/openssl ]; then build_openssl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/curl ]; then build_curl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/expat ]; then build_expat "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/pcre ]; then build_pcre "$PKGPATH" || exit 1 fi tar xvf git-1.7.8.4.tar.gz || exit 1 cd git-1.7.8.4 || exit 1 export PYTHON_PATH='/apps/bin/python' ./configure --prefix="$PKGPATH" --enable-shared || exit 1 make prefix="$PKGPATH" gitexecdir="$PKGPATH"/lib/git-core \ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ USE_LIBPCRE=1 \ NO_CROSS_DIRECTORY_HARDLINKS=1 || exit 1 make prefix="$PKGPATH" gitexecdir="$PKGPATH"/lib/git-core \ CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \ USE_LIBPCRE=1 \ NO_CROSS_DIRECTORY_HARDLINKS=1 install || exit 1 cd "$HERE" touch "$TMPDIR"/git }