Switch to a more direct Dockerfile.dl generation

Otherwise the entire build cache effectively invalidates the moment one
script changes..
This commit is contained in:
BtbN 2023-06-18 21:25:50 +02:00
parent c3fec1bd50
commit 61debb00e5
101 changed files with 138 additions and 462 deletions

View file

@ -16,6 +16,10 @@ to_df() {
echo >> "$_of"
}
default_dl() {
to_df "RUN git-mini-clone \"$SCRIPT_REPO\" \"$SCRIPT_COMMIT\" \"$1\""
}
###
### Generate download Dockerfile
###
@ -26,7 +30,7 @@ exec_dockerstage_dl() {
SELF="$SCRIPT"
SELFLAYER="$(layername "$STAGE")"
source "$SCRIPT"
ffbuild_dockerstage_dl || exit $?
ffbuild_dockerdl || exit $?
TODF="Dockerfile.dl.final" ffbuild_dockerlayer_dl || exit $?
)
}
@ -35,6 +39,7 @@ export TODF="Dockerfile.dl"
to_df "FROM ${REGISTRY}/${REPO}/base:latest AS base"
to_df "ENV TARGET=$TARGET VARIANT=$VARIANT REPO=$REPO ADDINS_STR=$ADDINS_STR"
to_df "WORKDIR \$FFBUILD_DLDIR"
PREVLAYER="base"
for ID in $(ls -1d scripts.d/??-* | sed -s 's|^.*/\(..\).*|\1|' | sort -u); do

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" mingw-std-threads
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/mingw-std-threads
cd "$FFBUILD_DLDIR/$SELF"
mkdir -p "$FFBUILD_PREFIX"/include
cp *.h "$FFBUILD_PREFIX"/include

View file

@ -18,9 +18,7 @@ ffbuild_dockerfinal() {
}
ffbuild_dockerdl() {
retry-tool sh -c "rm -rf mingw && git clone '$SCRIPT_REPO' mingw"
cd mingw
git checkout "$SCRIPT_COMMIT"
to_df "RUN retry-tool sh -c \"rm -rf mingw && git clone '$SCRIPT_REPO' mingw\" && cd mingw && git checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {

View file

@ -13,12 +13,8 @@ ffbuild_dockerlayer() {
to_df "COPY --from=${SELFLAYER} \$FFBUILD_PREFIX/share/aclocal/. /usr/share/aclocal"
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" xorg-macros
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/xorg-macros
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i
./configure --prefix="$FFBUILD_PREFIX"

View file

@ -8,14 +8,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
retry-tool sh -c "rm -rf iconv && git clone '$SCRIPT_REPO' iconv"
cd iconv
git checkout "$SCRIPT_COMMIT"
retry-tool ./autopull.sh --one-time
to_df "RUN retry-tool sh -c \"rm -rf $SELF && git clone '$SCRIPT_REPO' $SELF\""
to_df "RUN git -C $SELF checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/iconv
cd "$FFBUILD_DLDIR/$SELF"
retry-tool ./autopull.sh --one-time
(unset CC CFLAGS GMAKE && ./autogen.sh)

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxml2
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxml2
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--prefix="$FFBUILD_PREFIX"

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" zlib
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/zlib
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--prefix="$FFBUILD_PREFIX"

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" fftw3
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/fftw3
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--prefix="$FFBUILD_PREFIX"

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" freetype
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/freetype
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" fribidi
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/fribidi
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -9,7 +9,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
retry-tool check-wget "gmp.tar.xz" "$SCRIPT_URL" "$SCRIPT_SHA512"
to_df "RUN retry-tool check-wget gmp.tar.xz \"$SCRIPT_URL\" \"$SCRIPT_SHA512\""
}
ffbuild_dockerbuild() {

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" ogg
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/ogg
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -9,13 +9,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openssl
cd openssl
git submodule update --init --recursive --depth=1
default_dl "$SELF"
to_df "RUN git -C \"$SELF\" submodule update --init --recursive --depth=1"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/openssl
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
threads

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" xz
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/xz
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh --no-po4a

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" fc
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/fc
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh --noconf

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" harfbuzz
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/harfbuzz
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--prefix="$FFBUILD_PREFIX"

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libsr
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libsr
cd "$FFBUILD_DLDIR/$SELF"
mkdir build
cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libudfread
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libudfread
cd "$FFBUILD_DLDIR/$SELF"
./bootstrap

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" vorbis
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/vorbis
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -11,9 +11,8 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
mkdir opencl && cd opencl
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" headers
git-mini-clone "$SCRIPT_REPO2" "$SCRIPT_COMMIT2" loader
default_dl opencl/headers
to_df "RUN git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" opencl/loader"
}
ffbuild_dockerbuild() {

View file

@ -9,13 +9,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone --filter=blob:none "$SCRIPT_REPO" pa
cd pa
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone --filter=blob:none \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/pa
cd "$FFBUILD_DLDIR/$SELF"
# Kill build of utils and their sndfile dep
echo > src/utils/meson.build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" vmaf
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/vmaf
cd "$FFBUILD_DLDIR/$SELF"
# Kill build of unused and broken tools
echo > libvmaf/tools/meson.build

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" xcbproto
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/xcbproto
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" xproto
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/xproto
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxtrans
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxtrans
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxau
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxau
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxcb
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxcb
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libx11
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libx11
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxext
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxext
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxfixes
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxfixes
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxi
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxi
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxinerama
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxinerama
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxrender
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxrender
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxscrnsaver
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxscrnsaver
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxxf86vm
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxxf86vm
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" glvnd
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/glvnd
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxcursor
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxcursor
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxrandr
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxrandr
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -9,12 +9,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libxv
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libxv
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" amf
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/amf
cd "$FFBUILD_DLDIR/$SELF"
mkdir -p "$FFBUILD_PREFIX"/include
mv amf/public/include "$FFBUILD_PREFIX"/include/AMF

View file

@ -8,15 +8,11 @@ ffbuild_enabled() {
}
ffbuild_dockerstage() {
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=\$FFBUILD_DLDIR,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/aom,dst=/patches run_stage /stage.sh"
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" aom
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=\$FFBUILD_DLDIR,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/aom,dst=/patches SELF=\"$SELF\" run_stage /stage.sh"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/aom
cd "$FFBUILD_DLDIR/$SELF"
for patch in /patches/*.patch; do
echo "Applying $patch"

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libpng
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libpng
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,15 +8,11 @@ ffbuild_enabled() {
}
ffbuild_dockerstage() {
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=\$FFBUILD_DLDIR,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/aribb24,dst=/patches run_stage /stage.sh"
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" aribb24
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=\$FFBUILD_DLDIR,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/aribb24,dst=/patches SELF=\"$SELF\" run_stage /stage.sh"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/aribb24
cd "$FFBUILD_DLDIR/$SELF"
for patch in /patches/*.patch; do
echo "Applying $patch"

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" avisynth
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/avisynth
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -11,12 +11,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" chromaprint
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/chromaprint
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" dav1d
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/dav1d
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -12,13 +12,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone "$SCRIPT_REPO" davs2
cd davs2
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/davs2
cd "$FFBUILD_DLDIR/$SELF"
cd build/linux
local myconf=(

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" fdk
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/fdk
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -12,8 +12,8 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" ffnvcodec
git-mini-clone "$SCRIPT_REPO2" "$SCRIPT_COMMIT2" ffnvcodec2
default_dl ffnvcodec
to_df "RUN git-mini-clone \"$SCRIPT_REPO2\" \"$SCRIPT_COMMIT2\" ffnvcodec2"
}
ffbuild_dockerbuild() {

View file

@ -9,12 +9,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" frei0r
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/frei0r
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -8,13 +8,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone "$SCRIPT_REPO" gme
cd gme
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/gme
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" kvazaar
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/kvazaar
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" ass
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/ass
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libbluray
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libbluray
cd "$FFBUILD_DLDIR/$SELF"
./bootstrap

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" brotli
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/brotli
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -10,13 +10,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" jxl
cd jxl
git submodule update --init --recursive --depth 1 --recommend-shallow third_party/{highway,skcms}
default_dl "$SELF"
to_df "RUN git -C \"$SELF\" submodule update --init --recursive --depth 1 --recommend-shallow third_party/highway third_party/skcms"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/jxl
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -8,7 +8,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
retry-tool sh -c "rm -rf lame && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' lame"
to_df "RUN retry-tool sh -c \"rm -rf lame && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' lame\""
}
ffbuild_dockerbuild() {

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" opus
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/opus
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" mbedtls
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/mbedtls
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" librist
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/librist
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libssh
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libssh
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" theora
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/theora
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libvpx
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libvpx
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--disable-shared

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" webp
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/webp
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" lv2
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/lv2
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" serd
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/serd
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" zix
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/zix
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" sord
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/sord
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" sratom
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/sratom
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" lilv
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/lilv
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -11,12 +11,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" onevpl
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/onevpl
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -10,12 +10,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openal
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/openal
cd "$FFBUILD_DLDIR/$SELF"
mkdir cm_build && cd cm_build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" opencore
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/opencore
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openh264
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/openh264
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
PREFIX="$FFBUILD_PREFIX"

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" openjpeg
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/openjpeg
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -8,7 +8,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
retry-tool sh -c "rm -rf openmpt && svn checkout '${SCRIPT_REPO}@${SCRIPT}' openmpt"
to_df "RUN retry-tool sh -c \"rm -rf openmpt && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' openmpt\""
}
ffbuild_dockerbuild() {

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" rav1e
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/rav1e
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--prefix="$FFBUILD_PREFIX"

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" rubberband
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/rubberband
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -18,10 +18,6 @@ ffbuild_dockerbuild() {
return 0
}
ffbuild_dockerstage_dl() {
return 0
}
ffbuild_dockerlayer_dl() {
return 0
}

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" sdl
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/sdl
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" soxr
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/soxr
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" srt
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/srt
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -9,13 +9,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone "$SCRIPT_REPO" svtav1
cd svtav1
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/svtav1
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -7,12 +7,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" twolame
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/twolame
cd "$FFBUILD_DLDIR/$SELF"
NOCONFIGURE=1 ./autogen.sh
touch doc/twolame.1

View file

@ -9,13 +9,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone "$SCRIPT_REPO" uavs3d
cd uavs3d
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/uavs3d
cd "$FFBUILD_DLDIR/$SELF"
mkdir build/linux
cd build/linux

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libpciaccess
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libpciaccess
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -fi

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libdrm
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libdrm
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -9,12 +9,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" libva
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/libva
cd "$FFBUILD_DLDIR/$SELF"
autoreconf -i

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" vidstab
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/vidstab
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -9,12 +9,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" vkheaders
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/vkheaders
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -9,13 +9,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" shaderc
cd shaderc
./utils/git-sync-deps
default_dl "$SELF"
to_df "RUN cd \"$SELF\" && ./utils/git-sync-deps"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/shaderc
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" spirv-cross
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/spirv-cross
cd "$FFBUILD_DLDIR/$SELF"
VER_MAJ="$(grep 'set(spirv-cross-abi-major' CMakeLists.txt | sed -re 's/.* ([0-9]+)\)/\1/')"
VER_MIN="$(grep 'set(spirv-cross-abi-minor' CMakeLists.txt | sed -re 's/.* ([0-9]+)\)/\1/')"

View file

@ -12,13 +12,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" placebo
cd placebo
git submodule update --init --recursive
default_dl "$SELF"
to_df "RUN git -C \"$SELF\" submodule update --init --recursive"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/placebo
cd "$FFBUILD_DLDIR/$SELF"
mkdir build && cd build

View file

@ -8,12 +8,8 @@ ffbuild_enabled() {
return 0
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" x264
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/x264
cd "$FFBUILD_DLDIR/$SELF"
local myconf=(
--disable-cli

View file

@ -9,13 +9,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone "$SCRIPT_REPO" x265
cd x265
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/x265
cd "$FFBUILD_DLDIR/$SELF"
local common_config=(
-DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX"

View file

@ -12,13 +12,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git clone "$SCRIPT_REPO" xavs2
cd xavs2
git checkout "$SCRIPT_COMMIT"
to_df "RUN git clone \"$SCRIPT_REPO\" \"$SELF\""
to_df "RUN git -C \"$SELF\" checkout \"$SCRIPT_COMMIT\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/xavs2
cd "$FFBUILD_DLDIR/$SELF"
cd build/linux
local myconf=(

View file

@ -9,7 +9,7 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
retry-tool sh -c "rm -rf xvid && svn checkout --username 'anonymous' --password '' '${SCRIPT_REPO}@${SCRIPT_REV}' xvid"
to_df "RUN retry-tool sh -c \"rm -rf xvid && svn checkout --username 'anonymous' --password '' '${SCRIPT_REPO}@${SCRIPT_REV}' xvid\""
}
ffbuild_dockerbuild() {

View file

@ -8,13 +8,12 @@ ffbuild_enabled() {
}
ffbuild_dockerdl() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" zimg
cd zimg
git submodule update --init --recursive --depth=1
default_dl "$SELF"
to_df "RUN git -C \"$SELF\" submodule update --init --recursive --depth=1"
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/zimg
cd "$FFBUILD_DLDIR/$SELF"
./autogen.sh

View file

@ -8,15 +8,15 @@ ffbuild_enabled() {
}
ffbuild_dockerstage() {
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=\$FFBUILD_DLDIR,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/zvbi,dst=/patches run_stage /stage.sh"
to_df "RUN --mount=src=${SELF},dst=/stage.sh --mount=src=\$FFBUILD_DLDIR,dst=\$FFBUILD_DLDIR,from=${DL_IMAGE},rw --mount=src=patches/zvbi,dst=/patches SELF=\"$SELF\" run_stage /stage.sh"
}
ffbuild_dockerdl() {
retry-tool sh -c "rm -rf zvbi && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' zvbi"
to_df "RUN retry-tool sh -c \"rm -rf $SELF && svn checkout '${SCRIPT_REPO}@${SCRIPT_REV}' $SELF\""
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR"/zvbi
cd "$FFBUILD_DLDIR/$SELF"
for patch in /patches/*.patch; do
echo "Applying $patch"

View file

@ -22,10 +22,6 @@ ffbuild_dockerstage() {
return 0
}
ffbuild_dockerstage_dl() {
return 0
}
ffbuild_dockerlayer_dl() {
return 0
}

Some files were not shown because too many files have changed in this diff Show more