build_sox() { HERE=`pwd` NAME=lame VER=3.99.3 . ./lame-sc.inc || exit 1 . ./file-sc.inc || exit 1 . ./gsm-sc.inc || exit 1 . ./libao-sc.inc || exit 1 . ./libid3tag-sc.inc || exit 1 . ./libsndfile-sc.inc || exit 1 . ./opencore-amr-sc.inc || exit 1 . ./wavpack-sc.inc || exit 1 . ./libmad-sc.inc || exit 1 su tc -c "scm-load -iw xmms.scm" su tc -c "scm-load -iw ffmpeg-static.scm" su tc -c "scm-load -iw ffmpeg-static-dev.scm" cp -a /apps/xmms /apps/xmms1 su tc -c "scm-load -r xmms.scm" mv /apps/xmms1 /apps/xmms BUILDDEPS="compiletc.tcz Xorg-7.6-dev.tcz Xorg-7.6-lib.tcz gettext.tcz intltool.tcz libltdl.tcz libtool.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/ffmpeg-static/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/ffmpeg-static/include" export PATH="$PKGPATH/localbin:/apps/ffmpeg-static/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/ffmpeg-static/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH"/lib #export FFMPEG_LIBS="-L/apps/sox/lib" #export FFMPEG_CFLAGS="-I/apps/sox/include" if [ ! -f "$TMPDIR"/lame ]; then build_lame "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/file ]; then build_file "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gsm ]; then build_gsm "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libao ]; then build_libao "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libid3tag ]; then build_libid3tag "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libsndfile ]; then build_libsndfile "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/opencore-amr ]; then build_opencore-amr "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/wavpack ]; then build_wavpack "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmad ]; then build_libmad "$PKGPATH" || exit 1 fi tar xvf sox-14.4.1.tar.bz2 || exit 1 cd sox-14.4.1 || exit 1 #patch -p0 -i ../sox_default_audio_driver_fallback.patch || exit 1 #patch -p1 -i ../sox-ffmpeg0.11.patch || exit 1 ./configure --prefix="$PKGPATH" --sysconfdir="$PKGPATH"/etc --with-ffmpeg --disable-shared --enable-static \ --without-libltdl --bindir="$PKGPATH"/localbin --with-distro="Tiny Core Linux" make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/sox }