aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc47
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2017-09-24 03:23:16 +0800
committergerald <gerald@FreeBSD.org>2017-09-24 03:23:16 +0800
commitfb0d8de84898f033b2fbb80f152db666adbd6f77 (patch)
tree97b6f1a8f47136211951d3a1c4035cf3f11bf1c2 /lang/gcc47
parent9b6f8b16b7b68ec7cad617813791b6af65fcad6d (diff)
downloadfreebsd-ports-gnome-fb0d8de84898f033b2fbb80f152db666adbd6f77.tar.gz
freebsd-ports-gnome-fb0d8de84898f033b2fbb80f152db666adbd6f77.tar.zst
freebsd-ports-gnome-fb0d8de84898f033b2fbb80f152db666adbd6f77.zip
Backport several cleanups and one real fix from lang/gcc5:
- Move ONLY_FOR_ARCHS into the right position of the Makefile. - Omit a comment describing GCC_VERSION and SUFFIX. - Do not quote constant strings compared with ${ARCH}. [1] - Last, but not least the only functional change (and an important one at that): Remove headers being created by GCC's fixincludes machinery from the installation / packaging to avoid breakage when FreeBSD's headers are changing afterwards. - On the way, add a TIMESTAMP to distinfo. PR: 221905 [1] Submitted by: linimon [1]
Diffstat (limited to 'lang/gcc47')
-rw-r--r--lang/gcc47/Makefile10
-rw-r--r--lang/gcc47/distinfo1
2 files changed, 6 insertions, 5 deletions
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index de0e2e3b224e..0369f285498a 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/Makefile
@@ -3,7 +3,7 @@
PORTNAME= gcc
PORTVERSION= 4.7.4
-PORTREVISION= 5
+PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= lang
MASTER_SITES= GCC/releases/gcc-${PORTVERSION}
@@ -15,6 +15,8 @@ COMMENT= GNU Compiler Collection 4.7
LICENSE= GPLv3 GPLv3RLE
LICENSE_COMB= multi
+ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64
+
LIB_DEPENDS= libgmp.so:math/gmp \
libmpfr.so:math/mpfr \
libmpc.so:math/mpc
@@ -27,11 +29,8 @@ BUILD_DEPENDS+= runtest:misc/dejagnu
CPE_VENDOR= gnu
-# GCC_VERSION and SUFFIX relate to names of executables and directories
-# once installed.
GCC_VERSION= ${PORTVERSION}
SUFFIX= ${PORTVERSION:C/([0-9]+).([0-9]+).*/\1\2/}
-ONLY_FOR_ARCHS= amd64 i386 powerpc sparc64
USES= cpe gmake iconv libtool makeinfo perl5 tar:bzip2
USE_BINUTILS= yes
USE_PERL5= build
@@ -42,7 +41,7 @@ BOOTSTRAP_DESC= Build using a full bootstrap
.include <bsd.port.pre.mk>
-.if ${ARCH} == "amd64"
+.if ${ARCH} == amd64
CONFIGURE_TARGET= x86_64-portbld-${OPSYS:tl}${OSREL}
.endif
@@ -107,6 +106,7 @@ full-regression-test: build
post-stage:
${RM} ${STAGEDIR}${PREFIX}/man/man7/*
+ ${RM} -r ${STAGEDIR}${TARGLIB}/gcc/*/${GCC_VERSION}/include-fixed/
# Add target libraries and include files to packaging list.
${RM} ${WRKDIR}/PLIST.lib
.for d in ${TARGLIB:S/^${PREFIX}\///} ${LIBEXEC:S/^${PREFIX}\///}
diff --git a/lang/gcc47/distinfo b/lang/gcc47/distinfo
index 1bcb0223baf5..a0278ee2d06a 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/distinfo
@@ -1,2 +1,3 @@
+TIMESTAMP = 1506192525
SHA256 (gcc-4.7.4.tar.bz2) = 92e61c6dc3a0a449e62d72a38185fda550168a86702dea07125ebd3ec3996282
SIZE (gcc-4.7.4.tar.bz2) = 82935453