aboutsummaryrefslogtreecommitdiffstats
path: root/testing/fs-uae/APKBUILD
blob: 159a7090340635405f5521d0df32f726ce0d2013 (plain)
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
38
39
40
41
42
43
44
45
46
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Taner Tas <taner76@gmail.com>
pkgname=fs-uae
# Remember to upgrade fs-uae-launcher to same version of fs-uae
pkgver=2.8.4
pkgrel=1
pkgdesc="Amiga emulator."
url="https://fs-uae.net/"
arch="all !armhf !armv7 !aarch64 !s390x"  # --enable-jit not supported for these arches
license="GPL-2.0-only"
makedepends="zip clang-dev sdl2-dev libpng-dev libx11-dev libxi-dev openal-soft-dev linux-headers libmpeg2-dev glib-dev"
subpackages="$pkgname-lang"
source="https://fs-uae.net/stable/${pkgver}/${pkgname}-${pkgver}.tar.gz"
options="!check"

build() {
	export CC=clang
	export CXX=clang++
	local _jitoptions=
	unset CFLAGS CXXFLAGS
	case "$CARCH" in
		ppc64le)
			_jitoptions="--disable-jit"
			export CFLAGS="-g -O2 -U__ALTIVEC__"
			export CXXFLAGS="-g -O2 -U__ALTIVEC__"
		;;
	esac

	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		$_jitoptions \
		--enable-sdl2
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	rm -rf "$pkgdir"/usr/share/doc
}
sha512sums="4fc2c90c87420db2fb3008758b9787416aafd4dbf651d890c16a9c785876b50a00afcb237d7c6bbdda8ec0a1c695d0f1e5a16fce2798347609b04f4d0df5466d  fs-uae-2.8.4.tar.gz"