2020-09-06 19:55:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2020-09-27 14:17:47 +00:00
|
|
|
# https://sourceforge.net/p/soxr/code/ci/master/tree/
|
2020-09-06 19:55:59 +00:00
|
|
|
SOXR_REPO="https://git.code.sf.net/p/soxr/code"
|
|
|
|
SOXR_COMMIT="945b592b70470e29f917f4de89b4281fbbd540c0"
|
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$SOXR_REPO" "$SOXR_COMMIT" soxr
|
|
|
|
cd soxr
|
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF ..
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libsoxr
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libsoxr
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_ldflags() {
|
|
|
|
echo -pthread
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_libs() {
|
|
|
|
echo -lgomp
|
|
|
|
}
|