[arch-commits] Commit in mplayer/trunk (PKGBUILD)

Levente Polyak anthraxx at archlinux.org
Wed Jan 24 01:52:31 UTC 2018


    Date: Wednesday, January 24, 2018 @ 01:52:30
  Author: anthraxx
Revision: 315349

upgpkg: mplayer 38017-1

Modified:
  mplayer/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-24 01:14:54 UTC (rev 315348)
+++ PKGBUILD	2018-01-24 01:52:30 UTC (rev 315349)
@@ -5,8 +5,8 @@
 
 pkgbase=mplayer
 pkgname=('mplayer' 'mencoder')
-pkgver=37998
-pkgrel=3
+pkgver=38017
+pkgrel=1
 pkgdesc='Media player for Linux'
 url='http://www.mplayerhq.hu/'
 arch=('x86_64')
@@ -15,7 +15,7 @@
              'libcaca' 'faac' 'faad2' 'lirc'  'libxvmc' 'enca' 'libdca' 'a52dec' 'libvpx' 'unzip'
              'mesa' 'live-media' 'yasm' 'git' 'mpg123' 'ladspa' 'libcdio-paranoia' 'subversion'
              'x264' 'libx264' 'rtmpdump' 'libdvdcss' 'libdvdread' 'libdvdnav' 'ffmpeg')
-options=('!buildflags' '!emptydirs')
+options=('!emptydirs')
 source=(${pkgbase}-${pkgver}::"svn://svn.mplayerhq.hu/mplayer/trunk#revision=${pkgver}"
         mplayer.desktop
         include-samba-4.0.patch
@@ -34,6 +34,10 @@
 
 build() {
   cd ${pkgbase}-${pkgver}
+  export CFLAGS="${CFLAGS/-march=x86-64/}"
+  export CFLAGS="${CFLAGS/-mtune=generic/}"
+  export LDFLAGS="${LDFLAGS/,O1/}"
+  export LDFLAGS="${LDFLAGS/,--sort-common/}"
   ./configure --prefix=/usr \
     --enable-runtime-cpudetection \
     --disable-gui \
@@ -53,7 +57,9 @@
     --enable-radio-capture \
     --enable-smb \
     --language=all \
-    --confdir=/etc/mplayer
+    --confdir=/etc/mplayer \
+    --extra-cflags="${CFLAGS}" \
+    --extra-ldflags="${LDFLAGS}"
   [[ "${CARCH}" = "i686" ]] && sed 's|-march=i486|-march=i686|g' -i config.mak
   make
 }



More information about the arch-commits mailing list