| @@ -1,24 +1,24 @@ | | | @@ -1,24 +1,24 @@ |
1 | # $NetBSD: Makefile,v 1.6 2013/04/21 09:05:01 sbd Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2013/04/21 09:09:06 sbd Exp $ |
2 | | | 2 | |
3 | GCC_PKGNAME= gcc48 | | 3 | GCC_PKGNAME= gcc48 |
4 | .include "version.mk" | | 4 | .include "version.mk" |
5 | | | 5 | |
6 | DISTNAME= gcc-${GCC48_DIST_VERSION} | | 6 | DISTNAME= gcc-${GCC48_DIST_VERSION} |
7 | PKGNAME= ${GCC_PKGNAME}-${GCC48_DIST_VERSION} | | 7 | PKGNAME= ${GCC_PKGNAME}-${GCC48_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/gcc48-libs needs to be bump to be at least 1 more than the | | 9 | ## lang/gcc48-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= 0 | | 11 | PKGREVISION= 1 |
12 | CATEGORIES= lang | | 12 | CATEGORIES= lang |
13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC48_DIST_VERSION}/} | | 13 | MASTER_SITES= ${MASTER_SITE_GNU:=gcc/gcc-${GCC48_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.8 Release Series | | 18 | COMMENT= The GNU Compiler Collection (GCC) - 4.8 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-*-* |
| @@ -29,26 +29,32 @@ USE_TOOLS+= gmake makeinfo sed:run | | | @@ -29,26 +29,32 @@ USE_TOOLS+= gmake makeinfo sed:run |
29 | GNU_CONFIGURE= yes | | 29 | GNU_CONFIGURE= yes |
30 | ## Build outside ${WRKSRC} | | 30 | ## Build outside ${WRKSRC} |
31 | OBJDIR= ../build | | 31 | OBJDIR= ../build |
32 | CONFIGURE_DIRS= ${OBJDIR} | | 32 | CONFIGURE_DIRS= ${OBJDIR} |
33 | CONFIGURE_SCRIPT= ../${DISTNAME}/configure | | 33 | CONFIGURE_SCRIPT= ../${DISTNAME}/configure |
34 | GCC_SUBPREFIX= ${GCC_PKGNAME} | | 34 | GCC_SUBPREFIX= ${GCC_PKGNAME} |
35 | GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} | | 35 | GCC_PREFIX= ${PREFIX}/${GCC_SUBPREFIX} |
36 | GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} | | 36 | GNU_CONFIGURE_PREFIX= ${GCC_PREFIX} |
37 | INFO_FILES= yes | | 37 | INFO_FILES= yes |
38 | | | 38 | |
39 | UNLIMIT_RESOURCES+= datasize | | 39 | UNLIMIT_RESOURCES+= datasize |
40 | UNLIMIT_RESOURCES+= stacksize | | 40 | UNLIMIT_RESOURCES+= stacksize |
41 | | | 41 | |
| | | 42 | SUBST_CLASSES+= vars |
| | | 43 | SUBST_MESSAGE.vars= Setting target machine name path in ${SUBST_FILES.vars} |
| | | 44 | SUBST_STAGE.vars= pre-configure |
| | | 45 | SUBST_FILES.vars= gcc/Makefile.in |
| | | 46 | SUBST_VARS.vars= GCC_TARGET_MACHINE |
| | | 47 | |
42 | .include "../../mk/bsd.prefs.mk" | | 48 | .include "../../mk/bsd.prefs.mk" |
43 | | | 49 | |
44 | LANGS= c | | 50 | LANGS= c |
45 | | | 51 | |
46 | # In some cases LINKER_RPATH_FLAG needs a trailing space. | | 52 | # In some cases LINKER_RPATH_FLAG needs a trailing space. |
47 | LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} | | 53 | LINKER_RPATH_FLAG:= ${LINKER_RPATH_FLAG:S/-rpath/& /} |
48 | | | 54 | |
49 | ## The Library rpath to use in end programs. | | 55 | ## The Library rpath to use in end programs. |
50 | LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} | | 56 | LDFLAGS_FOR_TARGET= ${LDFLAGS:M${COMPILER_RPATH_FLAG}*:N*/usr/lib*} |
51 | | | 57 | |
52 | # The "-static-libstdc++ -static-libgcc" flags are normally added to the | | 58 | # The "-static-libstdc++ -static-libgcc" flags are normally added to the |
53 | # boot-ldflags by configure but because we are supply the boot-ldflags | | 59 | # boot-ldflags by configure but because we are supply the boot-ldflags |
54 | # we mash supply them. | | 60 | # we mash supply them. |