aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc47
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2012-07-30 22:39:58 +0800
committergerald <gerald@FreeBSD.org>2012-07-30 22:39:58 +0800
commit57364644d420fe9bd699286bf462aeb200e5b3aa (patch)
treec06d6abca95e53092fddde99567449be771e179e /lang/gcc47
parentb3a3c6895e37915a62860ac7889d8625d52688f1 (diff)
downloadfreebsd-ports-gnome-57364644d420fe9bd699286bf462aeb200e5b3aa.tar.gz
freebsd-ports-gnome-57364644d420fe9bd699286bf462aeb200e5b3aa.tar.zst
freebsd-ports-gnome-57364644d420fe9bd699286bf462aeb200e5b3aa.zip
Convert to the new options framework.
On the way update to the 20120728 snapshot of GCC 4.7.2.
Diffstat (limited to 'lang/gcc47')
-rw-r--r--lang/gcc47/Makefile13
-rw-r--r--lang/gcc47/distinfo4
2 files changed, 8 insertions, 9 deletions
diff --git a/lang/gcc47/Makefile b/lang/gcc47/Makefile
index a765bf55aa2f..6896a1730e5d 100644
--- a/lang/gcc47/Makefile
+++ b/lang/gcc47/Makefile
@@ -7,7 +7,7 @@
#
PORTNAME= gcc
-PORTVERSION= 4.7.2.20120721
+PORTVERSION= 4.7.2.20120728
CATEGORIES= lang java
MASTER_SITES= ${MASTER_SITE_GCC}
MASTER_SITE_SUBDIR= snapshots/${VERSIONSTRING}
@@ -40,14 +40,13 @@ MAKE_JOBS_SAFE= yes
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure
-OPTIONS= JAVA "Enable the Java frontend (i386 and amd64 only)" on
+OPTIONS_DEFINE_i386= JAVA
+OPTIONS_DEFINE_amd64= JAVA
+OPTIONS_DEFAULT_i386= JAVA
+OPTIONS_DEFAULT_amd64= JAVA
.include <bsd.port.pre.mk>
-.if ${ARCH} != i386 && ${ARCH} != amd64
-WITHOUT_JAVA= yes
-.endif
-
.if ${ARCH} == "amd64"
CONFIGURE_TARGET= x86_64-portbld-freebsd${OSREL}
.else
@@ -99,7 +98,7 @@ INFO+= gcc${SUFFIX}/libquadmath \
gcc${SUFFIX}/libitm
.endif
-.if ! defined(WITHOUT_JAVA)
+.if ${PORT_OPTIONS:MJAVA}
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
EXTRA_PATCHES+= ${FILESDIR}/java-patch-hier
CONFIGURE_ARGS+=--enable-languages=c,c++,objc,fortran,java
diff --git a/lang/gcc47/distinfo b/lang/gcc47/distinfo
index 87f729ebaeab..99fc27d7c576 100644
--- a/lang/gcc47/distinfo
+++ b/lang/gcc47/distinfo
@@ -1,2 +1,2 @@
-SHA256 (gcc-4.7-20120721.tar.bz2) = 28381983f3b46c843bc3282700ca73f18f6479ae1f88c9c3c2ba2cc0141ba087
-SIZE (gcc-4.7-20120721.tar.bz2) = 78864123
+SHA256 (gcc-4.7-20120728.tar.bz2) = fa9a11c8b6d9b69b9597ef8dd0f59291202d261873df040443adae97ed8d21d6
+SIZE (gcc-4.7-20120728.tar.bz2) = 78858257