2021-11-18 22:54:46 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://code.videolan.org/rist/librist.git"
|
2023-07-08 15:37:10 +00:00
|
|
|
SCRIPT_COMMIT="04ba78abb6f8f673da0cc75056df876178e504fb"
|
2021-11-18 22:54:46 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2021-11-18 22:54:46 +00:00
|
|
|
|
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
|
|
|
--buildtype=release
|
|
|
|
--default-library=static
|
|
|
|
-Duse_mbedtls=true
|
|
|
|
-Dbuiltin_mbedtls=false
|
|
|
|
-Dbuilt_tools=false
|
|
|
|
-Dtest=false
|
|
|
|
)
|
|
|
|
|
|
|
|
if [[ $TARGET == win* ]]; then
|
|
|
|
myconf+=(
|
|
|
|
-Dhave_mingw_pthreads=true
|
|
|
|
)
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
|
|
myconf+=(
|
|
|
|
--cross-file=/cross.meson
|
|
|
|
)
|
|
|
|
else
|
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
meson "${myconf[@]}" ..
|
|
|
|
ninja -j"$(nproc)"
|
|
|
|
ninja install
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-librist
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-librist
|
|
|
|
}
|