mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-12 13:27:38 +02:00
Add iconv and theora
This commit is contained in:
57
scripts.d/50-libtheora.sh
Executable file
57
scripts.d/50-libtheora.sh
Executable file
@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
THEORA_REPO="https://github.com/xiph/theora.git"
|
||||
THEORA_COMMIT="f98989ad7c3745d6cc4d24666e64046ff4a3f745"
|
||||
|
||||
ffbuild_enabled() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerstage() {
|
||||
to_df "ADD $SELF /root/theora.sh"
|
||||
to_df "RUN bash -c 'source /root/theora.sh && ffbuild_dockerbuild && rm /root/theora.sh'"
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
git clone "$THEORA_REPO" theora || return -1
|
||||
cd theora
|
||||
git checkout "$THEORA_COMMIT" || return -1
|
||||
|
||||
./autogen.sh || return -1
|
||||
|
||||
local myconf=(
|
||||
--prefix="$FFBUILD_PREFIX"
|
||||
--disable-shared
|
||||
--enable-static
|
||||
--with-pic
|
||||
--disable-examples
|
||||
--disable-oggtest
|
||||
--disable-vorbistest
|
||||
--disable-spec
|
||||
--disable-doc
|
||||
)
|
||||
|
||||
if [[ $TARGET == win* ]]; then
|
||||
myconf+=(
|
||||
--host="$FFBUILD_TOOLCHAIN"
|
||||
)
|
||||
else
|
||||
echo "Unknown target"
|
||||
return -1
|
||||
fi
|
||||
|
||||
./configure "${myconf[@]}" || return -1
|
||||
make -j$(nproc) || return -1
|
||||
make install || return -1
|
||||
|
||||
cd ..
|
||||
rm -rf theora
|
||||
}
|
||||
|
||||
ffbuild_configure() {
|
||||
echo --enable-libtheora
|
||||
}
|
||||
|
||||
ffbuild_unconfigure() {
|
||||
echo --disable-libtheora
|
||||
}
|
Reference in New Issue
Block a user