diff options
author | adamw <adamw@FreeBSD.org> | 2014-08-31 01:44:39 +0800 |
---|---|---|
committer | adamw <adamw@FreeBSD.org> | 2014-08-31 01:44:39 +0800 |
commit | be657189f0c44ad31a42851c14d004f2c2786c0d (patch) | |
tree | 6631f4079617a6bb1667eb15f2a27e06990dd42b /www | |
parent | dfd6c234227d1165bcfd0dc4aefec27c165379cc (diff) | |
download | freebsd-ports-gnome-be657189f0c44ad31a42851c14d004f2c2786c0d.tar.gz freebsd-ports-gnome-be657189f0c44ad31a42851c14d004f2c2786c0d.tar.zst freebsd-ports-gnome-be657189f0c44ad31a42851c14d004f2c2786c0d.zip |
Fix build with gcc. While here, stop clobbering CFLAGS.
Diffstat (limited to 'www')
-rw-r--r-- | www/tokyopromenade/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/www/tokyopromenade/Makefile b/www/tokyopromenade/Makefile index c6c06ff69a5f..28dcbd8db34f 100644 --- a/www/tokyopromenade/Makefile +++ b/www/tokyopromenade/Makefile @@ -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> |