2021-03-14 19:06:25 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SERD_REPO="https://github.com/drobilla/serd.git"
|
2021-07-12 14:29:31 +00:00
|
|
|
SERD_COMMIT="c05fdaa19be53ef618435d3629122a4ebdc7cb63"
|
2021-03-14 19:06:25 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|