2022-10-29 16:50:06 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPT_REPO="https://github.com/kcat/openal-soft.git"
|
2023-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="05f9ce8b978239cebecef1a60f0d451a118fa3df"
|
2022-10-29 16:50:06 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
2022-10-31 19:44:20 +00:00
|
|
|
[[ $ADDINS_STR == *4.4* ]] && return -1
|
|
|
|
[[ $ADDINS_STR == *5.0* ]] && return -1
|
|
|
|
[[ $ADDINS_STR == *5.1* ]] && return -1
|
2022-10-29 16:50:06 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2022-10-29 16:50:06 +00:00
|
|
|
|
|
|
|
mkdir cm_build && cd cm_build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
|
|
|
|
-DLIBTYPE=STATIC -DALSOFT_UTILS=OFF -DALSOFT_EXAMPLES=OFF ..
|
|
|
|
make -j$(nproc)
|
|
|
|
make install
|
|
|
|
|
|
|
|
echo "Libs.private: -lstdc++" >> "$FFBUILD_PREFIX"/lib/pkgconfig/openal.pc
|
2022-10-29 17:19:28 +00:00
|
|
|
|
|
|
|
if [[ $TARGET == win* ]]; then
|
|
|
|
echo "Libs.private: -lole32" >> "$FFBUILD_PREFIX"/lib/pkgconfig/openal.pc
|
|
|
|
fi
|
2022-10-29 16:50:06 +00:00
|
|
|
}
|
2022-10-31 19:44:20 +00:00
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-openal
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-openal
|
|
|
|
}
|