aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc47
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2013-01-21 06:32:38 +0800
committergerald <gerald@FreeBSD.org>2013-01-21 06:32:38 +0800
commitce30e7fc4a526a469573c74257888827e479c032 (patch)
tree65848a3d9b0d1bbc9259d398210622c0d1b5c409 /lang/gcc47
parent671cb3e207d7050aa4ea62bb045c84ff6a4e0833 (diff)
downloadfreebsd-ports-gnome-ce30e7fc4a526a469573c74257888827e479c032.tar.gz
freebsd-ports-gnome-ce30e7fc4a526a469573c74257888827e479c032.tar.zst
freebsd-ports-gnome-ce30e7fc4a526a469573c74257888827e479c032.zip
Use the new lang/gcc-ecj45 port when building the Java frontend
instead of including a pre-built version of the Eclipse Java Compiler (ECJ) ourselves. [1] On the way, update to the 20130119 snapshot of GCC 4.7.3. PR: 175072 [1]
Diffstat (limited to 'lang/gcc47')
-rw-r--r--lang/gcc47/Makefile17
-rw-r--r--lang/gcc47/distinfo6
2 files changed, 8 insertions, 15 deletions
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index 58dc9fbf3eba..a6a00b1a03eb 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= gcc
-PORTVERSION= 4.7.3.20121208
+PORTVERSION= 4.7.3.20130119
CATEGORIES= lang java
MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING}
@@ -98,13 +98,12 @@ INFO+= gcc${SUFFIX}/libquadmath \
.endif
.if ${PORT_OPTIONS:MJAVA}
-ECJ_JAR= ecj-4.5.jar
-MASTER_SITES+= ${MASTER_SITE_SOURCEWARE:S|$|:ecj|}
-MASTER_SITE_SUBDIR+= java/:ecj
-DISTFILES+= ${ECJ_JAR}:ecj
-EXTRACT_ONLY= ${DISTFILES:S|${ECJ_JAR}:ecj||}
-BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
+ECJ_JAR= ${LOCALBASE}/share/java/ecj-4.5.jar
+BUILD_DEPENDS+= ${ECJ_JAR}:${PORTSDIR}/lang/gcc-ecj45 \
+ zip:${PORTSDIR}/archivers/zip
+RUN_DEPENDS+= ${ECJ_JAR}:${PORTSDIR}/lang/gcc-ecj45
EXTRA_PATCHES+= ${FILESDIR}/java-patch-hier
+CONFIGURE_ARGS+=--with-ecj-jar=${ECJ_JAR}
LANGUAGES:= ${LANGUAGES},java
MAN1+= aot-compile${SUFFIX}.1 \
gappletviewer${SUFFIX}.1 \
@@ -134,10 +133,6 @@ MAN3= ffi${SUFFIX}.3 \
INFO+= gcc${SUFFIX}/cp-tools \
gcc${SUFFIX}/gcj
PLIST_SUB+= JAVA=""
-
-# Prep the source tree for the GCJ build.
-post-patch::
- @${CP} ${DISTDIR}/${ECJ_JAR} ${SRCDIR}/ecj.jar
.else
CONFIGURE_ARGS+=--disable-libgcj
PLIST_SUB+= JAVA="@comment "
diff --git a/lang/gcc47/distinfo b/lang/gcc47/distinfo
index debd65f0a10a..b13043be91a9 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/distinfo
@@ -1,4 +1,2 @@
-SHA256 (gcc-4.7-20121208.tar.bz2) = 4ab4ffb1b601fd9e878adae4c41f46f311e06648b2be30109ea8a32c67d50b1b
-SIZE (gcc-4.7-20121208.tar.bz2) = 78906669
-SHA256 (ecj-4.5.jar) = 98fd128f1d374d9e42fd9d4836bdd249c6d511ebc6c0df17fbc1b9df96c3d781
-SIZE (ecj-4.5.jar) = 1470676
+SHA256 (gcc-4.7-20130119.tar.bz2) = 2998f93ee19835a33e32978cb5f2d3be715b8d7ba4164f298d3b050f928e4128
+SIZE (gcc-4.7-20130119.tar.bz2) = 78918084