From f106755fb712e65480bb6a99fe32e001d8757341 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sat, 30 Dec 2017 09:36:55 +0100 Subject: [PATCH] teeworlds: fix cross compilation --- srcpkgs/teeworlds/template | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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'; \