Swapspace: update to 1.18.1
[void-pkg.git] / common / build-style / waf3.sh
blob54fd221172b7f399df7116c48c68812e638982f3
2 # This helper is for templates using WAF with python3 to build/install.
4 do_configure() {
5 : ${configure_script:=waf}
6 local cross_args
8 if [[ $build_helper = *"qemu"* ]] && [ "$CROSS_BUILD" ]; then
9 # If the qemu build helper is specified, use it for cross builds
10 cross_args="--cross-compile --hostcc=${CC_FOR_BUILD}
11 --cross-execute=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
14 PYTHON=/usr/bin/python3 python3 ${configure_script} configure \
15 --prefix=/usr --libdir=/usr/lib${XBPS_TARGET_WORDSIZE} \
16 ${configure_args} ${cross_args}
19 do_build() {
20 : ${configure_script:=waf}
22 PYTHON=/usr/bin/python3 python3 ${configure_script} build ${make_build_args}
25 do_install() {
26 : ${configure_script:=waf}
28 PYTHON=/usr/bin/python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}