FFmpeg-Builds/scripts.d/46-sord.sh
2021-04-05 00:10:08 +02:00

32 lines
727 B
Bash
Executable file

#!/bin/bash
SORD_REPO="https://github.com/drobilla/sord.git"
SORD_COMMIT="d2efdb2d026216449599350b55c2c85c0d3efb89"
ffbuild_enabled() {
return 0
}
ffbuild_dockerstage() {
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
}
ffbuild_dockerbuild() {
git-mini-clone "$SORD_REPO" "$SORD_COMMIT" sord
cd sord
git submodule update --init --recursive --depth 1
local mywaf=(
--prefix="$FFBUILD_PREFIX"
--no-utils
--static
--no-shared
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
sed -i 's/Cflags:/Cflags: -DSORD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sord-0.pc
}