2020-09-06 19:55:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://git.code.sf.net/p/soxr/code"
|
|
|
|
SCRIPT_COMMIT="945b592b70470e29f917f4de89b4281fbbd540c0"
|
2020-09-06 19:55:59 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2020-09-06 19:55:59 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
2021-05-14 02:52:29 +00:00
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DWITH_OPENMP=ON -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF ..
|
2020-09-06 19:55:59 +00:00
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
2021-05-14 02:52:29 +00:00
|
|
|
|
|
|
|
echo "Libs.private: -lgomp" >> "$FFBUILD_PREFIX"/lib/pkgconfig/soxr.pc
|
2020-09-06 19:55:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-libsoxr
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-libsoxr
|
|
|
|
}
|
|
|
|
|
2021-05-14 13:29:54 +00:00
|
|
|
ffbuild_ldflags() {
|
|
|
|
echo -pthread
|
|
|
|
}
|
|
|
|
|
2020-09-06 19:55:59 +00:00
|
|
|
ffbuild_libs() {
|
2021-05-14 02:52:29 +00:00
|
|
|
echo -lgomp
|
2020-09-06 19:55:59 +00:00
|
|
|
}
|