FFmpeg-Builds/scripts.d/45-libudfread.sh
2020-11-10 16:22:37 +01:00

45 lines
875 B
Bash
Executable file

#!/bin/bash
LIBUDFREAD_REPO="https://code.videolan.org/videolan/libudfread.git"
LIBUDFREAD_COMMIT="34d762c0a71f99d3840d558b3a8794c7f9f49ed3"
ffbuild_enabled() {
return 0
}
ffbuild_dockerstage() {
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
}
ffbuild_dockerbuild() {
git-mini-clone "$LIBUDFREAD_REPO" "$LIBUDFREAD_COMMIT" libudfread
cd libudfread
./bootstrap || return -1
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-shared
--enable-static
--with-pic
)
if [[ $TARGET == win* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
ln -s udfread.pc "$FFBUILD_PREFIX"/lib/pkgconfig/libudfread.pc
cd ..
rm -rf libudfread
}