2007-06-18 04:45:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.44 2007/06/18 02:45:31 schmonz Exp $
|
1999-04-05 21:48:59 +02:00
|
|
|
|
Update to GNU MP 4.2.1
Changes between GMP version 4.2 and 4.2.1
Bugs:
* Shared library numbers corrected.
* Broken support for 32-bit AIX fixed.
* Misc minor fixes.
Speedups:
* Exact division (mpz_divexact) now falls back to plain division for large
operands.
Features:
* Support for some new systems.
Changes between GMP version 4.1.4 and 4.2
Bugs:
* Minor bug fixes and code generalizations.
* Expanded and improved test suite.
Speedups:
* Many minor optimizations, too many to mention here.
* Division now always subquadratic.
* Computation of n-factorial much faster.
* Added basic x86-64 assembly code.
* Floating-point output is now subquadratic for all bases.
* FFT multiply code now about 25% faster.
* Toom3 multiply code faster.
Features:
* Much improved configure.
* Workarounds for many more compiler bugs.
* Temporary allocations are now made on the stack only if small.
* New systems supported: HPPA-2.0 gcc, IA-64 HP-UX, PowerPC-64 Darwin,
Sparc64 GNU/Linux.
* New i386 fat binaries, selecting optimised code at runtime (--enable-fat).
* New build option: --enable-profiling=instrument.
* New memory function: mp_get_memory_functions.
* New Mersenne Twister random numbers: gmp_randinit_mt, also now used for
gmp_randinit_default.
* New random functions: gmp_randinit_set, gmp_urandomb_ui, gmp_urandomm_ui.
* New integer functions: mpz_combit, mpz_rootrem.
* gmp_printf etc new type "M" for mp_limb_t.
* gmp_scanf and friends now accept C99 hex floats.
* Numeric input and output can now be in bases up to 62.
* Comparisons mpz_cmp_d, mpz_cmpabs_d, mpf_cmp_d recognise infinities.
* Conversions mpz_get_d, mpq_get_d, mpf_get_d truncate towards zero,
previously their behaviour was unspecified.
* Fixes for overflow issues with operands >= 2^31 bits.
Caveats:
* mpfr is gone, and will from now on be released only separately. Please see
www.mpfr.org.
2006-12-09 04:38:16 +01:00
|
|
|
DISTNAME= gmp-4.2.1
|
2004-08-18 14:41:32 +02:00
|
|
|
CATEGORIES= devel math
|
|
|
|
MASTER_SITES= ${MASTER_SITE_GNU:=gmp/}
|
|
|
|
EXTRACT_SUFX= .tar.bz2
|
1999-04-05 21:48:59 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2007-02-22 20:01:13 +01:00
|
|
|
HOMEPAGE= http://swox.com/gmp/
|
2004-08-18 14:41:32 +02:00
|
|
|
COMMENT= Library for arbitrary precision arithmetic
|
1999-04-05 21:48:59 +02:00
|
|
|
|
2004-01-19 14:15:52 +01:00
|
|
|
PKG_INSTALLATION_TYPES= overwrite pkgviews
|
|
|
|
|
2006-12-02 23:32:59 +01:00
|
|
|
USE_LANGUAGES= c c++ c99
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gm4
|
2004-02-12 10:00:29 +01:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2003-12-02 22:57:26 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-cxx --without-readline
|
2006-03-30 05:44:41 +02:00
|
|
|
INFO_FILES= # PLIST
|
1999-04-05 21:48:59 +02:00
|
|
|
|
2003-08-21 22:09:29 +02:00
|
|
|
TEST_TARGET= check
|
|
|
|
|
2004-12-18 16:43:19 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2006-10-22 21:49:07 +02:00
|
|
|
.if !empty(LOWER_OPSYS:Mirix5*) && !empty(ABI)
|
2004-12-18 16:43:19 +01:00
|
|
|
ABI= o32
|
|
|
|
.endif
|
|
|
|
|
2003-10-28 23:33:57 +01:00
|
|
|
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
|
|
|
|
# The configure script thinks gcc 2.95 for ARM is too buggy to use.
|
2004-02-01 02:43:28 +01:00
|
|
|
GCC_REQD+= 3.0
|
2003-10-28 23:33:57 +01:00
|
|
|
.endif
|
|
|
|
|
2007-06-18 04:45:31 +02:00
|
|
|
.if ${OPSYS} == "Darwin" && ${MACHINE_ARCH} == "i386"
|
|
|
|
# don't use x86 assembly (it doesn't build)
|
|
|
|
CONFIGURE_ENV+= MPN_PATH="generic"
|
|
|
|
.endif
|
|
|
|
|
1999-04-05 21:48:59 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|