mednafen_lynx_libretro-0.9.32_20190911.recipe revision 39be1620
1SUMMARY="A standalone port of Mednafen Lynx to libretro"
2DESCRIPTION="This is a standalone port of Mednafen Lynx to libretro, an Atari \
3Lynx emulator. It is a fork of Handy."
4HOMEPAGE="https://mednafen.github.io/documentation/lynx.html"
5COPYRIGHT="2005-2018 Forgotten, the Mednafen team, the libretro team"
6LICENSE="GNU GPL v2
7	Zlib"
8REVISION="1"
9srcGitRev="928f7cf5b39f0363e55667572ff455e37489998e"
10SOURCE_URI="https://github.com/libretro/beetle-lynx-libretro/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="5e3076853c098c0d8c8d9b02bcc24721de59a04781ccbeb5b55434a8b2dd65b7"
12SOURCE_FILENAME="libretro-mednafen-lynx-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="beetle-lynx-libretro-$srcGitRev"
14ADDITIONAL_FILES="mednafen_lynx_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	mednafen_lynx_libretro$secondaryArchSuffix = $portVersion
21	addon:mednafen_lynx_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/mednafen_lynx_libretro.info.in \
40		> mednafen_lynx_libretro.info
41	make $jobArgs
42}
43
44INSTALL()
45{
46	install -m 0755 -d "$docDir"
47	install -m 0644 -t "$docDir" COPYING
48	install -m 0755 -d "$addOnsDir"/libretro
49	install -m 0644 -t "$addOnsDir"/libretro \
50		mednafen_lynx_libretro.info \
51		mednafen_lynx_libretro.so
52}
53