talimat 858 B

1234567891011121314151617181920212223242526272829303132333435
  1. # Description: A free library for arbitrary precision arithmetic.
  2. # URL: http://gmplib.org/
  3. # Maintainers: Torb,Granlund and many more
  4. # Packagers: pierre at nutyx dot org, tnut at nutyx dot org
  5. name=gmp
  6. version=6.1.0
  7. release=1
  8. source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz)
  9. build()
  10. {
  11. cd gmp-$version
  12. case `uname -m` in
  13. i?86)
  14. ABI=32 ./configure --build=i686-pc-linux-gnu \
  15. --prefix=/usr --enable-cxx --libdir=/lib ;;
  16. *)
  17. ./configure --build=x86_64-unknown-linux-gnu \
  18. --prefix=/usr --enable-cxx --libdir=/lib ;;
  19. esac
  20. make
  21. # make check 2>&1 | tee gmp-check-log
  22. # awk '/tests passed/{total+=$2} ; END{print total}' gmp-check-log
  23. make DESTDIR=$PKG install
  24. rm -rf $PKG/usr/share/info/dir
  25. # Documentation
  26. #mkdir -p $PKG/usr/share/doc/gmp-${version}
  27. #cp doc/{isa_abi_headache,configuration} doc/*.html \
  28. #$PKG/usr/share/doc/gmp-${version}
  29. }