From 6eab5153f5f3699ca44f2f58a993d571dfb09187 Mon Sep 17 00:00:00 2001 From: BtbN Date: Fri, 2 Dec 2022 21:02:37 +0100 Subject: [PATCH] Add new lilv dep --- scripts.d/50-lilv/96-zix.sh | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 scripts.d/50-lilv/96-zix.sh diff --git a/scripts.d/50-lilv/96-zix.sh b/scripts.d/50-lilv/96-zix.sh new file mode 100755 index 0000000..1de4508 --- /dev/null +++ b/scripts.d/50-lilv/96-zix.sh @@ -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 +}