2021-08-23 01:52:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-07-12 15:54:12 +00:00
|
|
|
SCRIPT_REPO="https://github.com/dyne/frei0r.git"
|
2023-06-21 11:43:28 +00:00
|
|
|
SCRIPT_COMMIT="c3f987c4cc8c1a7f6928e574f4cb272a7770ca6f"
|
2021-08-23 01:52:40 +00:00
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $VARIANT == lgpl* ]] && return -1
|
2021-09-22 13:08:28 +00:00
|
|
|
[[ $ADDINS_STR == *4.4* ]] && return -1
|
2021-08-23 01:52:40 +00:00
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2023-06-18 14:44:57 +00:00
|
|
|
ffbuild_dockerbuild() {
|
2023-06-18 19:25:50 +00:00
|
|
|
cd "$FFBUILD_DLDIR/$SELF"
|
2021-08-23 01:52:40 +00:00
|
|
|
|
2023-02-12 16:11:50 +00:00
|
|
|
mkdir build && cd build
|
|
|
|
|
|
|
|
cmake -DCMAKE_TOOLCHAIN_FILE="$FFBUILD_CMAKE_TOOLCHAIN" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="$FFBUILD_PREFIX" ..
|
|
|
|
|
|
|
|
mkdir -p "$FFBUILD_PREFIX"/lib/pkgconfig
|
|
|
|
cp frei0r.pc "$FFBUILD_PREFIX"/lib/pkgconfig
|
|
|
|
|
|
|
|
mkdir -p "$FFBUILD_PREFIX"/include
|
|
|
|
cp ../include/frei0r.h "$FFBUILD_PREFIX"/include
|
|
|
|
|
|
|
|
cat frei0r.pc
|
2021-08-23 01:52:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-frei0r
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-frei0r
|
|
|
|
}
|