diff options
Diffstat (limited to 'community/mplayer2/PKGBUILD')
-rw-r--r-- | community/mplayer2/PKGBUILD | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD index 74f14d424..4a4da3547 100644 --- a/community/mplayer2/PKGBUILD +++ b/community/mplayer2/PKGBUILD @@ -4,15 +4,24 @@ pkgname=mplayer2 pkgver=2.0.20111101 -pkgrel=1 +pkgrel=1.1 pkgdesc="A movie player" -arch=('i686' 'x86_64') +arch=('i686' 'x86_64' 'mips64el') license=('GPL') url="http://www.mplayer2.org/" -depends=('libgl' 'libvdpau' 'ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libxvmc' 'libass' 'fontconfig' 'freetype2' - 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad' - 'a52dec' 'libdca' 'libxxf86dga' 'libxss' 'mpg123' 'ladspa') -makedepends=('live-media' 'mesa' 'unzip' 'yasm' 'git') +if [ "${CARCH}" = "mips64el" ] ; then + # OpenGL, VDPAU and XVMC don't have efficient implementations on + # the supported mips64el machines. + depends=('ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libass' 'fontconfig' 'freetype2' + 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad' + 'a52dec' 'libdca' 'libxxf86dga' 'libxss' 'mpg123' 'ladspa' 'speex' 'libxv') + makedepends=('live-media' 'p7zip-libre' 'gettext') +else + depends=('libgl' 'libvdpau' 'ffmpeg' 'libdvdcss' 'libdvdread' 'libdvdnav' 'libxvmc' 'libass' 'fontconfig' 'freetype2' + 'ttf-dejavu' 'sdl' 'aalib' 'libcaca' 'faad2' 'libpulse' 'jack' 'ncurses' 'libxxf86vm' 'cdparanoia' 'libmad' + 'a52dec' 'libdca' 'libxxf86dga' 'libxss' 'mpg123' 'ladspa' 'speex') + makedepends=('live-media' 'mesa' 'p7zip-libre' 'yasm' 'gettext') +fi backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf') provides=('mplayer') conflicts=('mplayer') @@ -39,10 +48,26 @@ mksource() { build() { cd "${srcdir}/${pkgname}-${pkgver}" + if [ "$CARCH" = "mips64el" ]; then + ./configure --prefix=/usr \ + --disable-arts \ + --enable-speex \ + --disable-openal \ + --disable-libdv \ + --disable-musepack \ + --disable-esd \ + --disable-mga \ + --disable-vdpau \ + --disable-gl \ + --enable-xv \ + --language=all \ + --enable-translation \ + --confdir=/etc/mplayer + else ./configure --prefix=/usr \ --enable-runtime-cpudetection \ --disable-arts \ - --disable-speex \ + --enable-speex \ --disable-openal \ --disable-libdv \ --disable-musepack \ @@ -51,6 +76,7 @@ build() { --language=all \ --enable-translation \ --confdir=/etc/mplayer + fi make } |