build_mc() { HERE=`pwd` BUILDDEPS="compiletc.tcz perl5.tcz" #DEPS= . ./file-sc.inc || exit 1 . ./xz-sc.inc || exit 1 . ./grep-sc.inc || exit 1 . ./unrar-sc.inc || exit 1 . ./gzip-sc.inc || exit 1 . ./tar-sc.inc || exit 1 . ./slang-sc.inc || exit 1 . ./glib2-sc.inc || exit 1 . ./gawk-sc.inc || exit 1 . ./p7zip-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 [ -d /apps/xpdf ] || su tc -c "scm-load -iw xpdf" || exit 1 [ -d /apps/cdrtools ] || su tc -c "scm-load -iw cdrtools" || exit 1 [ -d /apps/zip-unzip ] || su tc -c "scm-load -iw zip-unzip" || exit 1 mkdir -p "$PKGPATH"/localbin cp -a /apps/cdrtools/bin/isoinfo "$PKGPATH"/localbin/ || exit 1 cp -a /apps/zip-unzip/bin/* "$PKGPATH"/localbin/ || exit 1 cp -a /apps/xpdf/localbin/pdftotext "$PKGPATH"/localbin/ || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" cp -a tczsupport/files/* "$PKGPATH"/localbin/ if [ ! -f "$TMPDIR"/file ]; then build_file "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/xz ]; then build_xz "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/grep ]; then build_grep "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/unrar ]; then build_unrar "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/tar ]; then build_tar "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gzip ]; then build_gzip "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/p7zip ]; then build_p7zip "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/glib2 ]; then build_glib2 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/slang ]; then build_slang "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gawk ]; then build_gawk "$PKGPATH" || exit 1 fi tar xvf mc-4.8.3.tar.xz cd mc-4.8.3 patch -Np0 -i ../mc-changeset_8607bcc1.diff || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin \ --enable-charset \ --disable-static \ --with-screen=slang || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/mc }