2 # This helper is for templates using WAF with python3 to build/install.
5 : ${configure_script:=waf}
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}
20 : ${configure_script:=waf}
22 PYTHON
=/usr
/bin
/python3 python3
${configure_script} build
${make_build_args}
26 : ${configure_script:=waf}
28 PYTHON
=/usr
/bin
/python3 python3
${configure_script} install --destdir=${DESTDIR} ${make_install_args}