build_timidity-basic() { HERE=`pwd` BUILDDEPS="compiletc.tcz" #DEPS= . ./libsamplerate-sc.inc || exit 1 . ./alsa-lib-sc.inc || exit 1 . ./flac-sc.inc || exit 1 . ./jack-sc.inc || exit 1 . ./libao-sc.inc || exit 1 . ./libogg-sc.inc || exit 1 . ./libsndfile-sc.inc || exit 1 . ./libvorbis-sc.inc || exit 1 . ./ncurses-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 -L/apps/gtk2/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include" export PATH="$PKGPATH/bin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk2/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libsamplerate ]; then build_libsamplerate "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/flac ]; then build_flac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/jack ]; then build_jack "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libao ]; then build_libao "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libvorbis ]; then build_libvorbis "$PKGPATH" || exit 1 fi tar xvf TiMidity++-2.13.2.tar.bz2 || exit 1 cd TiMidity++-2.13.2 || exit 1 patch -p1 < ../2.13.2-gcc4.patch patch -p1 < ../TiMidity++-2.13.2+flac-1.1.3.patch patch -p1 < ../timidity++-2.13.2-exiterror.patch patch -p0 < ../timidity++-2.13.2-gtk26.patch patch -p0 < ../timidity++-2.13.2-polling.patch ./configure --prefix="$PKGPATH" --with-default-path="$PKGPATH"/etc \ --enable-server --enable-alsaseq --enable-spectrogram \ --enable-audio=alsa,oss,ao,vorbis,flac,jack \ --enable-dynamic=ncurses,vt100,gtk \ --disable-gtktest || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/timidity-basic }