| @@ -1,24 +1,24 @@ | | | @@ -1,24 +1,24 @@ |
1 | # $NetBSD: Makefile,v 1.10 2012/10/03 21:56:18 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.11 2012/11/20 23:13:11 jperkin Exp $ |
2 | | | 2 | |
3 | GCC_PKGNAME= gcc47 | | 3 | GCC_PKGNAME= gcc47 |
4 | .include "version.mk" | | 4 | .include "version.mk" |
5 | | | 5 | |
6 | DISTNAME= gcc-${GCC_DIST_VERSION} | | 6 | DISTNAME= gcc-${GCC_DIST_VERSION} |
7 | PKGNAME= ${GCC_PKGNAME}-${GCC_DIST_VERSION} | | 7 | PKGNAME= ${GCC_PKGNAME}-${GCC_DIST_VERSION} |
8 | ## When bumping the PKGREVISION of this package the PKGREVISION of | | 8 | ## When bumping the PKGREVISION of this package the PKGREVISION of |
9 | ## lang/gcc47-libs needs to be bump to be at least 1 more than the | | 9 | ## lang/gcc47-libs needs to be bump to be at least 1 more than the |
10 | ## PKGREVISION of this package! | | 10 | ## PKGREVISION of this package! |
11 | PKGREVISION= 5 | | 11 | PKGREVISION= 6 |
12 | CATEGORIES= lang | | 12 | CATEGORIES= lang |
13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_DIST_VERSION}/} | | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC_DIST_VERSION}/} |
14 | EXTRACT_SUFX= .tar.bz2 | | 14 | EXTRACT_SUFX= .tar.bz2 |
15 | | | 15 | |
16 | MAINTAINER= sbd@NetBSD.org | | 16 | MAINTAINER= sbd@NetBSD.org |
17 | HOMEPAGE= http://gcc.gnu.org/ | | 17 | HOMEPAGE= http://gcc.gnu.org/ |
18 | COMMENT= The GNU Compiler Collection (GCC) - 4.7 Release Series | | 18 | COMMENT= The GNU Compiler Collection (GCC) - 4.7 Release Series |
19 | LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3 | | 19 | LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND gnu-lgpl-v3 |
20 | | | 20 | |
21 | DISTFILES= ${DEFAULT_DISTFILES} | | 21 | DISTFILES= ${DEFAULT_DISTFILES} |
22 | EXTRACT_ONLY= ${DEFAULT_DISTFILES} | | 22 | EXTRACT_ONLY= ${DEFAULT_DISTFILES} |
23 | | | 23 | |
24 | NOT_FOR_PLATFORM= Interix-*-* | | 24 | NOT_FOR_PLATFORM= Interix-*-* |
| @@ -84,27 +84,27 @@ CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/go | | | @@ -84,27 +84,27 @@ CONFIGURE_ENV+= OBJDUMP=/usr/sfw/bin/go |
84 | . endif | | 84 | . endif |
85 | . if exists(/usr/bin/ld) | | 85 | . if exists(/usr/bin/ld) |
86 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld | | 86 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/bin/ld |
87 | . else | | 87 | . else |
88 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld | | 88 | CONFIGURE_ARGS+= --without-gnu-ld --with-ld=/usr/ccs/bin/ld |
89 | . endif | | 89 | . endif |
90 | . if exists(/usr/sfw/bin/gas) | | 90 | . if exists(/usr/sfw/bin/gas) |
91 | CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas | | 91 | CONFIGURE_ARGS+= --with-gnu-as --with-as=/usr/sfw/bin/gas |
92 | . elif exists(/usr/ccs/bin/as) | | 92 | . elif exists(/usr/ccs/bin/as) |
93 | CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as | | 93 | CONFIGURE_ARGS+= --without-gnu-as --with-as=/usr/ccs/bin/as |
94 | . else | | 94 | . else |
95 | BUILDLINK_DEPMETHOD.binutils= full | | 95 | BUILDLINK_DEPMETHOD.binutils= full |
96 | . include "../../devel/binutils/buildlink3.mk" | | 96 | . include "../../devel/binutils/buildlink3.mk" |
97 | CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/gnu/bin/as | | 97 | CONFIGURE_ARGS+= --with-gnu-as --with-as=${PREFIX}/bin/gas |
98 | . endif | | 98 | . endif |
99 | .endif | | 99 | .endif |
100 | | | 100 | |
101 | pre-configure: | | 101 | pre-configure: |
102 | ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} | | 102 | ${RUN} cd ${WRKSRC} && ${MKDIR} ${OBJDIR} |
103 | | | 103 | |
104 | TEST_TARGET= -k check || ${TRUE} | | 104 | TEST_TARGET= -k check || ${TRUE} |
105 | pre-test: | | 105 | pre-test: |
106 | ${RUN} \ | | 106 | ${RUN} \ |
107 | if runtest --version >/dev/null 2>/dev/null ; then \ | | 107 | if runtest --version >/dev/null 2>/dev/null ; then \ |
108 | : ; \ | | 108 | : ; \ |
109 | else \ | | 109 | else \ |
110 | ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \ | | 110 | ${ECHO} "ERROR: Please install devel/dejagnu in order to run the test suite." ; \ |