aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libretro-flycast/APKBUILD
blob: 4a383cf883bb4610b2de86e1033c6512c72e2504 (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
38
39
40
41
42
43
44
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-flycast
pkgver=0_git20210506
pkgrel=0
_commit="6f27e7121d2b9f2c084d18219a9e439c403a1b89"
pkgdesc="libretro core for flycast"
url="https://github.com/libretro/flycast"
arch="x86_64 aarch64"
license="GPL-2.0-only"
makedepends="libzip-dev mesa-dev miniupnpc-dev zlib-dev"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/flycast/archive/$_commit.tar.gz
	patch-unbundle.patch
	"
builddir="$srcdir/flycast-$_commit"
options="!check" # No tests

case $CARCH in
aarch64)
	_args="WITH_DYNAREC=arm64 HOST_CPU_FLAGS=-DTARGET_LINUX_ARMv8" ;;
arm*)
	_args="WITH_DYNAREC=arm" ;;
esac

if [ "$CARCH" != "x86" ]; then
	_args="$_args HAVE_GENERIC_JIT=0 HAVE_VULKAN=0"
fi

build() {
	rm -rf core/deps/libzip
	rm -rf core/deps/miniupnpc
	rm -rf core/deps/zlib
	make $_args \
		HAVE_LTCG=0 \
		SYSTEM_LIBZIP=1 \
		SYSTEM_ZLIB=1
}

package() {
	install -Dm644 flycast_libretro.so "$pkgdir"/usr/lib/libretro/flycast_libretro.so
}

sha512sums="6f58502440035df11f37ba4b5e579fd458c16bb3db56d5bb5ba85b80ed67ac9361508bd4ee52d279ea06a860dcb02aaa0d92221b000d51f968f01da2c7aa99f1  libretro-flycast-6f27e7121d2b9f2c084d18219a9e439c403a1b89.tar.gz
98edf29148cf990de8ce1c1a15548e122ce30944645d9b92715fe3c86e021439fdeea1dabacbcbff46de211b5c2875bfc330d5a602f59498bbe745708a3d1e15  patch-unbundle.patch"