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