summaryrefslogtreecommitdiff
path: root/community/mplayer2
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2012-05-30 10:39:39 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2012-05-30 10:39:39 -0300
commit1cc7ac9055928c64ebf3a342fc626f6ced066b42 (patch)
tree941e1369b553368599870fdf74d7e687c9f10fac /community/mplayer2
parent6575af67294a57126aa9408ee255db0e7be47bcd (diff)
ports + eglibc removal
Diffstat (limited to 'community/mplayer2')
-rw-r--r--community/mplayer2/PKGBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/community/mplayer2/PKGBUILD b/community/mplayer2/PKGBUILD
index a90b3a040..3a9762fc9 100644
--- a/community/mplayer2/PKGBUILD
+++ b/community/mplayer2/PKGBUILD
@@ -14,7 +14,10 @@ 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')
+ 'libxinerama' 'libxss' 'libxv' 'libxxf86dga' 'libxxf86vm' 'mpg123' 'ncurses' 'sdl' 'ttf-dejavu')
+if [ "$CARCH" != "mips64el" ]; then
+depends+=('lirc-utils')
+fi
makedepends=('mesa' 'unzip' 'yasm')
backup=('etc/mplayer/codecs.conf' 'etc/mplayer/input.conf')
provides=('mplayer')
@@ -24,10 +27,14 @@ source=(ftp://ftp.archlinux.org/other/community/$pkgname/$pkgname-$pkgver.tar.xz
md5sums=('814cc9545937e13796df1d4747c3c5d0')
build() {
- cd "${srcdir}/${_snapshot}"
+ cd "${srcdir}"/$pkgname-$pkgver
+
+ case $CARCH in
+ mips64el) ;;
+ *86*) extra=--enable-runtime-cpudetection;;
+ esac
./configure --prefix=/usr \
- --enable-runtime-cpudetection \
--disable-speex \
--disable-openal \
--disable-libdv \
@@ -36,12 +43,13 @@ build() {
--language=all \
--enable-translation \
--confdir=/etc/mplayer \
+ $extra \
--disable-live # Disabled by default in Uoti’s Git branch
make
}
package() {
- cd "${srcdir}/${_snapshot}"
+ cd "${srcdir}"/$pkgname-$pkgver
make DESTDIR="${pkgdir}" install
install -Dm644 etc/{codecs.conf,input.conf,example.conf} "${pkgdir}"/etc/mplayer/