o2em_libretro-1.18_20190914.recipe revision 39be1620
1SUMMARY="An Odyssey 2 / VideoPac emulator using the libretro API"
2DESCRIPTION="This is the libretro port of O2EM, a Magnavox Odyssey 2 and \
3Philips VideoPac emulator. These machines shared the same hardware and were \
4rebranded depending on the market where they were sold."
5HOMEPAGE="http://o2em.sourceforge.net/"
6COPYRIGHT="1996-2018 Daniel Boris, the O2EM team, the libretro team"
7LICENSE="Artistic"
8REVISION="1"
9srcGitRev="d6731b9b2592654ce4f1b64c1b1da17b32e7c94c"
10SOURCE_URI="https://github.com/libretro/libretro-o2em/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="fd2b6438c825fb37d4ee4a662732975980b9720458643cb22f44dcbb95259808"
12SOURCE_FILENAME="libretro-o2em-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="libretro-o2em-$srcGitRev"
14ADDITIONAL_FILES="o2em_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	o2em_libretro$secondaryArchSuffix = $portVersion
21	addon:o2em_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/o2em_libretro.info.in \
40		> o2em_libretro.info
41	make $jobArgs
42}
43
44INSTALL()
45{
46	install -m 0755 -d "$docDir"
47	install -m 0644 -t "$docDir" README.md
48	install -m 0755 -d "$addOnsDir"/libretro
49	install -m 0644 -t "$addOnsDir"/libretro \
50		o2em_libretro.info \
51		o2em_libretro.so
52}
53