diff --git a/srcpkgs/boswars/template b/srcpkgs/boswars/template index 51d0eef6a75..9d8fda5ccc5 100644 --- a/srcpkgs/boswars/template +++ b/srcpkgs/boswars/template @@ -1,7 +1,7 @@ # Template file for 'boswars' pkgname=boswars version=2.7 -revision=2 +revision=3 wrksrc="${pkgname}-${version}-src" hostmakedepends="pkg-config" makedepends="lua51-devel libtheora-devel libogg-devel libpng-devel libvorbis-devel MesaLib-devel SDL-devel" @@ -14,6 +14,13 @@ 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);" + cat make.py + read xy python make.py }