# Together with 0008-waf-bump-to-2.0.26.patch
abinfo "Updating WAF ..."
make cleanwaf
make getwaf

# FIXME: Upstream pushed FFmpeg 7.0 support but did not update its unit tests.
abinfo "Configuring aubio ..."
python3 "$SRCDIR"/waf configure \
    --prefix=/usr \
    --libdir=/usr/lib \
    --enable-fftw3f \
    --notests

abinfo "Building aubio ..."
python3 "$SRCDIR"/waf build \
    --notests $MAKEFLAGS

abinfo "Installing aubio ..."
python3 "$SRCDIR"/waf install \
    --notests \
    --destdir="$PKGDIR"

abinfo "Building Python bindings ..."
python3 "$SRCDIR"/setup.py build
python3 "$SRCDIR"/setup.py install \
    --root="$PKGDIR" \
    --optimize=1
