build_audacious-gtk3() { HERE=`pwd` NAME=audacious VER=3.1.2 BUILDEPS="compiletc.tcz OSS.tcz alsa.tcz alsa-dev.tcz nasm.tcz gettext.tcz glibc_gconv.tcz Xorg-7.6-dev.tcz" #DEPS= . ./mpg123-sc.inc || exit 1 . ./flac-sc.inc || exit 1 . ./libsndfile-sc.inc || exit 1 . ./ncurses-sc.inc || exit 1 . ./curl-sc.inc || exit 1 . ./libcddb-sc.inc || exit 1 . ./libmowgli-sc.inc || exit 1 . ./libcdio-sc.inc || exit 1 . ./libguess-sc.inc || exit 1 . ./alsa-lib-sc.inc || exit 1 . ./desktop-file-utils-sc.inc || exit 1 . ./lame-sc.inc || exit 1 . ./libogg-sc.inc || exit 1 . ./libvorbis-sc.inc || exit 1 . ./wavpack-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:/apps/gtk3/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk3/include" export PATH="$PKGPATH/bin:/apps/gtk3/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk3/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/curl ]; then build_curl "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libsndfile ]; then build_libsndfile "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libcddb ]; then build_libcddb "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libcddb ]; then build_libcddb "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmowgli ]; then build_libmowgli "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/wavpack ]; then build_wavpack "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libcdio ]; then build_libcdio "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libguess ]; then build_libguess "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/desktop-file-utils ]; then build_desktop-file-utils "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/lame ]; then build_lame "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libogg ]; then build_libogg "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libvorbis ]; then build_libvorbis "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/mpg123 ]; then build_mpg123 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/flac ]; then build_flac "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/audacious-gtk2 ]; then tar xvf audacious-3.1.2.tar.bz2 || exit 1 cd audacious-3.1.2 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" fi touch "$TMPDIR"/audacious-gtk2 if [ ! -f "$TMPDIR"/audacious-plugins ]; then tar xvf audacious-plugins-3.1.2.tar.bz2 || exit 1 cd audacious-plugins-3.1.2 || exit 1 ./configure --prefix="$PKGPATH" --disable-alsa --enable-amidiplug --enable-mp3 || exit 1 make || exit 1 make install || exit 1 cd "$HERE" fi touch "$TMPDIR"/audacious-plugins }