flycast_libretro-0.1_20191016.recipe revision 39be1620
1SUMMARY="Flycast is a multiplatform Sega Dreamcast emulator"
2DESCRIPTION="Flycast is a cross-platform SEGA Dreamcast, Naomi and AtomisWave \
3emulator based off NullDC. It can accurately play several games and is in \
4active development."
5HOMEPAGE="https://github.com/libretro/flycast"
6COPYRIGHT="2013-2019, drk||Raziel, PsyMan, gb_away, the libretro team"
7LICENSE="GNU GPL v2"
8REVISION="1"
9srcGitRev="cbbf94b40c208f160c3a5bd26ff037fcb26be930"
10SOURCE_URI="https://github.com/libretro/flycast/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="e0960abf78b6c7c2da542b04a8fff6fbd61205bd0a8b843922d70768ce94e61f"
12SOURCE_FILENAME="flycast-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="flycast-$srcGitRev"
14ADDITIONAL_FILES="flycast_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="?x86"
18
19PROVIDES="
20	flycast_libretro$secondaryArchSuffix = $portVersion
21	addon:flycast_libretro$secondaryArchSuffix = $portVersion
22	"
23REQUIRES="
24	haiku$secondaryArchSuffix
25	retroarch$secondaryArchSuffix
26	lib:libGL$secondaryArchSuffix
27	lib:libiconv$secondaryArchSuffix
28	lib:libz$secondaryArchSuffix
29	"
30
31BUILD_REQUIRES="
32	haiku${secondaryArchSuffix}_devel
33	devel:libGL$secondaryArchSuffix
34	devel:libiconv$secondaryArchSuffix
35	devel:libz$secondaryArchSuffix
36	"
37BUILD_PREREQUIRES="
38	cmd:gcc$secondaryArchSuffix
39	cmd:make
40	"
41
42BUILD()
43{
44	sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
45		$portDir/additional-files/flycast_libretro.info.in \
46		> flycast_libretro.info
47	make $jobArgs
48}
49
50INSTALL()
51{
52	install -m 0755 -d "$docDir"
53	install -m 0644 -t "$docDir" LICENSE README.md
54	install -m 0755 -d "$addOnsDir"/libretro
55	install -m 0644 -t "$addOnsDir"/libretro \
56		flycast_libretro.info \
57		flycast_libretro.so
58}
59