bluemsx_libretro-2.9.0_20190902.recipe revision 39be1620
1SUMMARY="MSX/Coleco/SG-1000 emulator core for the libretro API"
2DESCRIPTION="This is a libretro port of BlueMSX, originally an emulator of \
3MSX/MSX2 computers. BlueMSX is now able to also emulate the Colecovision and \
4the Sega SG-1000 systems."
5HOMEPAGE="http://bluemsx.msxblue.com/"
6COPYRIGHT="2003-2018 Daniel Vik, the libretro team"
7LICENSE="GNU GPL v2"
8REVISION="1"
9srcGitRev="ddd89ff1fa534816e48521bd930b721f2d39975a"
10SOURCE_URI="https://github.com/libretro/blueMSX-libretro/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="256af9bc649de377b503ff5561fcf9c205aeaa17996cbbf337dddd77f256fa6c"
12SOURCE_FILENAME="libretro-bluemsx-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="blueMSX-libretro-$srcGitRev"
14ADDITIONAL_FILES="bluemsx_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	bluemsx_libretro$secondaryArchSuffix = $portVersion
21	addon:bluemsx_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/bluemsx_libretro.info.in \
40		> bluemsx_libretro.info
41	make -f Makefile.libretro $jobArgs
42}
43
44INSTALL()
45{
46	install -m 0755 -d "$docDir"
47	install -m 0644 -t "$docDir" README.md changes.txt
48	install -m 0755 -d "$addOnsDir"/libretro
49	install -m 0644 -t "$addOnsDir"/libretro \
50		bluemsx_libretro.info \
51		bluemsx_libretro.so
52}
53