1SUMMARY="2D and 3D cross-platform game engine"
2DESCRIPTION="Godot Engine is a feature-packed, cross-platform game engine \
3to create 2D and 3D games from a unified interface. It provides a \
4comprehensive set of common tools, so that users can focus on making \
5games without having to reinvent the wheel. Games can be exported in one \
6click to a number of platforms, including the major desktop platforms \
7(Linux, Mac OSX, Windows) as well as mobile (Android, iOS) and web-based \
8(HTML5) platforms."
9HOMEPAGE="https://godotengine.org/"
10COPYRIGHT="2007-2017 Juan Linietsky, Ariel Manzur"
11LICENSE="MIT"
12REVISION="2"
13SOURCE_URI="https://github.com/godotengine/godot/archive/$portVersion-stable.tar.gz"
14CHECKSUM_SHA256="5bfc57f2ee24dccfdcefe491a3be1a07b39299f2fcfa03202b8b4c6c2dd5122b"
15SOURCE_DIR="godot-$portVersion-stable"
16PATCHES="godot-$portVersion.patchset"
17
18ARCHITECTURES="all !x86_gcc2"
19SECONDARY_ARCHITECTURES="x86"
20
21PROVIDES="
22	godot$secondaryArchSuffix = $portVersion
23	"
24REQUIRES="
25	haiku$secondaryArchSuffix
26	lib:libcrypto$secondaryArchSuffix
27#	lib:libfreetype$secondaryArchSuffix
28	lib:libGL$secondaryArchSuffix
29	lib:libglew$secondaryArchSuffix
30	lib:libGLU$secondaryArchSuffix
31	lib:libmpcdec$secondaryArchSuffix
32	lib:libogg$secondaryArchSuffix
33#	lib:libopus$secondaryArchSuffix
34#	lib:libopusfile$secondaryArchSuffix
35	lib:libpng16$secondaryArchSuffix
36#	lib:libspeex$secondaryArchSuffix
37	lib:libssl$secondaryArchSuffix
38	lib:libtheora$secondaryArchSuffix
39	lib:libvorbis$secondaryArchSuffix
40	lib:libwebp$secondaryArchSuffix
41	lib:libz$secondaryArchSuffix
42	"
43
44BUILD_REQUIRES="
45	haiku${secondaryArchSuffix}_devel
46	devel:libcrypto$secondaryArchSuffix
47#	devel:libfreetype$secondaryArchSuffix
48	devel:libGL$secondaryArchSuffix
49	devel:libglew$secondaryArchSuffix
50	devel:libGLU$secondaryArchSuffix
51	devel:libmpcdec$secondaryArchSuffix
52	devel:libogg$secondaryArchSuffix
53#	devel:libopus$secondaryArchSuffix
54#	devel:libopusfile$secondaryArchSuffix
55	devel:libpng16$secondaryArchSuffix
56#	devel:libspeex$secondaryArchSuffix
57	devel:libssl$secondaryArchSuffix
58	devel:libtheora$secondaryArchSuffix
59	devel:libvorbis$secondaryArchSuffix
60	devel:libwebp$secondaryArchSuffix
61	devel:libz$secondaryArchSuffix
62	"
63BUILD_PREREQUIRES="
64	cmd:gcc$secondaryArchSuffix
65	cmd:pkg_config$secondaryArchSuffix
66	cmd:python
67	cmd:scons
68	"
69
70BUILD()
71{
72	scons $jobArgs \
73		build=release \
74		platform=haiku \
75		builtin_glew=no \
76		builtin_libmpcdec=no \
77		builtin_libogg=no \
78		builtin_libpng=no \
79		builtin_libtheora=no \
80		builtin_libvorbis=no \
81		builtin_libwebp=no \
82		builtin_openssl=no \
83		builtin_zlib=no \
84		unix_global_settings_path=`finddir B_USER_SETTINGS_DIRECTORY`/Godot
85		#builtin_speex=no
86		#builtin_opus=no
87		#builtin_freetype=no
88		#builtin_squish=no
89}
90
91INSTALL()
92{
93	mkdir -p $appsDir/Godot
94	mv bin/godot.haiku.tools* $appsDir/Godot/Godot
95
96	addAppDeskbarSymlink $appsDir/Godot/Godot "Godot"
97}
98