common/build-style/waf3.sh: allow custom waf script

This commit is contained in:
Enno Boland 2016-04-30 17:32:26 +02:00
parent 45b9ff715a
commit f6b0e09d9f

View file

@ -2,13 +2,19 @@
# This helper is for templates using WAF with python3 to build/install. # This helper is for templates using WAF with python3 to build/install.
# #
do_configure() { do_configure() {
PYTHON=python3 python3 waf configure --prefix=/usr ${configure_args} : ${configure_script:=waf}
PYTHON=python3 python3 ${configure_script} configure --prefix=/usr ${configure_args}
} }
do_build() { do_build() {
PYTHON=python3 python3 waf build ${make_build_args} : ${configure_script:=waf}
PYTHON=python3 python3 ${configure_script} build ${make_build_args}
} }
do_install() { do_install() {
PYTHON=python3 python3 waf install --destdir=${DESTDIR} ${make_install_args} : ${configure_script:=waf}
PYTHON=python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
} }