25-gmp.sh 716 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #!/bin/bash
  2. SCRIPT_REPO="https://github.com/BtbN/gmplib.git"
  3. SCRIPT_COMMIT="a37099c122488caf8c0afa48f21b38d8b98e7ffc"
  4. ffbuild_enabled() {
  5. return 0
  6. }
  7. ffbuild_dockerbuild() {
  8. ./.bootstrap
  9. local myconf=(
  10. --prefix="$FFBUILD_PREFIX"
  11. --enable-maintainer-mode
  12. --disable-shared
  13. --enable-static
  14. --with-pic
  15. )
  16. if [[ $TARGET == win* || $TARGET == linux* ]]; then
  17. myconf+=(
  18. --host="$FFBUILD_TOOLCHAIN"
  19. )
  20. else
  21. echo "Unknown target"
  22. return -1
  23. fi
  24. ./configure "${myconf[@]}"
  25. make -j$(nproc)
  26. make install
  27. }
  28. ffbuild_configure() {
  29. echo --enable-gmp
  30. }
  31. ffbuild_unconfigure() {
  32. echo --disable-gmp
  33. }