123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #!/bin/bash
- SCRIPT_REPO="https://github.com/BtbN/gmplib.git"
- SCRIPT_COMMIT="a37099c122488caf8c0afa48f21b38d8b98e7ffc"
- ffbuild_enabled() {
- return 0
- }
- ffbuild_dockerbuild() {
- ./.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
- }
|