From c04364ade98fb40ca944e7db610b2ee086f98fa8 Mon Sep 17 00:00:00 2001 From: newbluemoon Date: Sat, 30 Dec 2017 20:32:09 +0100 Subject: [PATCH] boswars: fix cross compilation --- srcpkgs/boswars/template | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/srcpkgs/boswars/template b/srcpkgs/boswars/template index ca2af6032f2..d71f2a4d868 100644 --- a/srcpkgs/boswars/template +++ b/srcpkgs/boswars/template @@ -3,22 +3,23 @@ pkgname=boswars version=2.7 revision=4 wrksrc="${pkgname}-${version}-src" -hostmakedepends="pkg-config libpng-progs" -makedepends="lua51-devel libtheora-devel libogg-devel libpng-devel libvorbis-devel MesaLib-devel SDL-devel" +hostmakedepends="pkg-config libpng-progs python" +makedepends="lua51-devel libtheora-devel libogg-devel libpng-devel + libvorbis-devel MesaLib-devel SDL-devel glu-devel" short_desc="A futuristic real-time strategy game (RTS)" maintainer="Diogo Leal " license="GPL-2" homepage="http://boswars.org" distfiles="http://www.boswars.org/dist/releases/boswars-${version}-src.tar.gz" checksum=dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e -nocross=yes do_build() { # Patch make.py to respect our $CXXFLAGS and $LDFLAGS sed -i make.py \ -e "s;^gccflags = '\(.*\)'.split();gccflags = '${CXXFLAGS} \1'.split();" \ -e "/^gccflags.*/a gldflags = '${LDFLAGS}'.split()" \ - -e "s;self.ldflags = list(ldflags);self.ldflags = gldflags + list(ldflags);" + -e "s;self.ldflags = list(ldflags);self.ldflags = gldflags + list(ldflags);" \ + -e "s/cc='g++'/cc='$CXX'/" python make.py } @@ -50,4 +51,5 @@ post_extract() { pngfix -q ${i/.png/_fixed.png} && mv ${i/.png/_fixed.png} ${i}; } done -} \ No newline at end of file +} +