FFmpeg-Builds/scripts.d/50-lilv/96-serd.sh

30 lines
692 B
Bash
Raw Normal View History

#!/bin/bash
2022-07-12 15:54:12 +00:00
SCRIPT_REPO="https://github.com/drobilla/serd.git"
SCRIPT_COMMIT="272d7081257dc6d50c06b1b62e8c4baa5bf3b4b2"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
2022-07-12 15:54:12 +00:00
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" serd
cd serd
git submodule update --init --recursive --depth 1
local mywaf=(
--prefix="$FFBUILD_PREFIX"
--no-utils
--static
--no-shared
--largefile
--stack-check
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
sed -i 's/Cflags:/Cflags: -DSERD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/serd-0.pc
}