vba_next_libretro-1.0.2_20190924.recipe revision 39be1620
1SUMMARY="An optimized VisualBoyAdvance-M core for the libretro API"
2DESCRIPTION="VBA-Next is a fork of VBA-M, itself a fork of VisualBoyAdvance, \
3a popular Nintendo Game Boy Advance emulator. VBA Next was developed by the \
4libretro team as an optimized version of VBA-M."
5HOMEPAGE="https://github.com/libretro/vba-next"
6COPYRIGHT="2001-2018 Forgotten, the VBA-M team , the libretro team"
7LICENSE="GNU GPL v2"
8REVISION="1"
9srcGitRev="3580ae6acb1a90c4e982e57597458da07eca4f41"
10SOURCE_URI="https://github.com/libretro/vba-next/archive/$srcGitRev.tar.gz"
11CHECKSUM_SHA256="bdbe0023acd30b954951e033f5c45d0d5932aa45ab0802225ccf1786d02730b1"
12SOURCE_FILENAME="libretro-vba-next-${portVersion/_/-}-$srcGitRev.tar.gz"
13SOURCE_DIR="vba-next-$srcGitRev"
14ADDITIONAL_FILES="vba_next_libretro.info.in"
15
16ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
17SECONDARY_ARCHITECTURES="x86"
18
19PROVIDES="
20	vba_next_libretro$secondaryArchSuffix = $portVersion
21	addon:vba_next_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/vba_next_libretro.info.in \
40		> vba_next_libretro.info
41	make -f Makefile.libretro $jobArgs
42}
43
44INSTALL()
45{
46	install -m 0755 -d "$docDir"
47	install -m 0644 -t "$docDir" LICENSE
48	install -m 0755 -d "$addOnsDir"/libretro
49	install -m 0644 -t "$addOnsDir"/libretro \
50		vba_next_libretro.info \
51		vba_next_libretro.so
52}
53