build_nano() { HERE=`pwd` NAME=lame VER=3.99.3 . ./slang-sc.inc || exit 1 . ./file-sc.inc || exit 1 BUILDDEPS="compiletc.tcz intltool.tcz gettext.tcz" 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/localbin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" if [ ! -f "$TMPDIR"/slang ]; then build_slang "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/file ]; then build_file "$PKGPATH" || exit 1 fi tar xvf nano-2.2.6.tar.xz || exit 1 cd nano-2.2.6 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin \ -sysconfdir="$PKGPATH"/etc --enable-color --enable-nanorc \ --enable-multibuffer --disable-wrapping-as-root --with-slang="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/nano }