| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: Makefile,v 1.68 2013/02/12 09:15:36 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.69 2013/05/10 00:44:29 riastradh Exp $ |
2 | | | 2 | |
3 | DISTNAME= gmp-5.1.1 | | 3 | DISTNAME= gmp-5.1.1 |
4 | CATEGORIES= devel math | | 4 | CATEGORIES= devel math |
5 | MASTER_SITES= ftp://ftp.gmplib.org/pub/${DISTNAME}/ | | 5 | MASTER_SITES= ftp://ftp.gmplib.org/pub/${DISTNAME}/ |
6 | # Use .tar.bz2 distfile so that no extra dependency on archivers/xz | | 6 | # Use .tar.bz2 distfile so that no extra dependency on archivers/xz |
7 | # is needed when building lang/gcc* with option gcc-inplace-math. | | 7 | # is needed when building lang/gcc* with option gcc-inplace-math. |
8 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
9 | | | 9 | |
10 | MAINTAINER= pkgsrc-users@NetBSD.org | | 10 | MAINTAINER= pkgsrc-users@NetBSD.org |
11 | HOMEPAGE= http://gmplib.org/ | | 11 | HOMEPAGE= http://gmplib.org/ |
12 | COMMENT= Library for arbitrary precision arithmetic | | 12 | COMMENT= Library for arbitrary precision arithmetic |
13 | LICENSE= gnu-lgpl-v3 AND gnu-gpl-v3 | | 13 | LICENSE= gnu-lgpl-v3 AND gnu-gpl-v3 |
14 | | | 14 | |
| @@ -17,26 +17,30 @@ PKG_INSTALLATION_TYPES= overwrite pkgvie | | | @@ -17,26 +17,30 @@ PKG_INSTALLATION_TYPES= overwrite pkgvie |
17 | INFO_FILES= yes | | 17 | INFO_FILES= yes |
18 | USE_LANGUAGES= c c++ c99 | | 18 | USE_LANGUAGES= c c++ c99 |
19 | USE_LIBTOOL= yes | | 19 | USE_LIBTOOL= yes |
20 | USE_TOOLS+= gm4 autoconf makeinfo | | 20 | USE_TOOLS+= gm4 autoconf makeinfo |
21 | GNU_CONFIGURE= yes | | 21 | GNU_CONFIGURE= yes |
22 | CONFIGURE_ARGS+= --without-readline | | 22 | CONFIGURE_ARGS+= --without-readline |
23 | | | 23 | |
24 | TEST_TARGET= check | | 24 | TEST_TARGET= check |
25 | | | 25 | |
26 | PLIST_VARS+= cxx | | 26 | PLIST_VARS+= cxx |
27 | | | 27 | |
28 | .include "../../mk/bsd.prefs.mk" | | 28 | .include "../../mk/bsd.prefs.mk" |
29 | | | 29 | |
| | | 30 | .if !empty(USE_CROSS_COMPILE:M[yY][eE][sS]) |
| | | 31 | CONFIGURE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} |
| | | 32 | .endif |
| | | 33 | |
30 | .if empty(PKGSRC_COMPILER:Msunpro) | | 34 | .if empty(PKGSRC_COMPILER:Msunpro) |
31 | CONFIGURE_ARGS+= --enable-cxx | | 35 | CONFIGURE_ARGS+= --enable-cxx |
32 | PLIST.cxx= yes | | 36 | PLIST.cxx= yes |
33 | .endif | | 37 | .endif |
34 | | | 38 | |
35 | .if !empty(MACHINE_PLATFORM:MIRIX-5*) && !empty(ABI) | | 39 | .if !empty(MACHINE_PLATFORM:MIRIX-5*) && !empty(ABI) |
36 | ABI= o32 | | 40 | ABI= o32 |
37 | .endif | | 41 | .endif |
38 | | | 42 | |
39 | .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" | | 43 | .if ${MACHINE_ARCH} == "arm" || ${MACHINE_ARCH} == "arm32" |
40 | # The configure script thinks gcc 2.95 for ARM is too buggy to use. | | 44 | # The configure script thinks gcc 2.95 for ARM is too buggy to use. |
41 | GCC_REQD+= 3.0 | | 45 | GCC_REQD+= 3.0 |
42 | .endif | | 46 | .endif |