123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/xqq/libaribcaption.git"
- SCRIPT_COMMIT="41a014d245adf66f425a8317a031477dd1f80c67"
- ffbuild_enabled() {
- [[ $ADDINS_STR == *4.4* ]] && return -1
- [[ $ADDINS_STR == *5.0* ]] && return -1
- [[ $ADDINS_STR == *5.1* ]] && return -1
- [[ $ADDINS_STR == *6.0* ]] && return -1
- return 0
- }
- ffbuild_dockerbuild() {
- mkdir build
- cd build
- cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" \
- -DARIBCC_SHARED_LIBRARY=OFF -DARIBCC_BUILD_TESTS=OFF -DBUILD_SHARED_LIBS=OFF \
- -DARIBCC_USE_FREETYPE=ON -DARIBCC_USE_EMBEDDED_FREETYPE=OFF \
- ..
- ninja -j$(nproc)
- ninja install
- echo "Libs.private: -lstdc++" >> "$FFBUILD_PREFIX"/lib/pkgconfig/libaribcaption.pc
- }
- ffbuild_configure() {
- echo --enable-libaribcaption
- }
- ffbuild_unconfigure() {
- [[ $ADDINS_STR == *4.4* ]] && return 0
- [[ $ADDINS_STR == *5.0* ]] && return 0
- [[ $ADDINS_STR == *5.1* ]] && return 0
- [[ $ADDINS_STR == *6.0* ]] && return 0
- echo --disable-libaribcaption
- }
|