mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
36 lines
681 B
Bash
Executable File
36 lines
681 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/mm2/Little-CMS.git"
|
|
SCRIPT_COMMIT="04ace9c100fc6850f09223dd6c7ad8fa634acd06"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
mkdir build && cd build
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
-Ddefault_library=static
|
|
-Dutils=false
|
|
-Dfastfloat=true
|
|
-Dthreaded=true
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--cross-file=/cross.meson
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
export CFLAGS="$CFLAGS -fpermissive"
|
|
|
|
meson setup "${myconf[@]}" ..
|
|
ninja -j$(nproc)
|
|
ninja install
|
|
}
|