aboutsummaryrefslogtreecommitdiffstats
path: root/lang/phc
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2011-11-28 19:43:28 +0800
committermiwi <miwi@FreeBSD.org>2011-11-28 19:43:28 +0800
commitb15b9544499bc0082ab5321788d3b3c9a2f6cdbb (patch)
treeb2b87ae26e165599189c115cb65c478a34a8a84d /lang/phc
parent449155d5fd6c9b361793829696126220daa01ebe (diff)
downloadfreebsd-ports-gnome-b15b9544499bc0082ab5321788d3b3c9a2f6cdbb.tar.gz
freebsd-ports-gnome-b15b9544499bc0082ab5321788d3b3c9a2f6cdbb.tar.zst
freebsd-ports-gnome-b15b9544499bc0082ab5321788d3b3c9a2f6cdbb.zip
- Fix build with CLANG
PR: 162540 Submitted by: Jan Beich <jbeich@tormail.net> Approved by: maintainer timeout Feature safe: yes
Diffstat (limited to 'lang/phc')
-rw-r--r--lang/phc/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/lang/phc/Makefile b/lang/phc/Makefile
index 25694eccba69..5593fa78b8f4 100644
--- a/lang/phc/Makefile
+++ b/lang/phc/Makefile
@@ -16,5 +16,12 @@ COMMENT= A compiler for the PHP language
USE_GMAKE= yes
GNU_CONFIGURE= yes
+CFLAGS+= -fgnu89-inline
+
+post-patch: .SILENT
+ ${REINPLACE_CMD} 's/g++/$$CXX/' \
+ ${WRKSRC}/phc_compile_plugin.in
+ ${REINPLACE_CMD} 's/insert/this->&/' \
+ ${WRKSRC}/include/phc/lib/List.h
.include <bsd.port.mk>
n class='deletions'>-0/+90 * Add a patch from git to fix issues with gnome-2.25.rnoland2009-03-092-2/+1 * Add a patch to handle memory barriers on amd64 the same as linux.rnoland2009-03-032-1/+12 * Add a patch to deal with the hald/xorg startup race. With this patchrnoland2009-02-08