summaryrefslogtreecommitdiff
path: root/community/mplayer2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/mplayer2/PKGBUILD')
-rw-r--r--community/mplayer2/PKGBUILD19
1 files changed, 14 insertions, 5 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD
index 23869f384..5fca87a8a 100644
--- a/community/mplayer2/PKGBUILD
+++ b/community/mplayer2/PKGBUILD
@@ -7,15 +7,19 @@ pkgname=mplayer2
pkgver=20120729
pkgrel=1
pkgdesc="An 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' 'libtheora' 'libvdpau'
- 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'lirc-utils' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
-makedepends=('mesa' 'unzip' 'yasm' 'python')
+ 'libdvdnav' 'libdvdread' 'libjpeg' 'libmad' 'libpulse' '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')
+[ "$CARCH" != "mips64el" ] && makedepends+=('yasm')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
conflicts=('mplayer')
@@ -29,14 +33,19 @@ build() {
sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop
find -type f -exec sed -e 's/python3/python/' -i {} \;
+ case $CARCH in
+ mips64el) ;;
+ *86*) extra=--enable-runtime-cpudetection;;
+ esac
+
./configure --prefix=/usr --confdir=/etc/mplayer \
--enable-translation --language=all \
- --enable-runtime-cpudetection \
--enable-joystick \
--disable-speex \
--disable-openal \
--disable-libdv \
--disable-musepack \
+ $extra \
--disable-mga
make
}