handy_libretro-0.95_20190801.recipe revision 39be1620
1SUMMARY="A port of Handy, an Atari Lynx emulator for the libretro API"
2DESCRIPTION="Handy is an emulator of the Atari Lynx handheld. It requires the \
3Lynx BIOS to boot and start games."
4HOMEPAGE="http://handy.sourceforge.net/"
5COPYRIGHT="1997-2018 Keith Wilkins, the libretro team"
6LICENSE="Zlib"
7REVISION="1"
8srcGitRev="6b19a4fad1b394f6a1351c88f60991d4878ff05b"
9SOURCE_URI="https://github.com/libretro/libretro-handy/archive/$srcGitRev.tar.gz"
10CHECKSUM_SHA256="4486406d353abb0bf86aa49bed3183230885192f515c827d7da17d5bfd2b7759"
11SOURCE_FILENAME="handy-libretro-${portVersion/_/-}-$srcGitRev.tar.gz"
12SOURCE_DIR="libretro-handy-$srcGitRev"
13ADDITIONAL_FILES="handy_libretro.info.in"
14
15ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	handy_libretro$secondaryArchSuffix = $portVersion
20	addon:handy_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/handy_libretro.info.in \
39		> handy_libretro.info
40	make $jobArgs
41}
42
43INSTALL()
44{
45	install -m 0755 -d "$docDir"
46	install -m 0644 -t "$docDir" README.md
47	install -m 0755 -d "$addOnsDir"/libretro
48	install -m 0644 -t "$addOnsDir"/libretro \
49		handy_libretro.info \
50		handy_libretro.so
51}
52