diff options
Diffstat (limited to 'community/mplayer2')
-rw-r--r-- | community/mplayer2/PKGBUILD | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD index 4569d5339..d389f3b7c 100644 --- a/community/mplayer2/PKGBUILD +++ b/community/mplayer2/PKGBUILD @@ -7,15 +7,19 @@ pkgname=mplayer2 pkgver=20120517 pkgrel=2 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') + 'libdvdnav' 'libdvdread' 'libjpeg' 'libmad' 'libpulse' 'libtheora' 'lirc-utils' + 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu') +if [ "$CARCH" != "mips64el" ]; then +depends+=('libgl' 'libvdpau') +fi +makedepends=('mesa' 'unzip') +[ "$CARCH" != "mips64el" ] && makedepends+=('yasm') backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') provides=('mplayer') conflicts=('mplayer') @@ -28,8 +32,12 @@ build() { sed 's/gmplayer/mplayer/g' -i etc/mplayer.desktop + case $CARCH in + mips64el) ;; + *86*) extra=--enable-runtime-cpudetection;; + esac + ./configure --prefix=/usr \ - --enable-runtime-cpudetection \ --disable-speex \ --disable-openal \ --disable-libdv \ @@ -37,7 +45,9 @@ build() { --disable-mga \ --language=all \ --enable-translation \ - --confdir=/etc/mplayer + --confdir=/etc/mplayer \ + $extra \ + --disable-live # Disabled by default in Uoti’s Git branch make } |