solarus-1.6.0.recipe revision 89fd92fa
1SUMMARY="An ARPG game engine"
2DESCRIPTION="A lightweight, free and open-source game engine for Action-RPGs
3
4* A 2D game engine written in C++, and executing games made in Lua.
5* Specifically designed with 16-bit classic Action-RPGs in mind.
6* Available on multiple platforms.
7* Completely free and open-source, under GPL v3 License."
8HOMEPAGE="http://solarus-games.org"
9COPYRIGHT="2006-2018 Christopho, Solarus"
10LICENSE="GNU GPL v3"
11REVISION="1"
12SOURCE_URI="http://www.solarus-games.org/downloads/solarus/solarus-${portVersion}-src.tar.gz"
13CHECKSUM_SHA256="d800fdf388f860732f2d40c8dd635c34fd1c452857f75bf9b3a421e3ef5ee751"
14
15ARCHITECTURES="!x86_gcc2 x86 x86_64"
16SECONDARY_ARCHITECTURES="x86"
17
18PROVIDES="
19	solarus$secondaryArchSuffix = $portVersion
20	cmd:solarus = $portVersion
21	cmd:solarus_launcher = $portVersion
22	cmd:solarus_run = $portVersion
23	lib:libsolarus$secondaryArchSuffix
24	lib:libsolarus_gui$secondaryArchSuffix
25	"
26REQUIRES="
27	haiku$secondaryArchSuffix
28	lib:libGL$secondaryArchSuffix
29	lib:libluajit_5.1$secondaryArchSuffix
30	lib:libmodplug$secondaryArchSuffix >= 1.0
31	lib:libogg$secondaryArchSuffix
32	lib:libopenal$secondaryArchSuffix
33	lib:libphysfs$secondaryArchSuffix
34	lib:libQt5Core$secondaryArchSuffix
35	lib:libQt5Gui$secondaryArchSuffix
36	lib:libQt5Widgets$secondaryArchSuffix
37	lib:libSDL2_2.0$secondaryArchSuffix
38	lib:libSDL2_image_2.0$secondaryArchSuffix
39	lib:libSDL2_ttf_2.0$secondaryArchSuffix
40	lib:libvorbis$secondaryArchSuffix
41	"
42
43BUILD_REQUIRES="
44	haiku${secondaryArchSuffix}_devel
45	devel:libluajit_5.1$secondaryArchSuffix
46	devel:libmodplug$secondaryArchSuffix >= 1.0
47	devel:libogg$secondaryArchSuffix
48	devel:libopenal$secondaryArchSuffix
49	devel:libphysfs$secondaryArchSuffix
50	devel:libQt5Core$secondaryArchSuffix
51	devel:libQt5Gui$secondaryArchSuffix
52	devel:libQt5Widgets$secondaryArchSuffix
53	devel:libSDL2_2.0$secondaryArchSuffix
54	devel:libSDL2_image_2.0$secondaryArchSuffix
55	devel:libSDL2_ttf_2.0$secondaryArchSuffix
56	devel:libvorbis$secondaryArchSuffix
57	"
58BUILD_PREREQUIRES="
59	cmd:cmake
60	cmd:gcc$secondaryArchSuffix
61	cmd:ld$secondaryArchSuffix
62	cmd:libtoolize
63	cmd:lrelease$secondaryArchSuffix
64	cmd:make
65	"
66
67BUILD()
68{
69	cmake -DCMAKE_INSTALL_PREFIX="$prefix" \
70		-DCMAKE_BUILD_TYPE=Release .
71	make $jobArgs
72}
73
74INSTALL()
75{
76	make install
77
78	mkdir -p $(dirname $includeDir)
79	mv $prefix/include $includeDir
80
81	rm -rf $prefix/share
82}
83