2021-02-19 17:48:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-03-14 19:06:25 +00:00
|
|
|
LILV_REPO="https://github.com/lv2/lilv.git"
|
2021-02-19 17:48:56 +00:00
|
|
|
LILV_COMMIT="71a2ff5170caaa052814cce19b3de927d10d0e24"
|
|
|
|
|
|
|
|
ffbuild_enabled() {
|
2021-03-14 19:06:25 +00:00
|
|
|
return 0
|
2021-02-19 17:48:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2021-03-14 19:06:25 +00:00
|
|
|
sed -i 's/Cflags:/Cflags: -DLILV_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/lilv-0.pc
|
2021-02-19 17:48:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-lv2
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-lv2
|
|
|
|
}
|