2017-12-13 16:01:34 +01:00
|
|
|
# Template file for 'godot'
|
|
|
|
pkgname=godot
|
2018-02-21 11:43:33 +01:00
|
|
|
version=2.1.4
|
2017-12-13 16:01:34 +01:00
|
|
|
revision=1
|
|
|
|
wrksrc="${pkgname}-${version}-stable"
|
|
|
|
build_style=scons
|
|
|
|
hostmakedepends="scons pkg-config clang"
|
|
|
|
makedepends="
|
|
|
|
alsa-lib-devel freetype-devel glu-devel libXcursor-devel
|
|
|
|
libXinerama-devel libXrender-devel libXrandr-devel libressl-devel libX11-devel"
|
|
|
|
short_desc="A multiplatform 2D and 3D engine"
|
|
|
|
maintainer="Nick Hahn <nick.hahn@hotmail.de>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://www.godotengine.org/"
|
|
|
|
distfiles="https://github.com/godotengine/${pkgname}/archive/${version}-stable.tar.gz"
|
|
|
|
checksum=07cf3b01367d5ea53805f144bc60711bd79efb53f1f88d57d6a706e6944de8d7
|
|
|
|
# Godot contains private copies of libraries
|
|
|
|
# that already have been packaged elsewhere.
|
2018-02-21 11:43:33 +01:00
|
|
|
make_build_args="use_llvm=yes platform=x11 tools=yes target=release_debug colored=yes pulseaudio=no"
|
2017-12-13 19:42:54 +01:00
|
|
|
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio"
|
2017-12-13 16:01:34 +01:00
|
|
|
|
|
|
|
# Specifing nopie=yes crashes clang, because -no-pie is not implemented,
|
|
|
|
# only -no-pie is
|
|
|
|
CFLAGS+=" -fPIE -fPIC"
|
|
|
|
LDFLAGS+=" -pie"
|
|
|
|
|
|
|
|
post_extract() {
|
|
|
|
sed -i -e "/openssl_version =/,+4d" platform/x11/detect.py
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
vlicense LICENSE.txt
|
|
|
|
vinstall ${FILESDIR}/godot.desktop 644 /usr/share/applications/
|
|
|
|
vinstall ${wrksrc}/logo.png 644 /usr/share/pixmaps/ godot.png
|
|
|
|
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
|
|
x86_64*|aarch64*) vbin bin/godot.x11.opt.tools.64.llvm godot;;
|
|
|
|
*) vbin bin/godot.x11.opt.tools.32.llvm godot;;
|
|
|
|
esac
|
|
|
|
}
|