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 4f04a4680..156dacde6 100644
--- a/community/mplayer2/PKGBUILD
+++ b/community/mplayer2/PKGBUILD
@@ -7,17 +7,21 @@ pkgname=mplayer2
pkgver=20130309
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-paranoia' 'libdca' 'libdvdcss' 'libdvdnav' 'libdvdread'
- 'libgl' 'libjpeg' 'libmad' 'libpulse' 'libquvi' 'libtheora' 'libvdpau'
- 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'lirc-utils'
+ 'libjpeg' 'libmad' 'libpulse' 'libquvi' 'libtheora'
+ 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm'
'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
-makedepends=('mesa' 'mesa-libgl' 'unzip' 'yasm' 'python' 'python-docutils')
+makedepends=('unzip' 'python' 'python-docutils')
+if [ "$CARCH" != "mips64el" ]; then
+ depends+=('libgl' 'libvdpau' 'lirc-utils')
+ makedepends+=('mesa' 'mesa-libgl' 'yasm')
+fi
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
@@ -35,14 +39,16 @@ prepare() {
build() {
cd $pkgname-$pkgver
+ [ "$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
}