2020-09-06 14:04:48 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
LIBUDFREAD_REPO="https://code.videolan.org/videolan/libudfread.git"
|
2020-11-10 15:22:37 +00:00
|
|
|
LIBUDFREAD_COMMIT="34d762c0a71f99d3840d558b3a8794c7f9f49ed3"
|
2020-09-06 14:04:48 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2020-11-10 15:33:56 +00:00
|
|
|
ln -s libudfread.pc "$FFBUILD_PREFIX"/lib/pkgconfig/udfread.pc
|
2020-09-06 15:12:35 +00:00
|
|
|
|
2020-09-06 14:04:48 +00:00
|
|
|
cd ..
|
|
|
|
rm -rf libudfread
|
|
|
|
}
|