teewords: use CFLAGS and LDFLAGS.

Idea by Gentoo.

Fuck making your own build systems.
This commit is contained in:
Christian Neukirchen 2016-06-20 23:18:55 +02:00
parent de85bc1bcf
commit 7ba1e09b94

View file

@ -1,7 +1,7 @@
# Template file for 'teeworlds'
pkgname=teeworlds
version=0.6.3
revision=2
revision=3
nocross=yes
wrksrc="${pkgname}-${version}-src"
hostmakedepends="bam"
@ -13,10 +13,19 @@ homepage="https://www.teeworlds.com"
distfiles="https://downloads.teeworlds.com/${pkgname}-${version}-src.tar.gz"
checksum=490ee7c372898761c609af8d7b0c6bd55942c6c6fcd7f361eefa00abfc70077b
do_build() {
bam server_release client_release
do_configure() {
sed -i "/cc.includes:Add/a\
settings.cc.exe_c = '$CC'; \
settings.cc.exe_cxx = '$CXX'; \
settings.cc.flags_c:Add('$CFLAGS'); \
settings.cc.flags_cxx:Add('$CXXFLAGS'); \
settings.link.exe = '$CXX'; \
settings.link.flags:Add('${LDFLAGS}');" bam.lua
bam -v config
}
do_build() {
bam -v server_release client_release
}
do_install() {
vbin teeworlds
vbin teeworlds_srv