build_xmms() { . ./glib1-sc.inc || exit 1 . ./gtk1-sc.inc || exit 1 . ./libmikmod-sc.inc || exit 1 . ./alsa-lib-sc.inc || exit 1 . ./libvorbis-sc.inc || exit 1 . ./libogg-sc.inc || exit 1 HERE=`pwd` NAME=xmms VER=1.2.11 BUILDDEPS="compiletc.tcz texinfo.tcz Xorg-7.6-dev.tcz" #DEPS= if [ ! -f xmms-1.2.11.tar.bz2 ]; then wget http://www.xmms.org/files/1.2.x/xmms-1.2.11.tar.bz2 fi 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/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:$PKG_CONFIG_PATH" export LD_LIBRARY_PATH="$PKGPATH/lib" 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"/glib1 ]; then build_glib1 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/gtk1 ]; then build_gtk1 "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/libmikmod ]; then build_libmikmod "$PKGPATH" || exit 1 fi if [ ! -f "$TMPDIR"/alsa-lib ]; then build_alsa-lib "$PKGPATH" || exit 1 fi tar xvf xmms-1.2.11.tar.bz2 || exit 1 cd xmms-1.2.11 || exit 1 #Arch Linux Patches - patch -p1 < ../xmms-1.2.10-crossfade-0.3.9.patch || exit 1 patch -p1 < ../xmms-fix.diff || exit 1 patch -p1 < ../xmms-1.2.11-fix-http-title-mpg123.patch || exit 1 patch -p0 < ../xmms-1.2.10-recode-id3.patch || exit 1 patch -p1 < ../xmms-1.2.11-3dse.patch || exit 1 patch -p1 < ../xmms-1.2.10-fonts.patch || exit 1 patch -p1 < ../xmms-1.2.11-CVE-2007-0653.0654.patch || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 mv "$PKGPATH"/bin/xmms "$PKGPATH"/bin/xmms-bin echo "#!/bin/sh" > "$PKGPATH"/bin/xmms echo " " >> "$PKGPATH"/bin/xmms echo "export LD_LIBRARY_PATH="$PKGPATH/lib:\$LD_LIBRARY_PATH"" >> "$PKGPATH"/bin/xmms echo "export PATH="$PKGPATH/bin:\$PATH"" >> "$PKGPATH"/bin/xmms echo " " >> "$PKGPATH"/bin/xmms echo "$PKGPATH/bin/xmms-bin \"\$@\"" >> "$PKGPATH"/bin/xmms echo " " >> "$PKGPATH"/bin/xmms chmod +x "$PKGPATH"/bin/xmms mv "$PKGPATH"/bin/wmxmms "$PKGPATH"/bin/wmxmms-bin echo "#!/bin/sh" > "$PKGPATH"/bin/wmxmms echo " " >> "$PKGPATH"/bin/wmxmms echo "export LD_LIBRARY_PATH="$PKGPATH/lib:$LD_LIBRARY_PATH"" >> "$PKGPATH"/bin/wmxmms echo "export PATH="$PKGPATH/bin:$PATH"" >> "$PKGPATH"/bin/wmxmms echo " " >> "$PKGPATH"/bin/wmxmms echo "$PKGPATH/bin/wmxmms-bin \"\$@\"" >> "$PKGPATH"/bin/wmxmms echo " " >> "$PKGPATH"/bin/wmxmms chmod +x "$PKGPATH"/bin/wmxmms cd "$HERE" touch "$TMPDIR"/xmms }