summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libre/mplayer/37386.patch12
-rw-r--r--libre/mplayer/PKGBUILD19
2 files changed, 26 insertions, 5 deletions
diff --git a/libre/mplayer/37386.patch b/libre/mplayer/37386.patch
new file mode 100644
index 000000000..e705a9349
--- /dev/null
+++ b/libre/mplayer/37386.patch
@@ -0,0 +1,12 @@
+Index: configure
+===================================================================
+--- configure (revision 37385)
++++ configure (revision 37386)
+@@ -9212,6 +9212,7 @@
+ #define HAVE_MM_EMPTY 0
+ #define HAVE_PPC4XX 0
+ #define HAVE_RDTSC 0
++#define HAVE_SECTION_DATA_REL_RO 0
+ #define HAVE_SIMD_ALIGN_16 1
+ #define HAVE_STRERROR_R 0
+ #define HAVE_STRPTIME 0
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