fceumm_libretro-0.0.1_20190905.recipe revision 39be1620
1SUMMARY="A port of FCEUMM, a Famicom/NES emulator to the libretro architecture"
2DESCRIPTION="FCEUMM is a fork of FCEU Ultra which supports a lot of new \
3mappers including some obscure mappers such as one for unlicensed NES ROMs."
4HOMEPAGE="http://cah4e3.shedevr.org.ru/fceultra.php"
5COPYRIGHT="2011-2018 the FCEU team, cah4e3, the libretro team"
6LICENSE="GNU LGPL v2"
7REVISION="1"
8srcGitRev="0e315e0ca0093ebda06a97835cec6ad4af81db7a"
9SOURCE_URI="https://github.com/libretro/libretro-fceumm/archive/$srcGitRev.tar.gz"
10CHECKSUM_SHA256="f829851b9ecc1a2ea8860359765d30d1308e2bf8c716fedc6af618aff735eb93"
11SOURCE_FILENAME="libretro-fceumm-${portVersion/_/-}-$srcGitRev.tar.gz"
12SOURCE_DIR="libretro-fceumm-$srcGitRev"
13ADDITIONAL_FILES="fceumm_libretro.info.in"
14
15ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	fceumm_libretro$secondaryArchSuffix = $portVersion
20	addon:fceumm_libretro$secondaryArchSuffix = $portVersion
21	"
22REQUIRES="
23	haiku$secondaryArchSuffix
24	retroarch$secondaryArchSuffix
25	"
26
27BUILD_REQUIRES="
28	haiku${secondaryArchSuffix}_devel
29	"
30BUILD_PREREQUIRES="
31	cmd:gcc$secondaryArchSuffix
32	cmd:make
33	"
34
35BUILD()
36{
37	sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
38		$portDir/additional-files/fceumm_libretro.info.in \
39		> fceumm_libretro.info
40	make -f Makefile.libretro $jobArgs
41}
42
43INSTALL()
44{
45	install -m 0755 -d "$docDir"
46	install -m 0644 -t "$docDir" Authors Copying changelog.txt README.md \
47		whatsnew.txt zzz_todo.txt
48	install -m 0755 -d "$addOnsDir"/libretro
49	install -m 0644 -t "$addOnsDir"/libretro \
50		fceumm_libretro.info \
51		fceumm_libretro.so
52}
53