Add new lilv dep

This commit is contained in:
BtbN 2022-12-02 21:02:37 +01:00
parent 8dac144f1c
commit 6eab5153f5

38
scripts.d/50-lilv/96-zix.sh Executable file
View file

@ -0,0 +1,38 @@
#!/bin/bash
SCRIPT_REPO="https://github.com/drobilla/zix.git"
SCRIPT_COMMIT="577356481bbcb12468bcf669ef7107dfb057b833"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
git-mini-clone "$SCRIPT_REPO" "$SCRIPT_COMMIT" zix
cd zix
mkdir build && cd build
local myconf=(
--prefix="$FFBUILD_PREFIX"
--buildtype=release
--default-library=static
-Ddocs=disabled
-Dbenchmarks=disabled
-Dtests=disabled
-Dtests_cpp=disabled
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--cross-file=/cross.meson
)
else
echo "Unknown target"
return -1
fi
meson "${myconf[@]}" ..
ninja -j"$(nproc)"
ninja install
}