Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2014 17:44:40 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r366655 - head/www/tokyopromenade
Message-ID:  <201408301744.s7UHieFQ058815@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adamw
Date: Sat Aug 30 17:44:39 2014
New Revision: 366655
URL: http://svnweb.freebsd.org/changeset/ports/366655
QAT: https://qat.redports.org/buildarchive/r366655/

Log:
  Fix build with gcc. While here, stop clobbering CFLAGS.

Modified:
  head/www/tokyopromenade/Makefile

Modified: head/www/tokyopromenade/Makefile
==============================================================================
--- head/www/tokyopromenade/Makefile	Sat Aug 30 17:31:12 2014	(r366654)
+++ head/www/tokyopromenade/Makefile	Sat Aug 30 17:44:39 2014	(r366655)
@@ -19,8 +19,7 @@ OPTIONS_DEFINE=	LUA
 
 CONFIGURE_ARGS=	--enable-fcgi
 GNU_CONFIGURE=	yes
-USES=		gmake lua
-CFLAGS=		-Wno-incompatible-pointer-types-discards-qualifiers
+USES=		gmake lua compiler
 
 SUB_FILES=	pkg-message
 
@@ -28,7 +27,13 @@ LUA_CONFIGURE_ENABLE+=	lua
 LUA_LDFLAGS+=	-L${LUA_LIBDIR}
 LUA_CFLAGS+=	-I${LUA_INCDIR}
 
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == "clang"
+CFLAGS+=		-Wno-incompatible-pointer-types-discards-qualifiers
+.endif
+
 post-patch:
 	${REINPLACE_CMD} -e "s/llua/llua-${LUA_VER}/g" ${WRKSRC}/configure
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408301744.s7UHieFQ058815>