Lines 13-19
Link Here
|
13 |
PORTVERSION= 3.2.2 |
13 |
PORTVERSION= 3.2.2 |
14 |
PORTREVISION= ${SNAPVER} |
14 |
PORTREVISION= ${SNAPVER} |
15 |
CATEGORIES= lang java |
15 |
CATEGORIES= lang java |
16 |
MASTER_SITES= ${MASTER_SITE_GCC} |
16 |
MASTER_SITES= ${MASTER_SITE_GCC} \ |
|
|
17 |
http://web.inter.NL.net/hcc/Haj.Ten.Brugge/:bgcc |
17 |
MASTER_SITE_SUBDIR= releases/gcc-${PORTVERSION} |
18 |
MASTER_SITE_SUBDIR= releases/gcc-${PORTVERSION} |
18 |
DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \ |
19 |
DISTFILES= gcc-core-${PORTVERSION}${EXTRACT_SUFX} \ |
19 |
gcc-g++-${PORTVERSION}${EXTRACT_SUFX} \ |
20 |
gcc-g++-${PORTVERSION}${EXTRACT_SUFX} \ |
Lines 21-26
Link Here
|
21 |
gcc-java-${PORTVERSION}${EXTRACT_SUFX} \ |
22 |
gcc-java-${PORTVERSION}${EXTRACT_SUFX} \ |
22 |
gcc-objc-${PORTVERSION}${EXTRACT_SUFX} |
23 |
gcc-objc-${PORTVERSION}${EXTRACT_SUFX} |
23 |
|
24 |
|
|
|
25 |
WITH_BOUNDSCHECKING= yes |
26 |
|
27 |
.if defined (WITH_BOUNDSCHECKING) |
28 |
# Fetch another file, but don't extract it. Also add another patchfile. |
29 |
BCCPATCH= bounds-checking-gcc-3.2.2-1.00.patch.bz2 |
30 |
DISTFILES+= ${BCCPATCH}:bgcc |
31 |
EXTRACT_ONLY= ${DISTFILES:S/${BCCPATCH}:bgcc//} |
32 |
EXTRA_PATCHES= ${FILESDIR}/opt.patch-gccbc-aa |
33 |
.endif |
34 |
|
24 |
#PATCH_SITES= ftp://relay.nuxi.com/obrien/ |
35 |
#PATCH_SITES= ftp://relay.nuxi.com/obrien/ |
25 |
#PATCHFILES= port_gcc32_${SNAPDATE}.diff |
36 |
#PATCHFILES= port_gcc32_${SNAPDATE}.diff |
26 |
|
37 |
|
Lines 35-41
Link Here
|
35 |
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure |
46 |
CONFIGURE_SCRIPT= ../${SRCDIR:C/${WRKDIR}//}/configure |
36 |
# do not require GCC 3.2 to compile -- or we have an infinate loop on RELENG_4. |
47 |
# do not require GCC 3.2 to compile -- or we have an infinate loop on RELENG_4. |
37 |
USE_GCC= X |
48 |
USE_GCC= X |
38 |
NOMANCOMPRESS= yes # to hard to deal with differences on 5-cur and releng4 |
49 |
NOMANCOMPRESS= yes # too hard to deal with differences on 5-cur and releng4 |
39 |
|
50 |
|
40 |
.include <bsd.port.pre.mk> |
51 |
.include <bsd.port.pre.mk> |
41 |
|
52 |
|
Lines 78-83
Link Here
|
78 |
|
89 |
|
79 |
pre-fetch: |
90 |
pre-fetch: |
80 |
@${ECHO} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT} target ${CONFIGURE_TARGET}" |
91 |
@${ECHO} "Making GCC ${DISTNAME:S/^gcc-//} for ${OPSYS} ${OSREL} ${PORTOBJFORMAT} target ${CONFIGURE_TARGET}" |
|
|
92 |
.if !defined(WITH_BOUNDSCHECKING) |
93 |
@${ECHO_MSG} "You can enable fine-grained bounds-checking support for compiled C programs" |
94 |
@${ECHO_MSG} "by defining WITH_BOUNDSCHECKING. Compile and link with \"-fbounds-checking\"" |
95 |
@${ECHO_MSG} "to use." |
96 |
.endif |
81 |
|
97 |
|
82 |
.if defined(CVS_DATE) |
98 |
.if defined(CVS_DATE) |
83 |
DIST_SUBDIR= ${PKGNAME} |
99 |
DIST_SUBDIR= ${PKGNAME} |
Lines 109-114
Link Here
|
109 |
${MKDIR} ${SRCDIR} |
125 |
${MKDIR} ${SRCDIR} |
110 |
cd ${DISTDIR}/${DIST_SUBDIR}/gcc ; pax -pe -rwt . ${SRCDIR} |
126 |
cd ${DISTDIR}/${DIST_SUBDIR}/gcc ; pax -pe -rwt . ${SRCDIR} |
111 |
.endif # CVS_DATE |
127 |
.endif # CVS_DATE |
|
|
128 |
|
129 |
.if defined(WITH_BOUNDSCHECKING) |
130 |
# Extract bounds-checking patch, removing the ada parts of the patch with sed. |
131 |
pre-patch: |
132 |
( cd ${_DISTDIR} && \ |
133 |
${BZCAT} ${BCCPATCH} | \ |
134 |
${SED} -e '/^--- .*ada/,/^diff/d' | \ |
135 |
${PATCH} -d ${PATCH_WRKSRC} -E -p1 --quiet \ |
136 |
) |
137 |
.endif |
112 |
|
138 |
|
113 |
pre-configure: |
139 |
pre-configure: |
114 |
@# Keep from running `autoconf' and `autoheader' since we modified |
140 |
@# Keep from running `autoconf' and `autoheader' since we modified |