summaryrefslogtreecommitdiff
path: root/libre/mplayer/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-05 12:42:53 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-10-05 12:42:53 -0500
commit9dd2b75dc2c9ac84a0a7281bac44e9831e9732e9 (patch)
tree6377a7725688362369596a0fc84c6897459f1213 /libre/mplayer/PKGBUILD
parent25d38077ae8ca480cef43cc04838b93853d4719d (diff)
downloadabslibre-9dd2b75dc2c9ac84a0a7281bac44e9831e9732e9.tar.gz
abslibre-9dd2b75dc2c9ac84a0a7281bac44e9831e9732e9.tar.bz2
abslibre-9dd2b75dc2c9ac84a0a7281bac44e9831e9732e9.zip
mplayer: armv7h port
Diffstat (limited to 'libre/mplayer/PKGBUILD')
-rw-r--r--libre/mplayer/PKGBUILD19
1 files changed, 14 insertions, 5 deletions
diff --git a/libre/mplayer/PKGBUILD b/libre/mplayer/PKGBUILD
index 8f32094e6..6dea057a5 100644
--- a/libre/mplayer/PKGBUILD
+++ b/libre/mplayer/PKGBUILD
@@ -9,7 +9,7 @@ pkgbase=mplayer
pkgname=('mplayer' 'mencoder')
pkgver=37379
pkgrel=5.parabola1
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
makedepends=(
'libxxf86dga' 'libxxf86vm' 'libmad' 'libxinerama' 'sdl' 'lame' 'libtheora'
'xvidcore' 'libmng' 'libxss' 'libgl' 'smbclient' 'aalib' 'jack' 'libcaca'
@@ -27,13 +27,15 @@ source=($pkgbase-$pkgver::svn://svn.mplayerhq.hu/mplayer/trunk#revision=$pkgver
mplayer.desktop
cdio-includes.patch
include-samba-4.0.patch
- revert-icl-fixes.patch)
+ revert-icl-fixes.patch
+ 37386.patch)
md5sums=('SKIP'
'e75d598921285d6775f20164a91936ac'
'62f44a58f072b2b1a3c3d3e4976d64b3'
'7b5be7191aafbea64218dc4916343bbc'
'868a92bdef148df7f38bfa992b26ce9d'
- '3579402002b7302fdf2d146639333efd')
+ '3579402002b7302fdf2d146639333efd'
+ '9131fa5229c857174ab029ed9b0cb71b')
pkgver() {
cd $pkgbase-$pkgver
@@ -47,6 +49,7 @@ prepare() {
patch -p0 -i ../cdio-includes.patch
patch -p1 -i ../include-samba-4.0.patch
patch -Np0 -i ../revert-icl-fixes.patch
+ patch -p0 -i ../37386.patch
./version.sh
}
@@ -54,8 +57,13 @@ prepare() {
build() {
cd $pkgbase-$pkgver
+ if [ "$CARCH" = "armv7h" ]; then
+ extra=--enable-armv5te
+ else
+ extra=--enable-runtime-cpudetection
+ fi
+
./configure --prefix=/usr \
- --enable-runtime-cpudetection \
--disable-gui \
--disable-arts \
--disable-liblzo \
@@ -74,7 +82,8 @@ build() {
--enable-radio-capture \
--enable-smb \
--language=all \
- --confdir=/etc/mplayer
+ --confdir=/etc/mplayer \
+ $extra
[[ "$CARCH" = "i686" ]] && sed 's|-march=i486|-march=i686|g' -i config.mak
make