45 lines
940 B
Bash
Executable file
45 lines
940 B
Bash
Executable file
#!/bin/bash
|
|
|
|
RUBBERBAND_REPO="https://github.com/breakfastquay/rubberband.git"
|
|
RUBBERBAND_COMMIT="3a6d8a8c762dc903b5951ca015e09db4940965de"
|
|
|
|
ffbuild_enabled() {
|
|
[[ $VARIANT == lgpl* ]] && return -1
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
git-mini-clone "$RUBBERBAND_REPO" "$RUBBERBAND_COMMIT" rubberband
|
|
cd rubberband
|
|
|
|
mkdir build && cd build
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
-Dno_shared=true
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--cross-file=/cross.meson
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
meson "${myconf[@]}" ..
|
|
ninja -j$(nproc)
|
|
ninja install
|
|
|
|
# Fix static linking
|
|
echo "Requires.private: fftw3 samplerate" >> "$FFBUILD_PREFIX"/lib/pkgconfig/rubberband.pc
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-librubberband
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-librubberband
|
|
}
|