2021-08-23 01:52:40 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
FREI0R_REPO="https://github.com/dyne/frei0r.git"
|
2022-02-26 23:37:15 +00:00
|
|
|
FREI0R_COMMIT="febd73874dab6be330398a3b55112451b36ee939"
|
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
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
git-mini-clone "$FREI0R_REPO" "$FREI0R_COMMIT" frei0r
|
|
|
|
cd frei0r
|
|
|
|
|
|
|
|
./autogen.sh
|
|
|
|
|
|
|
|
local myconf=(
|
|
|
|
--prefix="$FFBUILD_PREFIX"
|
|
|
|
--disable-shared
|
|
|
|
--enable-static
|
|
|
|
--with-pic
|
|
|
|
--enable-cpuflags
|
|
|
|
)
|
|
|
|
|
|
|
|
if [[ $TARGET == win* || $TARGET == linux* ]]; then
|
|
|
|
myconf+=(
|
|
|
|
--host="$FFBUILD_TOOLCHAIN"
|
|
|
|
)
|
|
|
|
else
|
|
|
|
echo "Unknown target"
|
|
|
|
return -1
|
|
|
|
fi
|
|
|
|
|
|
|
|
./configure "${myconf[@]}"
|
|
|
|
make -C include -j$(nproc)
|
|
|
|
make -C include install
|
|
|
|
make install-pkgconfigDATA
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_configure() {
|
|
|
|
echo --enable-frei0r
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_unconfigure() {
|
|
|
|
echo --disable-frei0r
|
|
|
|
}
|