yabause_libretro-0.9.15_20191023.recipe revision e7811661
1SUMMARY="A port of Yabause, a Sega Saturn emulator to the libretro API"
2DESCRIPTION="Yabause is a Sega Saturn emulator licensed under the GPL2+. \
3In order to use it you will need at least one Sega Saturn BIOS that cannot \
4be provided with this emulator for copyright reasons."
5HOMEPAGE="https://yabause.org/"
6COPYRIGHT="2003-2019 Guillaume Duhamel, Theo Berkau, the libretro team"
7LICENSE="GNU GPL v2"
8REVISION="1"
9srcGitRev="4c71875b85e4dfe0e90e59e91cd01766d2f09b89"
10SOURCE_URI="https://github.com/libretro/yabause/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="84d290e58f164e7f2577744ec7301f2bf5dfd01b1c2a052d0798881173f8782c"
12SOURCE_FILENAME="libretro-yabause-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="yabause-$srcGitRev"
14ADDITIONAL_FILES="yabause_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	yabause_libretro$secondaryArchSuffix = $portVersion
21	addon:yabause_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	cmd:sed
35	"
36
37BUILD()
38{
39	sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
40		$portDir/additional-files/yabause_libretro.info.in \
41		> yabause_libretro.info
42	cd yabause/src/libretro && make $jobArgs
43}
44
45INSTALL()
46{
47	install -m 0755 -d "$docDir"
48	install -m 0644 -t "$docDir" README.md
49	install -m 0755 -d "$addOnsDir"/libretro
50	install -m 0644 -t "$addOnsDir"/libretro \
51		yabause_libretro.info \
52		yabause/src/libretro/yabause_libretro.so
53}
54