summaryrefslogtreecommitdiff
path: root/community/mplayer2
diff options
context:
space:
mode:
Diffstat (limited to 'community/mplayer2')
-rw-r--r--community/mplayer2/PKGBUILD18
1 files changed, 12 insertions, 6 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD
index 0570b3162..34065c2e8 100644
--- a/community/mplayer2/PKGBUILD
+++ b/community/mplayer2/PKGBUILD
@@ -7,15 +7,19 @@ pkgname=mplayer2
pkgver=20120729
pkgrel=2
pkgdesc='Advanced general-purpose media player. A fork of the original MPlayer project'
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url="http://www.mplayer2.org/"
install=$pkgname.install
depends=('a52dec' 'aalib' 'cdparanoia' 'desktop-file-utils' 'enca' 'faad2' 'ffmpeg' 'fontconfig'
'freetype2' 'jack' 'ladspa' 'lame' 'libass' 'libbluray' 'libcaca' 'libcdio' 'libdca' 'libdvdcss'
- 'libdvdnav' 'libdvdread' 'libgl' 'libjpeg' 'libmad' 'libpulse' 'libquvi' 'libtheora' 'libvdpau'
- 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'lirc-utils' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
-makedepends=('mesa' 'unzip' 'yasm' 'python' 'python-docutils')
+ 'libdvdnav' 'libdvdread' 'libjpeg' 'libmad' 'libpulse' 'libquvi' 'libtheora'
+ 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
+if [ "$CARCH" != "mips64el" ]; then
+depends+=('libgl' 'libvdpau' 'lirc-utils')
+fi
+makedepends=('mesa' 'unzip' 'python' 'python-docutils')
+[ "$CARCH" != "mips64el" ] && makedepends+=('yasm')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
@@ -36,14 +40,16 @@ build() {
sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop
find -type f -exec sed -e 's/python3/python/' -i {} \;
+ [ "$CARCH" != "mips64el" ] && extra="--enable-runtime-cpudetection"
+
./configure --prefix=/usr --confdir=/etc/mplayer \
--enable-translation --language=all \
- --enable-runtime-cpudetection \
--enable-joystick \
--disable-speex \
--disable-openal \
--disable-libdv \
- --disable-musepack
+ --disable-musepack \
+ $extra
make
}