Init, adding corrade,magnum,magnum-plugins,magnum-integration,magnum-extras, and magnum-examples 2025.47_1
This commit is contained in:
29
common/build-style/waf3.sh
Normal file
29
common/build-style/waf3.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#
|
||||
# This helper is for templates using WAF with python3 to build/install.
|
||||
#
|
||||
do_configure() {
|
||||
: ${configure_script:=waf}
|
||||
local cross_args
|
||||
|
||||
if [[ $build_helper = *"qemu"* ]] && [ "$CROSS_BUILD" ]; then
|
||||
# If the qemu build helper is specified, use it for cross builds
|
||||
cross_args="--cross-compile --hostcc=${CC_FOR_BUILD}
|
||||
--cross-execute=qemu-${XBPS_TARGET_QEMU_MACHINE}-static"
|
||||
fi
|
||||
|
||||
PYTHON=/usr/bin/python3 python3 ${configure_script} configure \
|
||||
--prefix=/usr --libdir=/usr/lib${XBPS_TARGET_WORDSIZE} \
|
||||
${configure_args} ${cross_args}
|
||||
}
|
||||
|
||||
do_build() {
|
||||
: ${configure_script:=waf}
|
||||
|
||||
PYTHON=/usr/bin/python3 python3 ${configure_script} build ${make_build_args}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
: ${configure_script:=waf}
|
||||
|
||||
PYTHON=/usr/bin/python3 python3 ${configure_script} install --destdir=${DESTDIR} ${make_install_args}
|
||||
}
|
||||
Reference in New Issue
Block a user