aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorshaun <shaun@FreeBSD.org>2006-12-15 10:12:57 +0800
committershaun <shaun@FreeBSD.org>2006-12-15 10:12:57 +0800
commit4ad9efa2baa381c5af478d26e87fbe9cdce2ce73 (patch)
treec68ebd9b9114ad3c0e63f15b2516ec9df5176157 /lang
parentbdd82f42337cb52d77eacfb80d6c926ef0178da8 (diff)
downloadfreebsd-ports-gnome-4ad9efa2baa381c5af478d26e87fbe9cdce2ce73.tar.gz
freebsd-ports-gnome-4ad9efa2baa381c5af478d26e87fbe9cdce2ce73.tar.zst
freebsd-ports-gnome-4ad9efa2baa381c5af478d26e87fbe9cdce2ce73.zip
- Fix build with GCC 4.x (by switching off -Werror). [1]
- Respect CXX and CXXFLAGS. PR: ports/106749 [1] Submitted by: Rene Ladan <r.c.ladan@gmail.com> (maintainer)
Diffstat (limited to 'lang')
-rw-r--r--lang/bf2c/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/bf2c/Makefile b/lang/bf2c/Makefile
index 61e274375931..b34752785ef3 100644
--- a/lang/bf2c/Makefile
+++ b/lang/bf2c/Makefile
@@ -16,6 +16,10 @@ COMMENT= Optimizing BrainF*ck to C compiler
USE_GMAKE=yes
+post-patch:
+ @${REINPLACE_CMD} -e 's,^CC=.*$$,CC=${CXX} ${CXXFLAGS:C/-Werror//g},' \
+ ${WRKSRC}/Makefile
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/bf2c ${PREFIX}/bin