72 lines
2.5 KiB
Bash
72 lines
2.5 KiB
Bash
# Template file for 'godot'
|
|
pkgname=godot
|
|
version=4.1.2
|
|
revision=1
|
|
archs="x86_64* i686* aarch64* armv7* ppc64*"
|
|
build_style=scons
|
|
# Build currently fails with embree-4.X
|
|
make_build_args="platform=linuxbsd target=editor progress=no production=yes
|
|
builtin_embree=true builtin_enet=false builtin_freetype=false
|
|
builtin_graphite=false builtin_harfbuzz=false builtin_libogg=false
|
|
builtin_libpng=false builtin_libtheora=false builtin_libvorbis=false
|
|
builtin_libwebp=false builtin_mbedtls=false builtin_miniupnpc=false
|
|
builtin_pcre2=false builtin_zlib=false builtin_zstd=false"
|
|
hostmakedepends="pkg-config clang"
|
|
makedepends="alsa-lib-devel freetype-devel mesa glu-devel libXcursor-devel
|
|
libXi-devel libXinerama-devel libXrender-devel libXrandr-devel libX11-devel
|
|
libpng-devel libwebp-devel libogg-devel libtheora-devel libvorbis-devel
|
|
libenet-devel zlib-devel mbedtls-devel miniupnpc-devel pcre2-devel
|
|
pulseaudio-devel graphite-devel harfbuzz-devel libzstd-devel
|
|
speech-dispatcher-devel"
|
|
depends="speech-dispatcher"
|
|
short_desc="Multiplatform 2D and 3D engine"
|
|
maintainer="dataCobra <datacobra@thinkbot.de>"
|
|
license="MIT"
|
|
homepage="https://www.godotengine.org/"
|
|
distfiles="https://github.com/godotengine/godot/archive/${version}-stable.tar.gz"
|
|
checksum=790ff4f364f8421597a970f16041e86007f4c522bd427b3d7d14679026e58d40
|
|
nocross=https://build.voidlinux.org/builders/armv7l_builder/builds/6342/steps/shell_3/logs/stdio
|
|
|
|
CFLAGS+=" -fPIE -fPIC"
|
|
LDFLAGS+=" -pie"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" libexecinfo-devel"
|
|
depends+=" libexecinfo"
|
|
fi
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
i686*) arch="x86_32" ;;
|
|
x86_64*) arch="x86_64" ;;
|
|
aarch64*) arch="arm64" ;;
|
|
armv7*) arch="arm32" ;;
|
|
ppc64*) arch="ppc64" ;;
|
|
esac
|
|
|
|
make_build_args+=" arch=$arch"
|
|
|
|
pre_build() {
|
|
export CXXFLAGS=" $CXXFLAGS "
|
|
}
|
|
|
|
post_patch() {
|
|
vsed -i misc/dist/linux/org.godotengine.Godot.xml -e 's/name="x/name="application-x/g'
|
|
}
|
|
|
|
do_install() {
|
|
vlicense LICENSE.txt
|
|
vinstall ${FILESDIR}/godot.desktop 644 /usr/share/applications/
|
|
vinstall ${wrksrc}/icon.png 644 /usr/share/pixmaps/ godot.png
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
x86_64*) vbin bin/godot.linuxbsd.editor.x86_64 godot;;
|
|
i686*) vbin bin/godot.linuxbsd.editor.x86_32 godot;;
|
|
aarch64*) vbin bin/godot.linuxbsd.editor.arm64 godot;;
|
|
armv7*) vbin bin/godot.linuxbsd.editor.arm32 godot;;
|
|
ppc64*) vbin bin/godot.linuxbsd.editor.ppc64 godot;;
|
|
esac
|
|
|
|
vinstall misc/dist/linux/org.godotengine.Godot.xml 644 /usr/share/mime/packages/
|
|
vman misc/dist/linux/godot.6
|
|
}
|