diff --git a/srcpkgs/teeworlds/template b/srcpkgs/teeworlds/template index 4634d24e14d..f8631d772af 100644 --- a/srcpkgs/teeworlds/template +++ b/srcpkgs/teeworlds/template @@ -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 " @@ -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'; \