mgba_libretro-0.6.1_20180304.recipe revision 116c2c16
1SUMMARY="A Nintendo Game Boy Advance emulator using the libretro API"
2DESCRIPTION="mGBA is a Nintendo Game Boy Advance emulator with great accuracy. \
3It also now emulates classic Game Boy / Game Boy Color systems. This is the \
4libretro core version of mGBA, for use with RetroArch."
5HOMEPAGE="https://mgba.io/"
6COPYRIGHT="2014-2018 Endrift, the libretro team"
7LICENSE="MPL v2.0"
8REVISION="1"
9srcGitRev="b3c4ab2cf66302b0ba4e97d2c5848ad436c277ad"
10SOURCE_URI="https://github.com/libretro/mgba/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="7b5c62c468aef3d05c1b4608442a349b4e339b76f4d792822bcd454a25b6a82c"
12SOURCE_FILENAME="libretro-mgba-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="mgba-$srcGitRev"
14ADDITIONAL_FILES="mgba_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	mgba_libretro$secondaryArchSuffix = $portVersion
21	addon:mgba_libretro$secondaryArchSuffix = $portVersion
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	retroarch$secondaryArchSuffix
26	"
27
28BUILD_REQUIRES="
29	haiku${secondaryArchSuffix}_devel
30	"
31BUILD_PREREQUIRES="
32	cmd:gcc$secondaryArchSuffix
33	cmd:make
34	"
35
36BUILD()
37{
38	sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
39		$portDir/additional-files/mgba_libretro.info.in \
40		> mgba_libretro.info
41	make -f Makefile.libretro $jobArgs
42}
43
44INSTALL()
45{
46	install -m 0755 -d "$docDir"
47	install -m 0644 -t "$docDir" CHANGES CONTRIBUTING.md LICENSE \
48		PORTING.md README.md
49	install -m 0755 -d "$addOnsDir"/libretro
50	install -m 0644 -t "$addOnsDir"/libretro \
51		mgba_libretro.info \
52		mgba_libretro.so
53}
54