aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-03 11:45:05 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-11-03 11:45:25 +0000
commit92868b9657067817d289c58a7ae7a9cb5069046c (patch)
tree55aeb52d97cb6e377e73188ccddba2e2f15654b1
parent28b3436546a7577cee65c17d93cc9f6691bb3c8e (diff)
downloadaports-92868b9657067817d289c58a7ae7a9cb5069046c.tar.bz2
aports-92868b9657067817d289c58a7ae7a9cb5069046c.tar.xz
community/mplayer: fix build with gcc6 no-pie
-rw-r--r--community/mplayer/APKBUILD20
1 files changed, 5 insertions, 15 deletions
diff --git a/community/mplayer/APKBUILD b/community/mplayer/APKBUILD
index e831880dab..e30a6408ec 100644
--- a/community/mplayer/APKBUILD
+++ b/community/mplayer/APKBUILD
@@ -2,7 +2,7 @@
pkgname=mplayer
pkgver=1.3.0
_ver=${pkgver/_/}
-pkgrel=2
+pkgrel=3
pkgdesc="A movie player for linux"
url="http://www.mplayerhq.hu/"
arch="x86_64"
@@ -17,20 +17,10 @@ makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev
source="ftp://ftp1.mplayerhq.hu/MPlayer/releases/MPlayer-$pkgver.tar.xz
x11-libs.patch
"
-_builddir="$srcdir"/MPlayer-$_ver
-prepare() {
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
- esac;
- done
-}
-
+builddir="$srcdir"/MPlayer-$_ver
build() {
- cd "$_builddir"
+ cd "$builddir"
- export GCC_SPECS=hardenednopie.specs
./configure \
--prefix=/usr \
--disable-gui \
@@ -56,7 +46,7 @@ build() {
--enable-radio \
--enable-radio-capture \
--extra-cflags="-I/usr/lib/live-media -O2 -fno-PIC -fno-PIE" \
- --extra-ldflags="-nopie" \
+ --extra-ldflags="-no-pie" \
--disable-nemesi \
--enable-freetype \
--enable-xvmc \
@@ -65,7 +55,7 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
make -j1 DESTDIR="$pkgdir" install || return 1
install -Dm644 etc/codecs.conf etc/input.conf etc/example.conf \
"$pkgdir"/etc/mplayer/ || return 1