boswars: fix cross compilation
This commit is contained in:
parent
c679b1f27f
commit
c04364ade9
@ -3,22 +3,23 @@ pkgname=boswars
|
|||||||
version=2.7
|
version=2.7
|
||||||
revision=4
|
revision=4
|
||||||
wrksrc="${pkgname}-${version}-src"
|
wrksrc="${pkgname}-${version}-src"
|
||||||
hostmakedepends="pkg-config libpng-progs"
|
hostmakedepends="pkg-config libpng-progs python"
|
||||||
makedepends="lua51-devel libtheora-devel libogg-devel libpng-devel libvorbis-devel MesaLib-devel SDL-devel"
|
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)"
|
short_desc="A futuristic real-time strategy game (RTS)"
|
||||||
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
maintainer="Diogo Leal <diogo@diogoleal.com>"
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
homepage="http://boswars.org"
|
homepage="http://boswars.org"
|
||||||
distfiles="http://www.boswars.org/dist/releases/boswars-${version}-src.tar.gz"
|
distfiles="http://www.boswars.org/dist/releases/boswars-${version}-src.tar.gz"
|
||||||
checksum=dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e
|
checksum=dc3718f531e9ea413cf37e1333b62a4c5e69f1405502d9c59b9e424635135e3e
|
||||||
nocross=yes
|
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
# Patch make.py to respect our $CXXFLAGS and $LDFLAGS
|
# Patch make.py to respect our $CXXFLAGS and $LDFLAGS
|
||||||
sed -i make.py \
|
sed -i make.py \
|
||||||
-e "s;^gccflags = '\(.*\)'.split();gccflags = '${CXXFLAGS} \1'.split();" \
|
-e "s;^gccflags = '\(.*\)'.split();gccflags = '${CXXFLAGS} \1'.split();" \
|
||||||
-e "/^gccflags.*/a gldflags = '${LDFLAGS}'.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
|
python make.py
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,3 +52,4 @@ post_extract() {
|
|||||||
}
|
}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user