mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-29 22:24:28 +02:00
47 lines
964 B
Bash
Executable File
47 lines
964 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_REPO="https://git.savannah.gnu.org/git/libiconv.git"
|
|
SCRIPT_COMMIT="317dfadc6c68b3465205873b140200e5b0d0256f"
|
|
|
|
ffbuild_enabled() {
|
|
return 0
|
|
}
|
|
|
|
ffbuild_dockerdl() {
|
|
echo "retry-tool sh -c \"rm -rf iconv && git clone '$SCRIPT_REPO' iconv\" && git -C iconv checkout \"$SCRIPT_COMMIT\""
|
|
echo "cd iconv && retry-tool ./autopull.sh --one-time"
|
|
}
|
|
|
|
ffbuild_dockerbuild() {
|
|
(unset CC CFLAGS GMAKE && ./autogen.sh)
|
|
|
|
local myconf=(
|
|
--prefix="$FFBUILD_PREFIX"
|
|
--enable-extra-encodings
|
|
--disable-shared
|
|
--enable-static
|
|
--with-pic
|
|
)
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
myconf+=(
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
)
|
|
else
|
|
echo "Unknown target"
|
|
return -1
|
|
fi
|
|
|
|
./configure "${myconf[@]}"
|
|
make -j$(nproc)
|
|
make install
|
|
}
|
|
|
|
ffbuild_configure() {
|
|
echo --enable-iconv
|
|
}
|
|
|
|
ffbuild_unconfigure() {
|
|
echo --disable-iconv
|
|
}
|