mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
36 lines
641 B
Bash
Executable File
36 lines
641 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://github.com/madler/zlib.git"
|
|
SCRIPT_COMMIT="643e17b7498d12ab8d15565662880579692f769d"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--static
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
export CC="${FFBUILD_CROSS_PREFIX}gcc"
|
|
export AR="${FFBUILD_CROSS_PREFIX}ar"
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-zlib
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-zlib
|
|
}
|