Add missing lilv/lv2 dependencies and enable build

Closes #52
This commit is contained in:
BtbN 2021-03-14 20:06:25 +01:00
parent 791b9eade1
commit 8e7b58f924
5 changed files with 112 additions and 5 deletions

View file

@ -1,7 +1,7 @@
#!/bin/bash
LV2_REPO="https://gitlab.com/lv2/lv2.git"
LV2_COMMIT="ba34a58b32839491335b5bcbda46e11c4b209cbc"
LV2_REPO="https://github.com/lv2/lv2.git"
LV2_COMMIT="611759daacc377a2dba97723097338fceffd6ef8"
ffbuild_enabled() {
return 0

37
scripts.d/45-serd.sh Executable file
View file

@ -0,0 +1,37 @@
#!/bin/bash
SERD_REPO="https://github.com/drobilla/serd.git"
SERD_COMMIT="36f1cecc1fdb803bf04d2ab60bd13dd257a9e525"
ffbuild_enabled() {
return 0
}
ffbuild_dockerstage() {
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
}
ffbuild_dockerbuild() {
git-mini-clone "$SERD_REPO" "$SERD_COMMIT" serd
cd serd
git submodule update --init --recursive --depth 1
local mywaf=(
--prefix="$FFBUILD_PREFIX"
--no-utils
--static
--no-shared
--largefile
--stack-check
)
CC="${FFBUILD_CROSS_PREFIX}gcc" CXX="${FFBUILD_CROSS_PREFIX}g++" ./waf configure "${mywaf[@]}"
./waf -j$(nproc)
./waf install
sed -i 's/Cflags:/Cflags: -DSERD_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/serd-0.pc
cd ..
rm -rf serd
}

35
scripts.d/46-sord.sh Executable file
View file

@ -0,0 +1,35 @@
#!/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
cd ..
rm -rf sord
}

34
scripts.d/47-sratom.sh Executable file
View file

@ -0,0 +1,34 @@
#!/bin/bash
SRATOM_REPO="https://github.com/lv2/sratom.git"
SRATOM_COMMIT="c46452c83d442de137fa6470ba544e3ba142e923"
ffbuild_enabled() {
return 0
}
ffbuild_dockerstage() {
to_df "ADD $SELF /stage.sh"
to_df "RUN run_stage"
}
ffbuild_dockerbuild() {
git-mini-clone "$SRATOM_REPO" "$SRATOM_COMMIT" sratom
cd sratom
git submodule update --init --recursive --depth 1
local mywaf=(
--prefix="$FFBUILD_PREFIX"
--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: -DSRATOM_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/sratom-0.pc
cd ..
rm -rf sratom
}

View file

@ -1,11 +1,10 @@
#!/bin/bash
LILV_REPO="https://gitlab.com/lv2/lilv.git"
LILV_REPO="https://github.com/lv2/lilv.git"
LILV_COMMIT="71a2ff5170caaa052814cce19b3de927d10d0e24"
ffbuild_enabled() {
# Still has missing dependencies
return -1
return 0
}
ffbuild_dockerstage() {
@ -31,6 +30,8 @@ ffbuild_dockerbuild() {
./waf -j$(nproc)
./waf install
sed -i 's/Cflags:/Cflags: -DLILV_STATIC/' "$FFBUILD_PREFIX"/lib/pkgconfig/lilv-0.pc
cd ..
rm -rf lilv
}