teeworlds: fix cross compilation

This commit is contained in:
newbluemoon 2017-12-30 09:36:55 +01:00 committed by Toyam Cox
parent 6fc89c9ff9
commit f106755fb7
1 changed files with 8 additions and 2 deletions

View File

@ -2,9 +2,8 @@
pkgname=teeworlds
version=0.6.4
revision=1
nocross=yes
wrksrc="${pkgname}-${version}-src"
hostmakedepends="bam"
hostmakedepends="bam python"
makedepends="zlib-devel SDL-devel glu-devel freetype-devel"
short_desc="A retro multiplayer shooter"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
@ -14,6 +13,13 @@ distfiles="https://downloads.teeworlds.com/${pkgname}-${version}-src.tar.gz"
checksum=c261d19ebb00b5451faa2ceb4a7ca945cad2add48b06046eb43b40ccc9fd98e2
do_configure() {
if [ -n "$CROSS_BUILD" ]; then
sed -i -e "s;\(option.use_sdlconfig =\) false;\1 true;" \
other/sdl/sdl.lua
sed -i -e "s;\(option.use_ftconfig =\) false;\1 true;" \
other/freetype/freetype.lua
fi
sed -i "/cc.includes:Add/a\
settings.cc.exe_c = '$CC'; \
settings.cc.exe_cxx = '$CXX'; \