2023-08-17 18:33:19 +02:00

44 lines
747 B
Bash
Executable File

#!/bin/bash
SCRIPT_REPO="https://github.com/BtbN/gmplib.git"
SCRIPT_COMMIT="d8c52e7b0ee334ab52406972d26b06cca1a78d46"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
cd "$FFBUILD_DLDIR/$SELF"
./.bootstrap
local myconf=(
--prefix="$FFBUILD_PREFIX"
--enable-maintainer-mode
--disable-shared
--enable-static
--with-pic
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
}
ffbuild_configure() {
echo --enable-gmp
}
ffbuild_unconfigure() {
echo --disable-gmp
}