aboutsummaryrefslogtreecommitdiffstats
path: root/community/zsnes
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-11-04 13:05:33 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-11-04 13:06:07 +0000
commitc1e85365cd69061d29cb21db5f677cb580469403 (patch)
treeee26fecf4c20e63de92475b0d97f46eff201e1e6 /community/zsnes
parent0049d088b1f911f64d901fdd0e3f5152f6a815cb (diff)
downloadaports-c1e85365cd69061d29cb21db5f677cb580469403.tar.bz2
aports-c1e85365cd69061d29cb21db5f677cb580469403.tar.xz
community/zsnes: fix build, optimize for i586
Diffstat (limited to 'community/zsnes')
-rw-r--r--community/zsnes/APKBUILD24
1 files changed, 9 insertions, 15 deletions
diff --git a/community/zsnes/APKBUILD b/community/zsnes/APKBUILD
index b2884e0258..167fbcbf63 100644
--- a/community/zsnes/APKBUILD
+++ b/community/zsnes/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=zsnes
pkgver=1.51
-pkgrel=9
+pkgrel=10
pkgdesc="Super Nintendo emulator"
url="http://www.zsnes.com/"
arch="x86"
@@ -16,32 +16,26 @@ source="http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}151src.t
zsnes-libpng15.patch
zsnes_icon.png"
-_builddir="$srcdir/${pkgname}_${pkgver%.*}_${pkgver#*.}"
+builddir="$srcdir/${pkgname}_${pkgver%.*}_${pkgver#*.}"
prepare() {
- cd "$_builddir"
+ default_prepare || return 1
+ cd "$builddir"
update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-
- cd "$_builddir"/src
+ cd "$builddir"/src
aclocal && autoconf || return 1
}
build() {
- cd "$_builddir"/src
- export GCC_SPECS=hardenednopie.specs
- LDFLAGS="$LDFLAGS -fno-PIE"
+ cd "$builddir"/src
+ CFLAGS="$CFLAGS -no-pie" \
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--mandir=/usr/share/man \
x_libraries=/usr/lib \
- force_arch=i486 \
+ force_arch=i586 \
--enable-release \
|| return 1
make makefile.dep
@@ -49,7 +43,7 @@ build() {
}
package() {
- cd "$_builddir"/src
+ cd "$builddir"/src
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir"/zsnes.desktop \
"$pkgdir"/usr/share/applications/zsnes.desktop