summaryrefslogtreecommitdiff
path: root/user/mednafen/APKBUILD
blob: 64559ad16f77b56379ac450712c0843e79695fa0 (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.22.2
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="e094a9134115344bf857eb7edce67f146fd43b83432db69271d5924ab5ec7dae11cdb7272c0d3c697a654902ce73cb42165f5e1256758f05e41167007e8f3a2d  mednafen-1.22.2.tar.xz
264b22be3af9db57d0e8676d77b57338308764c79a5eae1c7bd3bb211c5e190ec0797e34a952039175395c0b8819e6285f2ac5f652ee0d5b9d1e0eaf43eca6e9  ppc.patch
84cbff76b16960ec67fec785fc6e8d541db342e9567fb6f4d42c84ced3fc0f0dfe702a8a7fd7af4f84835f8efe289e7cb9cf18766e4196525686eaa23b02537c  ppc64.patch"