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

45 lines
846 B
Bash
Raw Normal View History

#!/bin/bash
LILV_REPO="https://gitlab.com/lv2/lilv.git"
LILV_COMMIT="71a2ff5170caaa052814cce19b3de927d10d0e24"
ffbuild_enabled() {
# Still has missing dependencies
return -1
}
ffbuild_dockerstage() {
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
}
ffbuild_dockerbuild() {
git-mini-clone "$LILV_REPO" "$LILV_COMMIT" lilv
cd lilv
git submodule update --init --recursive --depth 1
local mywaf=(
--prefix="$FFBUILD_PREFIX"
--static
--no-shared
--no-bindings
--no-utils
--no-bash-completion
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
cd ..
rm -rf lilv
}
ffbuild_configure() {
echo --enable-lv2
}
ffbuild_unconfigure() {
echo --disable-lv2
}