anchor.diff:  # bump: alpine /FROM alpine:([\d.]+)/ docker:alpine|^3
   # bump: alpine link "Release notes" https://alpinelinux.org/posts/Alpine-$LATEST-released.html
  -FROM alpine:3.16.2 AS builder
  -
  +FROM alpine:3.16.2 AS base
  +
  +FROM base AS download
  +WORKDIR /tmp
   RUN apk add --no-cache \
     coreutils \
     wget \
  -  rust cargo \
  +  git \
  +  tar
  +
  +FROM base AS builder
  +WORKDIR /tmp
  +RUN apk add --no-cache \
  +  coreutils \
     openssl-dev openssl-libs-static \
  -  ca-certificates \
     bash \
  -  tar \
     build-base \
     autoconf automake \
     libtool \
     diffutils \
     cmake meson ninja \
  -  git \
     yasm nasm \
     texinfo \
  -  jq \
  -  zlib-dev zlib-static \
  -  bzip2-dev bzip2-static \
  -  libxml2-dev \
  -  expat-dev expat-static \
  -  fontconfig-dev fontconfig-static \
  -  freetype freetype-dev freetype-static \
  -  graphite2-static \
  -  glib-static \
  -  tiff tiff-dev \
  -  libjpeg-turbo libjpeg-turbo-dev \
  -  libpng-dev libpng-static \
  -  giflib giflib-dev \
  -  harfbuzz-dev harfbuzz-static \
  -  fribidi-dev fribidi-static \
  -  brotli-dev brotli-static \
  -  soxr-dev soxr-static \
  -  tcl \
  -  numactl-dev \
  -  cunit cunit-dev \
  -  fftw-dev \
  -  libsamplerate-dev \
     xxd
  -
   # -O3 makes sure we compile with optimization. setting CFLAGS/CXXFLAGS seems to override
   # default automake cflags.
   # -static-libgcc is needed to make gcc not include gcc_s as "as-needed" shared library which
  
positive.code: RUN \
    wget $WGET_OPTS -O libmodplug.tar.gz "$LIBMODPLUG_URL" && \
    echo "$LIBMODPLUG_SHA256  libmodplug.tar.gz" | sha256sum --status -c - && \
    tar xf libmodplug.tar.gz && \
    cd libmodplug-* && ./configure --disable-shared --enable-static && \
    make -j$(nproc) install
  
  # bump: mp3lame /MP3LAME_VERSION=([\d.]+)/ svn:http://svn.code.sf.net/p/lame/svn|/^RELEASE__(.*)$/|/_/./|*
  # bump: mp3lame after ./hashupdate Dockerfile MP3LAME $LATEST
  # bump: mp3lame link "ChangeLog" http://svn.code.sf.net/p/lame/svn/trunk/lame/ChangeLog
  
negative.code:   ./multilib.sh && \
    make -C 8bit -j$(nproc) install
  
  FROM download AS xavs2_download
  # bump: xavs2 /XAVS2_VERSION=([\d.]+)/ https://github.com/pkuvcl/xavs2.git|^1
  # bump: xavs2 after ./hashupdate Dockerfile XAVS2 $LATEST
  # bump: xavs2 link "Release" https://github.com/pkuvcl/xavs2/releases/tag/$LATEST
  