2009-10-10 02:23:22 +00:00
|
|
|
# Maintainer: Eric Belanger <eric@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=xmms
|
|
|
|
pkgver=1.2.11
|
|
|
|
pkgrel=2
|
|
|
|
pkgdesc="The X MultiMedia System"
|
2009-11-29 06:56:54 +00:00
|
|
|
arch=('arm')
|
2009-10-10 02:23:22 +00:00
|
|
|
url="http://www.xmms.org"
|
|
|
|
license=('GPL')
|
|
|
|
depends=('libsm' 'libxxf86vm' 'zlib' 'gtk' 'libvorbis' 'esound' 'alsa-lib' 'libgl')
|
|
|
|
makedepends=('mesa')
|
|
|
|
options=('!libtool')
|
|
|
|
source=(http://www.xmms.org/files/1.2.x/${pkgname}-${pkgver}.tar.bz2 \
|
|
|
|
xmms-menu.patch xmms-1.2.10-crossfade-0.3.9.patch xmms-fix.diff \
|
|
|
|
xmms-1.2.11-CVE-2007-0653.0654.patch xmms-1.2.11-fix-http-title-mpg123.patch \
|
|
|
|
xmms-1.2.11-3dse.patch xmms-1.2.10-recode-id3.patch \
|
|
|
|
xmms-1.2.10-fonts.patch xmms.16.png xmms.32.png xmms.48.png)
|
|
|
|
md5sums=('f3e6dbaf0b3f571a532ab575656be506' 'b7b6f1811bad8d14e4c4534240e45980'\
|
|
|
|
'4eb222111a82a2e1ebe63b5f6109133d' 'd7f9dc3712c486658149c4504f7478a7'\
|
|
|
|
'e59e8c66f4e4077a8096ad98c77f0eb6' '25609a6b5b7632e4c8e6de927f8d70db'\
|
|
|
|
'2b534832b0dbb0d06dbcc829e2b702e6' 'd1715c291d35ee8854e5d926912e8b0d'\
|
|
|
|
'408ea5e28c4c4c221cf3c8ded76fd1f0' '3c328565c99c85d92ac0b9918805da46'\
|
|
|
|
'128406a02c07cd477dc901f2a658add5' 'd022280df4379383732a8a26abea1d08')
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
# Fix xmms.desktop
|
|
|
|
patch -p0 < ../xmms-menu.patch || return 1
|
|
|
|
# Patch for hang with xmms-crossfade
|
|
|
|
patch -p1 < ../xmms-1.2.10-crossfade-0.3.9.patch || return 1
|
|
|
|
# fix xmms not able to be shown double size,at least needed for x86_64
|
|
|
|
patch -p1 < ../xmms-fix.diff || return 1
|
|
|
|
# Several patches from Mandriva
|
|
|
|
patch -p1 < ../xmms-1.2.11-fix-http-title-mpg123.patch || return 1
|
|
|
|
patch -p0 < ../xmms-1.2.10-recode-id3.patch || return 1
|
|
|
|
patch -p1 < ../xmms-1.2.11-3dse.patch || return 1
|
|
|
|
patch -p1 < ../xmms-1.2.10-fonts.patch || return 1
|
|
|
|
patch -p1 < ../xmms-1.2.11-CVE-2007-0653.0654.patch || return 1
|
|
|
|
|
|
|
|
if [ "$CARCH" == "x86_64" ]; then
|
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man --disable-mikmod --disable-simd || return 1 # for x86_64
|
|
|
|
else
|
|
|
|
./configure --prefix=/usr --mandir=/usr/share/man --disable-mikmod --enable-simd || return 1 # for i686
|
|
|
|
fi
|
|
|
|
make || return 1
|
|
|
|
make DESTDIR=${pkgdir} install || return 1
|
|
|
|
|
|
|
|
install -D -m644 xmms/xmms.desktop ${pkgdir}/usr/share/applications/xmms.desktop
|
|
|
|
install -D -m644 xmms/xmms_mini.xpm ${pkgdir}/usr/share/pixmaps/xmms_mini.xpm
|
|
|
|
install -D -m644 ../xmms.16.png ${pkgdir}/usr/share/pixmaps/xmms16.png
|
|
|
|
install -D -m644 ../xmms.32.png ${pkgdir}/usr/share/pixmaps/xmms32.png
|
|
|
|
install -D -m644 ../xmms.48.png ${pkgdir}/usr/share/pixmaps/xmms48.png
|
|
|
|
ln -s /usr/share/pixmaps/xmms48.png ${pkgdir}/usr/share/pixmaps/xmms.png
|
|
|
|
|
|
|
|
# don't want wmxmms
|
|
|
|
rm -rf ${pkgdir}/usr/bin/wmxmms ${pkgdir}/usr/share/xmms
|
|
|
|
rm -f ${pkgdir}/usr/share/man/man1/{gnomexmms.1,wmxmms.1}
|
|
|
|
}
|