mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-04 22:18:55 +02:00
104 lines
3.0 KiB
Bash
104 lines
3.0 KiB
Bash
SUMMARY="2D and 3D cross-platform game engine"
|
|
DESCRIPTION="Godot Engine is a feature-packed, cross-platform game engine \
|
|
to create 2D and 3D games from a unified interface. It provides a \
|
|
comprehensive set of common tools, so that users can focus on making \
|
|
games without having to reinvent the wheel. Games can be exported in one \
|
|
click to a number of platforms, including the major desktop platforms \
|
|
(Linux, Mac OSX, Windows) as well as mobile (Android, iOS) and web-based \
|
|
(HTML5) platforms."
|
|
HOMEPAGE="https://godotengine.org/"
|
|
COPYRIGHT="2007-2018 Juan Linietsky, Ariel Manzur"
|
|
LICENSE="MIT"
|
|
REVISION="1"
|
|
COMMIT="229d217a51ae9bba3c356331574e8d0b0be7aa95"
|
|
SOURCE_URI="https://github.com/godotengine/godot/archive/$COMMIT.tar.gz"
|
|
CHECKSUM_SHA256="613b21598d5efce2e145fee309630bb8f60d75a4f8f6a73cebacda3aba703f7d"
|
|
SOURCE_DIR="godot-$COMMIT"
|
|
PATCHES="godot-3.0.6.patchset"
|
|
|
|
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
godot$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libcrypto$secondaryArchSuffix
|
|
# lib:libfreetype$secondaryArchSuffix
|
|
lib:libGL$secondaryArchSuffix
|
|
lib:libglew$secondaryArchSuffix
|
|
lib:libGLU$secondaryArchSuffix
|
|
lib:libmbedtls$secondaryArchSuffix
|
|
lib:libminiupnpc$secondaryArchSuffix
|
|
lib:libmpcdec$secondaryArchSuffix
|
|
lib:libogg$secondaryArchSuffix
|
|
# lib:libopus$secondaryArchSuffix
|
|
# lib:libopusfile$secondaryArchSuffix
|
|
lib:libpng16$secondaryArchSuffix
|
|
# lib:libspeex$secondaryArchSuffix
|
|
lib:libtheora$secondaryArchSuffix
|
|
lib:libvorbis$secondaryArchSuffix
|
|
lib:libwebp$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libcrypto$secondaryArchSuffix
|
|
# devel:libfreetype$secondaryArchSuffix
|
|
devel:libGL$secondaryArchSuffix
|
|
devel:libglew$secondaryArchSuffix
|
|
devel:libGLU$secondaryArchSuffix
|
|
devel:libmbedtls$secondaryArchSuffix
|
|
devel:libminiupnpc$secondaryArchSuffix
|
|
devel:libmpcdec$secondaryArchSuffix
|
|
devel:libogg$secondaryArchSuffix
|
|
# devel:libopus$secondaryArchSuffix
|
|
# devel:libopusfile$secondaryArchSuffix
|
|
devel:libpng16$secondaryArchSuffix
|
|
# devel:libspeex$secondaryArchSuffix
|
|
devel:libtheora$secondaryArchSuffix
|
|
devel:libvorbis$secondaryArchSuffix
|
|
devel:libwebp$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:python
|
|
cmd:scons
|
|
cmd:yasm
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
scons $jobArgs \
|
|
build=release \
|
|
platform=haiku \
|
|
builtin_glew=no \
|
|
builtin_libmpcdec=no \
|
|
builtin_libogg=no \
|
|
builtin_libpng=no \
|
|
builtin_libtheora=no \
|
|
builtin_libvorbis=no \
|
|
builtin_libwebp=no \
|
|
builtin_libwebsockets=yes \
|
|
builtin_mbedtls=no \
|
|
builtin_miniupnpc=no \
|
|
builtin_zlib=no \
|
|
unix_global_settings_path=`finddir B_USER_SETTINGS_DIRECTORY`/Godot
|
|
#builtin_speex=no
|
|
#builtin_opus=no
|
|
#builtin_freetype=no
|
|
#builtin_squish=no
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
mkdir -p $appsDir/Godot
|
|
cp bin/godot.haiku.tools* $appsDir/Godot/Godot
|
|
|
|
addAppDeskbarSymlink $appsDir/Godot/Godot "Godot"
|
|
}
|