summaryrefslogtreecommitdiff
path: root/user/mednafen/APKBUILD
blob: a994a5491dfe5394040887827797458e0afa937b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: Horst Burkhardt <horst@adelielinux.org>
# Maintainer: Horst Burkhardt <horst@adelielinux.org>
pkgname=mednafen
pkgver=1.24.3
pkgrel=0
pkgdesc="Portable multi-system emulator"
url="https://mednafen.github.io/"
arch="all !s390x"
options="!check !dbg"  # mednafen does not ship actual tests
subpackages="$pkgname-lang"
license="GPL-2.0-only"
depends=""
makedepends="alsa-lib-dev flac-dev libogg-dev libsndfile-dev libvorbis-dev
	lzo-dev sdl2-dev zlib-dev autoconf automake"
source="https://mednafen.github.io/releases/files/$pkgname-$pkgver.tar.xz
	ppc.patch
	ppc64.patch
	"
builddir="$srcdir/$pkgname"

build() {
	./autogen.sh
	export CXXFLAGS="$CXXFLAGS -fno-omit-frame-pointer"
	./configure \
		--prefix=/usr \
		--enable-ss=no \
		--enable-snes-faust=no
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="6ed719a0cd247fb0d61fa0174fbd6e2dc9fa94343479aef98be0083268e18cf77a9f9b6a88e2231a7f14b152083e0683658d328d348ef2a1b55032f7c9e9d448  mednafen-1.24.3.tar.xz
04dd9085c65f0af2be3569b98c0af8a546ba03f6d08a2ba9e817fbed00030cb22aedde102e539573678e8f3bf178adda7caad3778cfa8576e8865eeb69fae7be  ppc.patch
84cbff76b16960ec67fec785fc6e8d541db342e9567fb6f4d42c84ced3fc0f0dfe702a8a7fd7af4f84835f8efe289e7cb9cf18766e4196525686eaa23b02537c  ppc64.patch"