12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #!/bin/bash
- SCRIPT_REPO="https://code.videolan.org/videolan/libdvdnav.git"
- SCRIPT_COMMIT="9831fe01488bd0e9d1e3521195da6940cd8415eb"
- ffbuild_enabled() {
- [[ $VARIANT == lgpl* ]] && return -1
- [[ $ADDINS_STR == *4.4* ]] && return -1
- [[ $ADDINS_STR == *5.0* ]] && return -1
- [[ $ADDINS_STR == *5.1* ]] && return -1
- [[ $ADDINS_STR == *6.0* ]] && return -1
- [[ $ADDINS_STR == *6.1* ]] && return -1
- return 0
- }
- ffbuild_dockerbuild() {
- autoreconf -i
- local myconf=(
- --prefix="$FFBUILD_PREFIX"
- --disable-shared
- --enable-static
- --with-pic
- )
- if [[ $TARGET == win* || $TARGET == linux* ]]; then
- myconf+=(
- --host="$FFBUILD_TOOLCHAIN"
- )
- else
- echo "Unknown target"
- return -1
- fi
- ./configure "${myconf[@]}"
- make -j$(nproc)
- make install
- }
- ffbuild_configure() {
- echo --enable-libdvdnav
- }
- 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
- [[ $ADDINS_STR == *6.1* ]] && return 0
- echo --disable-libdvdnav
- }
|