aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gcc5
diff options
context:
space:
mode:
authorgerald <gerald@FreeBSD.org>2015-11-21 06:19:24 +0800
committergerald <gerald@FreeBSD.org>2015-11-21 06:19:24 +0800
commit73aa813711fd345cb7b53bd76d0e22886e5e4fc4 (patch)
treed9d577721945d4f4e492c956125400e89f9af049 /lang/gcc5
parentc8e06967aa803b49db630c1379c162072450ac3e (diff)
downloadfreebsd-ports-gnome-73aa813711fd345cb7b53bd76d0e22886e5e4fc4.tar.gz
freebsd-ports-gnome-73aa813711fd345cb7b53bd76d0e22886e5e4fc4.tar.zst
freebsd-ports-gnome-73aa813711fd345cb7b53bd76d0e22886e5e4fc4.zip
Backport support for Graphite loop optimizations via a new option
GRAPHITE from gcc5-devel. This is off by default for the time being and pulls in devel/isl as an additional dependency.
Diffstat (limited to 'lang/gcc5')
-rw-r--r--lang/gcc5/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lang/gcc5/Makefile b/lang/gcc5/Makefile
index a06dd7606f72..96f9bd0c98d6 100644
--- a/lang/gcc5/Makefile
+++ b/lang/gcc5/Makefile
@@ -43,7 +43,7 @@ SSP_UNSAFE= yes
PATCH_WRKSRC= ${SRCDIR}
CONFIGURE_SCRIPT= ../${SRCDIR:S/${WRKDIR}\///}/configure
-OPTIONS_DEFINE= BOOTSTRAP
+OPTIONS_DEFINE= BOOTSTRAP GRAPHITE
OPTIONS_DEFINE_i386= JAVA
OPTIONS_DEFINE_amd64= JAVA
OPTIONS_DEFAULT= BOOTSTRAP
@@ -51,6 +51,7 @@ OPTIONS_DEFAULT_i386= JAVA
OPTIONS_DEFAULT_amd64= JAVA
OPTIONS_EXCLUDE_DragonFly= JAVA
BOOTSTRAP_DESC= Build using a full bootstrap
+GRAPHITE_DESC= Support for Graphite loop optimizations
.include <bsd.port.pre.mk>
@@ -118,6 +119,11 @@ INFO+= gcc${SUFFIX}/libquadmath \
SUB_FILES= pkg-message
SUB_LIST+= TARGLIB=${TARGLIB}
+.if ${PORT_OPTIONS:MGRAPHITE}
+LIB_DEPENDS+= libisl.so:${PORTSDIR}/devel/isl
+CONFIGURE_ARGS+=--with-isl=${LOCALBASE}
+.endif
+
.if ${PORT_OPTIONS:MJAVA}
ECJ_JAR= ${LOCALBASE}/share/java/ecj-4.5.jar
BUILD_DEPENDS+= ${ECJ_JAR}:${PORTSDIR}/lang/gcc-ecj45 \