vecx_libretro-1.2_20190817.recipe revision 39be1620
1SUMMARY="A port of Vecx, a GCE Vectrex emulator to the libretro API"
2DESCRIPTION="Vecx is a GCE Vectrex emulator, a vector display-based home video \
3game console that was developed by Western Technologies/Smith Engineering. It \
4had an integrated vector monitor, was monochrome and used plastic screen \
5overlays (also emulated by Vecx) to simulate color and various static graphics \
6and decorations. This is the libretro port of Vecx."
7HOMEPAGE="https://www.valavan.net/vectrex.html"
8COPYRIGHT="2002-2018 Valavan Manohararajah, John Hawthorn, the libretro team"
9LICENSE="GNU GPL v3"
10REVISION="1"
11srcGitRev="26585ee701499550e484c11f005db18e926827d9"
12SOURCE_URI="https://github.com/libretro/libretro-vecx/archive/$srcGitRev.tar.gz"
13CHECKSUM_SHA256="e148bd92923ba07a2a31021776beec7dfce461e6bfa8f4dbe6df8f598b562c75"
14SOURCE_FILENAME="libretro-vecx-${portVersion/_/-}-$srcGitRev.tar.gz"
15SOURCE_DIR="libretro-vecx-$srcGitRev"
16ADDITIONAL_FILES="vecx_libretro.info.in"
17
18ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
19SECONDARY_ARCHITECTURES="x86"
20
21PROVIDES="
22	vecx_libretro$secondaryArchSuffix = $portVersion
23	addon:vecx_libretro$secondaryArchSuffix = $portVersion
24	"
25REQUIRES="
26	haiku$secondaryArchSuffix
27	retroarch$secondaryArchSuffix
28	"
29
30BUILD_REQUIRES="
31	haiku${secondaryArchSuffix}_devel
32	"
33BUILD_PREREQUIRES="
34	cmd:gcc$secondaryArchSuffix
35	cmd:make
36	"
37
38BUILD()
39{
40	sed -e "s/@DISPLAY_VERSION@/v${portVersion/_/-}/" \
41		$portDir/additional-files/vecx_libretro.info.in \
42		> vecx_libretro.info
43	make -f Makefile.libretro $jobArgs
44}
45
46INSTALL()
47{
48	install -m 0755 -d "$docDir"
49	install -m 0644 -t "$docDir" LICENSE.md README.md
50	install -m 0755 -d "$addOnsDir"/libretro
51	install -m 0644 -t "$addOnsDir"/libretro \
52		vecx_libretro.info \
53		vecx_libretro.so
54}
55