Some cleanup and housekeeping

This commit is contained in:
BtbN 2021-04-04 23:20:31 +02:00
parent 12ab519046
commit fcd5acba08
57 changed files with 137 additions and 304 deletions

View file

@ -1,6 +1,7 @@
#!/bin/bash
set -xe
mkdir /stage
cd /stage
source /stage.sh
ffbuild_dockerbuild
rm /stage.sh
rm -rf "$FFBUILD_PREFIX"/bin
rm -rf /stage /stage.sh "$FFBUILD_PREFIX"/bin

View file

@ -31,9 +31,9 @@ ffbuild_dockerbuild() {
--enable-idl
)
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
./configure "${myconf[@]}"
make -j$(nproc)
make install
cd ../mingw-w64-libraries/winpthreads
@ -47,12 +47,9 @@ ffbuild_dockerbuild() {
--enable-static
)
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../../..
rm -rf mingw
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -15,8 +15,8 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
mkdir iconv
cd iconv
wget -O iconv.tar.gz "$ICONV_SRC" || return -1
tar xaf iconv.tar.gz || return -1
wget -O iconv.tar.gz "$ICONV_SRC"
tar xaf iconv.tar.gz
rm iconv.tar.gz
cd libiconv*
@ -37,12 +37,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf iconv
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -15,10 +15,10 @@ ffbuild_dockerbuild() {
mkdir zlib
cd zlib
wget "$ZLIB_SRC" -O zlib.tar.gz || return -1
tar xaf zlib.tar.gz || return -1
wget "$ZLIB_SRC" -O zlib.tar.gz
tar xaf zlib.tar.gz
rm zlib.tar.gz
cd zlib* || return -1
cd zlib*
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -33,12 +33,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf zlib
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -33,12 +33,9 @@ ffbuild_dockerbuild() {
return -1
fi
./autogen.sh "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf libxml2
./autogen.sh "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -15,8 +15,8 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
mkdir ft
cd ft
wget -O ft.tar.gz "$FREETYPE_SRC" || return -1
tar xaf ft.tar.gz || return -1
wget -O ft.tar.gz "$FREETYPE_SRC"
tar xaf ft.tar.gz
rm ft.tar.gz
cd freetype*
@ -35,12 +35,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf ft
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -32,14 +32,11 @@ ffbuild_dockerbuild() {
return -1
fi
./autogen.sh "${myconf[@]}" || return -1
make || return -1
make install || return -1
./autogen.sh "${myconf[@]}"
make
make install
sed -i 's/Cflags:/Cflags: -DFRIBIDI_LIB_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/fribidi.pc || return -1
cd ..
rm -rf fribidi
sed -i 's/Cflags:/Cflags: -DFRIBIDI_LIB_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/fribidi.pc
}
ffbuild_configure() {

View file

@ -15,12 +15,12 @@ ffbuild_dockerbuild() {
mkdir gmp
cd gmp
wget "$GMP_SRC" -O gmp.tar.xz || return -1
tar xaf gmp.tar.xz || return -1
wget "$GMP_SRC" -O gmp.tar.xz
tar xaf gmp.tar.xz
rm gmp.tar.xz
cd gmp* || return -1
cd gmp*
autoreconf -i || return -1
autoreconf -i
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -37,12 +37,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf gmp
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$OGG_REPO" "$OGG_COMMIT" ogg
cd ogg
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -34,10 +34,7 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf ogg
./configure "${myconf[@]}"
make -j$(nproc)
make install
}

View file

@ -41,13 +41,10 @@ ffbuild_dockerbuild() {
return -1
fi
./Configure "${myconf[@]}" || return -1
./Configure "${myconf[@]}"
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile || return -1
sed -i -e "/^CFLAGS=/s|=.*|=${CFLAGS}|" -e "/^LDFLAGS=/s|=[[:space:]]*$|=${LDFLAGS}|" Makefile
make -j$(nproc) || return -1
make install_sw || return -1
cd ..
rm -rf openssl
make -j$(nproc)
make install_sw
}

View file

@ -36,12 +36,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf xz
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -15,10 +15,10 @@ ffbuild_dockerbuild() {
mkdir fc
cd fc
wget "$FONTCONFIG_SRC" -O fc.tar.gz || return -1
tar xaf fc.tar.gz || return -1
wget "$FONTCONFIG_SRC" -O fc.tar.gz
tar xaf fc.tar.gz
rm fc.tar.gz
cd fontconfig* || return -1
cd fontconfig*
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -38,12 +38,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf fc
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -50,7 +50,4 @@ ffbuild_dockerbuild() {
./configure "${myconf[@]}"
make -j$(nproc)
make install
cd ../..
rm -rf fftw3
}

View file

@ -34,10 +34,7 @@ ffbuild_dockerbuild() {
export LIBS="-lpthread"
./autogen.sh "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf harfbuzz
./autogen.sh "${myconf[@]}"
make -j$(nproc)
make install
}

View file

@ -24,7 +24,4 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=NO -DBUILD_TESTING=NO -DLIBSAMPLERATE_EXAMPLES=OFF -DLIBSAMPLERATE_INSTALL=YES ..
make -j$(nproc)
make install
cd ../..
rm -rf libsr
}

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$LIBUDFREAD_REPO" "$LIBUDFREAD_COMMIT" libudfread
cd libudfread
./bootstrap || return -1
./bootstrap
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -39,7 +39,4 @@ ffbuild_dockerbuild() {
make install
ln -s libudfread.pc "$FFBUILD_PREFIX"/lib/pkgconfig/udfread.pc
cd ..
rm -rf libudfread
}

View file

@ -26,7 +26,4 @@ ffbuild_dockerbuild() {
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
cd ..
rm -rf lv2
}

View file

@ -45,9 +45,6 @@ ffbuild_dockerbuild() {
mkdir -p "$FFBUILD_PREFIX"/lib/pkgconfig
mv OpenCL.pc "$FFBUILD_PREFIX"/lib/pkgconfig/OpenCL.pc
cd ../../..
rm -rf opencl
}
ffbuild_configure() {

View file

@ -31,7 +31,4 @@ ffbuild_dockerbuild() {
./waf install
sed -i 's/Cflags:/Cflags: -DSERD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/serd-0.pc
cd ..
rm -rf serd
}

View file

@ -41,9 +41,6 @@ ffbuild_dockerbuild() {
ninja install
sed -i 's/Libs.private:/Libs.private: -lstdc++/; t; $ a Libs.private: -lstdc++' "$FFBUILD_PREFIX"/lib/pkgconfig/libvmaf.pc
cd ../..
rm -rf vmaf
}
ffbuild_configure() {

View file

@ -38,9 +38,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_TESTS=OFF ..
make -j$(nproc)
make install
cd ..
rm -rf vulkan
}
ffbuild_configure() {

View file

@ -29,7 +29,4 @@ ffbuild_dockerbuild() {
./waf install
sed -i 's/Cflags:/Cflags: -DSORD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sord-0.pc
cd ..
rm -rf sord
}

View file

@ -28,7 +28,4 @@ ffbuild_dockerbuild() {
./waf install
sed -i 's/Cflags:/Cflags: -DSRATOM_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sratom-0.pc
cd ..
rm -rf sratom
}

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$VORBIS_REPO" "$VORBIS_COMMIT" vorbis
cd vorbis
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -34,12 +34,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf vorbis
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -17,10 +17,7 @@ ffbuild_dockerbuild() {
cd amf
mkdir -p "$FFBUILD_PREFIX"/include
mv amf/public/include "$FFBUILD_PREFIX"/include/AMF || return -1
cd ..
rm -rf amf
mv amf/public/include "$FFBUILD_PREFIX"/include/AMF
}
ffbuild_configure() {

View file

@ -21,14 +21,11 @@ ffbuild_dockerbuild() {
# Workaround broken build system
export CFLAGS="$CFLAGS -pthread -I/opt/ffbuild/include/libvmaf"
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DENABLE_EXAMPLES=NO -DENABLE_TESTS=NO -DENABLE_TOOLS=NO -DCONFIG_TUNE_VMAF=1 .. || return -1
make -j$(nproc) || return -1
make install || return -1
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DENABLE_EXAMPLES=NO -DENABLE_TESTS=NO -DENABLE_TOOLS=NO -DCONFIG_TUNE_VMAF=1 ..
make -j$(nproc)
make install
echo "Requires.private: libvmaf" >> "$FFBUILD_PREFIX/lib/pkgconfig/aom.pc"
cd ../..
rm -rf aom
}
ffbuild_configure() {

View file

@ -19,12 +19,9 @@ ffbuild_dockerbuild() {
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DHEADERS_ONLY=ON .. || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf avisynth
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DHEADERS_ONLY=ON ..
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -36,9 +36,6 @@ ffbuild_dockerbuild() {
meson "${myconf[@]}" ..
ninja -j$(nproc)
ninja install
cd ../..
rm -rf dav1d
}
ffbuild_configure() {

View file

@ -36,12 +36,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../../..
rm -rf davs2
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -14,12 +14,9 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
git-mini-clone "$FFNVCODEC_REPO" "$FFNVCODEC_COMMIT" ffnvcodec
pushd ffnvcodec
cd ffnvcodec
make PREFIX="$FFBUILD_PREFIX" install || return -1
popd
rm -rf ffnvcodec
make PREFIX="$FFBUILD_PREFIX" install
}
ffbuild_configure() {

View file

@ -24,9 +24,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_EXTERNAL=ON -DBUILD_TESTING=OFF -DENABLE_CTEST=OFF -DENABLE_HLSL=ON -DENABLE_GLSLANG_BINARIES=OFF ..
make -j$(nproc)
make install
cd ../..
rm -rf glslang
}
ffbuild_configure() {

View file

@ -22,9 +22,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DENABLE_UBSAN=OFF ..
make -j$(nproc)
make install
cd ../..
rm -rf gme
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$ASS_REPO" "$ASS_COMMIT" ass
cd ass
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -34,12 +34,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf ass
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$LIBBLURAY_REPO" "$LIBBLURAY_COMMIT" libbluray
cd libbluray
./bootstrap || return -1
./bootstrap
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -44,9 +44,6 @@ ffbuild_dockerbuild() {
./configure "${myconf[@]}"
make -j$(nproc)
make install
cd ..
rm -rf libbluray
}
ffbuild_configure() {

View file

@ -14,8 +14,8 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
mkdir lame
cd lame
wget -O lame.tar.gz "$LAME_SRC" || return -1
tar xaf lame.tar.gz || return -1
wget -O lame.tar.gz "$LAME_SRC"
tar xaf lame.tar.gz
rm lame.tar.gz
cd lame*
@ -38,12 +38,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf lame
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$OPUS_REPO" "$OPUS_COMMIT" opus
cd opus
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -34,12 +34,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf opus
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$THEORA_REPO" "$THEORA_COMMIT" theora
cd theora
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -39,12 +39,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf theora
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -42,12 +42,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf libvpx
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$WEBP_REPO" "$WEBP_COMMIT" webp
cd webp
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -43,12 +43,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf webp
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -31,9 +31,6 @@ ffbuild_dockerbuild() {
./waf install
sed -i 's/Cflags:/Cflags: -DLILV_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/lilv-0.pc
cd ..
rm -rf lilv
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$MFX_REPO" "$MFX_COMMIT" mfx
cd mfx
autoreconf -i || return -1
autoreconf -i
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -34,12 +34,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf mfx
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -43,9 +43,6 @@ ffbuild_dockerbuild() {
./configure "${myconf[@]}"
make -j$(nproc)
make install
cd ../..
rm -rf opencore
}
ffbuild_configure() {

View file

@ -21,9 +21,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_PKGCONFIG_FILES=ON -DBUILD_CODEC=OFF -DWITH_ASTYLE=OFF -DBUILD_TESTING=OFF ..
make -j$(nproc)
make install
cd ../..
rm -rf openjpeg
}
ffbuild_configure() {

View file

@ -23,9 +23,6 @@ ffbuild_dockerbuild() {
--library-type=staticlib \
--crt-static \
--release
cd ..
rm -rf rav1e
}
ffbuild_configure() {

View file

@ -47,9 +47,6 @@ ffbuild_dockerbuild() {
# Fix static linking
echo "Requires.private: fftw3 samplerate" >> "$FFBUILD_PREFIX"/lib/pkgconfig/rubberband.pc
cd ../../..
rm -rf rubberband
}
ffbuild_configure() {

View file

@ -15,12 +15,12 @@ ffbuild_dockerbuild() {
mkdir sdl
cd sdl
wget "$SDL_SRC" -O SDL.tar.gz || return -1
tar xaf SDL.tar.gz || return -1
wget "$SDL_SRC" -O SDL.tar.gz
tar xaf SDL.tar.gz
rm SDL.tar.gz
cd SDL* || return -1
cd SDL*
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -37,12 +37,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf sdl
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -22,9 +22,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_TESTS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_SHARED_LIBS=OFF ..
make -j$(nproc)
make install
cd ../..
rm -rf soxr
}
ffbuild_configure() {

View file

@ -18,12 +18,9 @@ ffbuild_dockerbuild() {
mkdir build && cd build
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_ENCRYPTION=ON -DENABLE_APPS=OFF .. || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../..
rm -rf srt
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DENABLE_SHARED=OFF -DENABLE_STATIC=ON -DENABLE_ENCRYPTION=ON -DENABLE_APPS=OFF ..
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -24,9 +24,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF -DBUILD_TESTING=OFF -DBUILD_APPS=OFF ..
make -j$(nproc)
make install
cd ../..
rm -rf svtav1
}
ffbuild_configure() {

View file

@ -14,8 +14,8 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
mkdir twolame
cd twolame
wget -O twolame.tar.gz "$TWOLAME_SRC" || return -1
tar xaf twolame.tar.gz || return -1
wget -O twolame.tar.gz "$TWOLAME_SRC"
tar xaf twolame.tar.gz
rm twolame.tar.gz
cd twolame*
@ -36,14 +36,11 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
./configure "${myconf[@]}"
make -j$(nproc)
make install
sed -i 's/Cflags:/Cflags: -DLIBTWOLAME_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/twolame.pc || return -1
cd ../..
rm -rf twolame
sed -i 's/Cflags:/Cflags: -DLIBTWOLAME_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/twolame.pc
}
ffbuild_configure() {

View file

@ -25,9 +25,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=NO ../..
make -j$(nproc)
make install
cd ../../..
rm -rf uavs3d
}
ffbuild_configure() {

View file

@ -23,9 +23,6 @@ ffbuild_dockerbuild() {
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" -DBUILD_SHARED_LIBS=OFF ..
make -j$(nproc)
make install
cd ../..
rm -rf vidstab
}
ffbuild_configure() {

View file

@ -15,7 +15,7 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
git-mini-clone "$X264_REPO" "$X264_COMMIT" x264
pushd x264
cd x264
local myconf=(
--disable-cli
@ -36,12 +36,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
popd
rm -rf x264
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -57,9 +57,6 @@ EOF
fi
make install
cd ../..
rm -rf x265
}
ffbuild_configure() {

View file

@ -43,12 +43,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ../../..
rm -rf xavs2
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {

View file

@ -15,8 +15,8 @@ ffbuild_dockerstage() {
ffbuild_dockerbuild() {
mkdir xvid
cd xvid
wget -O xvid.tar.gz "$XVID_SRC" || return -1
tar xaf xvid.tar.gz || return -1
wget -O xvid.tar.gz "$XVID_SRC"
tar xaf xvid.tar.gz
rm xvid.tar.gz
cd xvid*
@ -35,15 +35,12 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
./configure "${myconf[@]}"
make -j$(nproc)
make install
rm "$FFBUILD_PREFIX"/{bin/xvidcore.dll,lib/xvidcore.dll.a}
mv "$FFBUILD_PREFIX"/lib/{,lib}xvidcore.a
cd ../../../..
rm -rf xvid
}
ffbuild_configure() {

View file

@ -16,7 +16,7 @@ ffbuild_dockerbuild() {
git-mini-clone "$ZIMG_REPO" "$ZIMG_COMMIT" zimg
cd zimg
./autogen.sh || return -1
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
@ -33,12 +33,9 @@ ffbuild_dockerbuild() {
return -1
fi
./configure "${myconf[@]}" || return -1
make -j$(nproc) || return -1
make install || return -1
cd ..
rm -rf zimg
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {