2014-01-07 16:29:49 +00:00
|
|
|
#
|
|
|
|
# This helper is for templates using WAF with python3 to build/install.
|
|
|
|
#
|
|
|
|
do_configure() {
|
2016-04-30 15:32:26 +00:00
|
|
|
: ${configure_script:=waf}
|
|
|
|
|
2018-08-09 17:53:32 +00:00
|
|
|
PYTHON=/usr/bin/python3 python3 ${configure_script} configure --prefix=/usr ${configure_args}
|
2014-01-07 16:29:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
2016-04-30 15:32:26 +00:00
|
|
|
: ${configure_script:=waf}
|
|
|
|
|
2018-08-09 17:53:32 +00:00
|
|
|
PYTHON=/usr/bin/python3 python3 ${configure_script} build ${make_build_args}
|
2014-01-07 16:29:49 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2016-04-30 15:32:26 +00:00
|
|
|
: ${configure_script:=waf}
|
|
|
|
|
2018-08-09 17:53:32 +00:00
|
|
|
PYTHON=/usr/bin/python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
|
2014-01-07 16:29:49 +00:00
|
|
|
}
|