aboutsummaryrefslogtreecommitdiffstats
path: root/devel/liboil
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-06-12 21:59:44 +0800
committerahze <ahze@FreeBSD.org>2006-06-12 21:59:44 +0800
commitc4a330a7eff55106097bd107c632d70aef0ca868 (patch)
tree3296f98cd0ea0532b96a3f5d0bc5fce68bad8f5f /devel/liboil
parent20eba4cc179ec2ada1c1f8cb388fedd0544ff092 (diff)
downloadfreebsd-ports-gnome-c4a330a7eff55106097bd107c632d70aef0ca868.tar.gz
freebsd-ports-gnome-c4a330a7eff55106097bd107c632d70aef0ca868.tar.zst
freebsd-ports-gnome-c4a330a7eff55106097bd107c632d70aef0ca868.zip
- Force use of gcc34 on 5.x to fix build due to a bug in the base gcc version.
Reported by: pointyhat via kris
Diffstat (limited to 'devel/liboil')
-rw-r--r--devel/liboil/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/devel/liboil/Makefile b/devel/liboil/Makefile
index 6846004e7419..8bd30d30fc06 100644
--- a/devel/liboil/Makefile
+++ b/devel/liboil/Makefile
@@ -19,9 +19,17 @@ USE_GNOME= glib20 gnomehack
GNU_CONFIGURE= yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS= --disable-gtk-doc
+CFLAGS+= -O2
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 600000
+#USE_GCC= 3.4
+BUILD_DEPENDS+= gcc34:${PORTSDIR}/lang/gcc34
+CC:= gcc34
+CXX:= g++34
+.endif
+
post-patch:
@${REINPLACE_CMD} -e 's|\\$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
${WRKSRC}/configure