summaryrefslogtreecommitdiff
path: root/lang/bf2c
diff options
context:
space:
mode:
authorShaun Amott <shaun@FreeBSD.org>2006-12-15 02:12:57 +0000
committerShaun Amott <shaun@FreeBSD.org>2006-12-15 02:12:57 +0000
commit29e1d827c82630d4e529d924336c1fb4e25594cd (patch)
treee3da2e5683ef442d21445acaa95d5b5043771ad9 /lang/bf2c
parentmake it compilable with gcc 4.1. (diff)
- 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)
Notes
Notes: svn path=/head/; revision=179817
Diffstat (limited to 'lang/bf2c')
-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