pkgsrc/devel/gmp/Makefile

60 lines
1.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.48 2007/11/25 08:35:31 rillig Exp $
Update to version 4.2.2. Support DESTDIR installation. Add option to build a "fat" binary on (${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin"). This isn't enabled by default now, but it might be useful for build builds, as it uses cpuid at runtime to choose the most appropriate assembler code. Insofar as I can tell, no BUILDLINK_A[BP]I_DEPENDS bump is necessary. NOTE: Support for Darwin-*-i386 and Darwin-*-x86_64 has been improved, see below. Thus, I recommend that we test building the assembler code on Darwin at some point. Changes between GMP version 4.2.1 and 4.2.2: * License is now LGPL version 3. Bugs: * Shared library numbers corrected for libcxx. * Fixed serious bug in gmpxx.h where a=a+b*c would generate garbage. Note that this only affects C++ programs. * Fix crash in mpz_set_d for arguments with large negative exponent. * Fix 32-bit ABI bug with Itanium assembly for popcount and hamdist. * Fix assembly syntax problem for powerpc-ibm-aix with AIX native assembler. * Fix problems with x86 --enable-fat, where the compiler where told to generate code for the build machine, not plain i386 code as it should. * Improved recognition of powerpc systems wrt Altivec/VMX capability. * Misc minor fixes, mainly workarounds for compiler/assembler bugs. Speedups: * "Core 2" and Pentium 4 processors, running in 64-bit mode will get a slight boost as they are now specifically recognized. Features: * New support for x86_64-solaris * New, rudimentary support for x86-apple-darwin and x86_64-apple-darwin. (Please see http://gmplib.org/macos.html for more information.)
2007-10-30 02:36:59 +01:00
DISTNAME= gmp-4.2.2
CATEGORIES= devel math
MASTER_SITES= ${MASTER_SITE_GNU:=gmp/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://swox.com/gmp/
COMMENT= Library for arbitrary precision arithmetic
2007-11-07 01:18:17 +01:00
#LICENSE= gnu-lgpl-v3
Update to version 4.2.2. Support DESTDIR installation. Add option to build a "fat" binary on (${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin"). This isn't enabled by default now, but it might be useful for build builds, as it uses cpuid at runtime to choose the most appropriate assembler code. Insofar as I can tell, no BUILDLINK_A[BP]I_DEPENDS bump is necessary. NOTE: Support for Darwin-*-i386 and Darwin-*-x86_64 has been improved, see below. Thus, I recommend that we test building the assembler code on Darwin at some point. Changes between GMP version 4.2.1 and 4.2.2: * License is now LGPL version 3. Bugs: * Shared library numbers corrected for libcxx. * Fixed serious bug in gmpxx.h where a=a+b*c would generate garbage. Note that this only affects C++ programs. * Fix crash in mpz_set_d for arguments with large negative exponent. * Fix 32-bit ABI bug with Itanium assembly for popcount and hamdist. * Fix assembly syntax problem for powerpc-ibm-aix with AIX native assembler. * Fix problems with x86 --enable-fat, where the compiler where told to generate code for the build machine, not plain i386 code as it should. * Improved recognition of powerpc systems wrt Altivec/VMX capability. * Misc minor fixes, mainly workarounds for compiler/assembler bugs. Speedups: * "Core 2" and Pentium 4 processors, running in 64-bit mode will get a slight boost as they are now specifically recognized. Features: * New support for x86_64-solaris * New, rudimentary support for x86-apple-darwin and x86_64-apple-darwin. (Please see http://gmplib.org/macos.html for more information.)
2007-10-30 02:36:59 +01:00
PKG_DESTDIR_SUPPORT= user-destdir
2004-01-19 14:15:52 +01:00
PKG_INSTALLATION_TYPES= overwrite pkgviews
USE_LANGUAGES= c c++ c99
USE_TOOLS+= gm4 autoconf
USE_LIBTOOL= yes
GNU_CONFIGURE= yes
2003-12-02 22:57:26 +01:00
CONFIGURE_ARGS+= --enable-cxx --without-readline
INFO_FILES= # PLIST
2003-08-21 22:09:29 +02:00
TEST_TARGET= check
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "IRIX" && !empty(ABI)
ABI= o32
.endif
.if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32"
# The configure script thinks gcc 2.95 for ARM is too buggy to use.
GCC_REQD+= 3.0
.endif
Update to version 4.2.2. Support DESTDIR installation. Add option to build a "fat" binary on (${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin"). This isn't enabled by default now, but it might be useful for build builds, as it uses cpuid at runtime to choose the most appropriate assembler code. Insofar as I can tell, no BUILDLINK_A[BP]I_DEPENDS bump is necessary. NOTE: Support for Darwin-*-i386 and Darwin-*-x86_64 has been improved, see below. Thus, I recommend that we test building the assembler code on Darwin at some point. Changes between GMP version 4.2.1 and 4.2.2: * License is now LGPL version 3. Bugs: * Shared library numbers corrected for libcxx. * Fixed serious bug in gmpxx.h where a=a+b*c would generate garbage. Note that this only affects C++ programs. * Fix crash in mpz_set_d for arguments with large negative exponent. * Fix 32-bit ABI bug with Itanium assembly for popcount and hamdist. * Fix assembly syntax problem for powerpc-ibm-aix with AIX native assembler. * Fix problems with x86 --enable-fat, where the compiler where told to generate code for the build machine, not plain i386 code as it should. * Improved recognition of powerpc systems wrt Altivec/VMX capability. * Misc minor fixes, mainly workarounds for compiler/assembler bugs. Speedups: * "Core 2" and Pentium 4 processors, running in 64-bit mode will get a slight boost as they are now specifically recognized. Features: * New support for x86_64-solaris * New, rudimentary support for x86-apple-darwin and x86_64-apple-darwin. (Please see http://gmplib.org/macos.html for more information.)
2007-10-30 02:36:59 +01:00
.if ${MACHINE_ARCH} == "i386"
. if ${OPSYS} == "Darwin"
# don't use x86 assembly (it doesn't build)
CONFIGURE_ENV+= MPN_PATH="generic"
Update to version 4.2.2. Support DESTDIR installation. Add option to build a "fat" binary on (${MACHINE_ARCH} == "i386" && ${OPSYS} != "Darwin"). This isn't enabled by default now, but it might be useful for build builds, as it uses cpuid at runtime to choose the most appropriate assembler code. Insofar as I can tell, no BUILDLINK_A[BP]I_DEPENDS bump is necessary. NOTE: Support for Darwin-*-i386 and Darwin-*-x86_64 has been improved, see below. Thus, I recommend that we test building the assembler code on Darwin at some point. Changes between GMP version 4.2.1 and 4.2.2: * License is now LGPL version 3. Bugs: * Shared library numbers corrected for libcxx. * Fixed serious bug in gmpxx.h where a=a+b*c would generate garbage. Note that this only affects C++ programs. * Fix crash in mpz_set_d for arguments with large negative exponent. * Fix 32-bit ABI bug with Itanium assembly for popcount and hamdist. * Fix assembly syntax problem for powerpc-ibm-aix with AIX native assembler. * Fix problems with x86 --enable-fat, where the compiler where told to generate code for the build machine, not plain i386 code as it should. * Improved recognition of powerpc systems wrt Altivec/VMX capability. * Misc minor fixes, mainly workarounds for compiler/assembler bugs. Speedups: * "Core 2" and Pentium 4 processors, running in 64-bit mode will get a slight boost as they are now specifically recognized. Features: * New support for x86_64-solaris * New, rudimentary support for x86-apple-darwin and x86_64-apple-darwin. (Please see http://gmplib.org/macos.html for more information.)
2007-10-30 02:36:59 +01:00
. else
PKG_OPTIONS_VAR= PKG_OPTIONS.gmp
PKG_SUPPORTED_OPTIONS= gmp-fat
#PKG_SUGGESTED_OPTIONS= gmp-fat # XXX could be good for bulk builds (?)
. include "../../mk/bsd.options.mk"
###
### Support for a "fat" binary on i386. There's CPU autodetection,
### so we'll be safe and filter out -march/-mcpu, et. al.
###
. if !empty(PKG_OPTIONS:Mgmp-fat)
CONFIGURE_ARGS+= --enable-fat
BUILDLINK_TRANSFORM+= rm-optarg:-march rm-optarg:-mcpu
BUILDLINK_TRANSFORM+= rm:-mmmx rm:-msse rm:-msse2 rm:-msse3 rm:-m3dnow
. endif
. endif
.endif
pre-configure:
cd ${WRKSRC} && type autoconf && autoconf
.include "../../mk/bsd.pkg.mk"