| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.83 2017/04/22 07:01:07 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.84 2017/04/22 08:23:17 jperkin Exp $ |
2 | | | 2 | |
3 | DISTNAME= gmp-6.1.2 | | 3 | DISTNAME= gmp-6.1.2 |
4 | CATEGORIES= devel math | | 4 | CATEGORIES= devel math |
5 | MASTER_SITES= https://gmplib.org/download/gmp/ | | 5 | MASTER_SITES= https://gmplib.org/download/gmp/ |
6 | MASTER_SITES+= ${MASTER_SITE_GNU:=gmp/} | | 6 | MASTER_SITES+= ${MASTER_SITE_GNU:=gmp/} |
7 | # Use .tar.bz2 distfile so that no extra dependency on archivers/xz | | 7 | # Use .tar.bz2 distfile so that no extra dependency on archivers/xz |
8 | # is needed when building lang/gcc* with option gcc-inplace-math. | | 8 | # is needed when building lang/gcc* with option gcc-inplace-math. |
9 | EXTRACT_SUFX= .tar.bz2 | | 9 | EXTRACT_SUFX= .tar.bz2 |
10 | | | 10 | |
11 | MAINTAINER= pkgsrc-users@NetBSD.org | | 11 | MAINTAINER= pkgsrc-users@NetBSD.org |
12 | HOMEPAGE= http://gmplib.org/ | | 12 | HOMEPAGE= http://gmplib.org/ |
13 | COMMENT= Library for arbitrary precision arithmetic | | 13 | COMMENT= Library for arbitrary precision arithmetic |
14 | LICENSE= gnu-lgpl-v3 OR gnu-gpl-v2 | | 14 | LICENSE= gnu-lgpl-v3 OR gnu-gpl-v2 |
| @@ -37,28 +37,27 @@ CONFIGURE_ARGS+= --enable-cxx | | | @@ -37,28 +37,27 @@ CONFIGURE_ARGS+= --enable-cxx |
37 | PLIST.cxx= yes | | 37 | PLIST.cxx= yes |
38 | .endif | | 38 | .endif |
39 | | | 39 | |
40 | .if !empty(MACHINE_PLATFORM:MIRIX-5*) && !empty(ABI) | | 40 | .if !empty(MACHINE_PLATFORM:MIRIX-5*) && !empty(ABI) |
41 | ABI= o32 | | 41 | ABI= o32 |
42 | .endif | | 42 | .endif |
43 | | | 43 | |
44 | .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" | | 44 | .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" |
45 | # The configure script thinks gcc 2.95 for ARM is too buggy to use. | | 45 | # The configure script thinks gcc 2.95 for ARM is too buggy to use. |
46 | GCC_REQD+= 3.0 | | 46 | GCC_REQD+= 3.0 |
47 | .endif | | 47 | .endif |
48 | | | 48 | |
49 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" | | 49 | .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" |
50 | # XXX SunOS should work, but currently bombs in mpn/fat.c | | 50 | . if !empty(PKGSRC_COMPILER:Msunpro) |
51 | . if ${OPSYS} == "SunOS" || !empty(PKGSRC_COMPILER:Msunpro) | | | |
52 | # don't use x86 assembly (it doesn't build) | | 51 | # don't use x86 assembly (it doesn't build) |
53 | CONFIGURE_ENV+= MPN_PATH="generic" | | 52 | CONFIGURE_ENV+= MPN_PATH="generic" |
54 | . else | | 53 | . else |
55 | PKG_OPTIONS_VAR= PKG_OPTIONS.gmp | | 54 | PKG_OPTIONS_VAR= PKG_OPTIONS.gmp |
56 | PKG_SUPPORTED_OPTIONS= gmp-fat mmx simd | | 55 | PKG_SUPPORTED_OPTIONS= gmp-fat mmx simd |
57 | PKG_SUGGESTED_OPTIONS= gmp-fat | | 56 | PKG_SUGGESTED_OPTIONS= gmp-fat |
58 | . include "../../mk/bsd.options.mk" | | 57 | . include "../../mk/bsd.options.mk" |
59 | ### | | 58 | ### |
60 | ### Support for a "fat" binary on i386, with CPU autodetection. | | 59 | ### Support for a "fat" binary on i386, with CPU autodetection. |
61 | ### | | 60 | ### |
62 | ### XXX Currently, the 'mmx' and 'simd' options imply the same thing, | | 61 | ### XXX Currently, the 'mmx' and 'simd' options imply the same thing, |
63 | ### as cpu detection is done at runtime. Is there a more elegant | | 62 | ### as cpu detection is done at runtime. Is there a more elegant |
64 | ### way to handle this? | | 63 | ### way to handle this? |