gambatte_libretro-0.5.0_20191010.recipe revision 39be1620
1SUMMARY="A port of Gambatte, a Nintendo Game Boy emulator to the libretro API"
2DESCRIPTION="Gambatte is an accuracy-focused, open-source, cross-platform \
3Game Boy Color emulator written in C++. It is based on hundreds of corner case \
4hardware tests, as well as previous documentation and reverse engineering \
5efforts."
6HOMEPAGE="https://github.com/sinamas/gambatte"
7COPYRIGHT="2007-2018 Sindre Aam��s, the libretro team"
8LICENSE="GNU GPL v2"
9REVISION="1"
10srcGitRev="b97997006e840caaac555caf3385418704116565"
11SOURCE_URI="https://github.com/libretro/gambatte-libretro/archive/$srcGitRev.tar.gz"
12CHECKSUM_SHA256="ff0ec59403d18e1ce4333e1ca6bd0cc2e699d71b151301411b544c8b22e42fa0"
13SOURCE_FILENAME="gambatte-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
14SOURCE_DIR="gambatte-libretro-$srcGitRev"
15ADDITIONAL_FILES="gambatte_libretro.info.in"
16
17ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
18SECONDARY_ARCHITECTURES="x86"
19
20PROVIDES="
21	gambatte_libretro$secondaryArchSuffix = $portVersion
22	addon:gambatte_libretro$secondaryArchSuffix = $portVersion
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	retroarch$secondaryArchSuffix
27	"
28
29BUILD_REQUIRES="
30	haiku${secondaryArchSuffix}_devel
31	"
32BUILD_PREREQUIRES="
33	cmd:gcc$secondaryArchSuffix
34	cmd:make
35	"
36
37BUILD()
38{
39	sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
40		$portDir/additional-files/gambatte_libretro.info.in \
41		> gambatte_libretro.info
42	make -f Makefile.libretro $jobArgs
43}
44
45INSTALL()
46{
47	install -m 0755 -d "$docDir"
48	install -m 0644 -t "$docDir" COPYING README.md
49	install -m 0755 -d "$addOnsDir"/libretro
50	install -m 0644 -t "$addOnsDir"/libretro \
51		gambatte_libretro.info \
52		gambatte_libretro.so
53}
54