Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Sep 2015 17:12:51 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r397556 - head/games/frozen-bubble
Message-ID:  <201509221712.t8MHCpd2043932@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Tue Sep 22 17:12:50 2015
New Revision: 397556
URL: https://svnweb.freebsd.org/changeset/ports/397556

Log:
  games/frozen-bubble: Fix build on modern GCC
  
  The -Qunused-arguments flags is unique to clang and the last few
  releases of GCC will break if they don't recognize the flag.  Use
  compiler features to limit this cflag to clang.  Covered by GCC
  support blanket.

Modified:
  head/games/frozen-bubble/Makefile

Modified: head/games/frozen-bubble/Makefile
==============================================================================
--- head/games/frozen-bubble/Makefile	Tue Sep 22 16:50:10 2015	(r397555)
+++ head/games/frozen-bubble/Makefile	Tue Sep 22 17:12:50 2015	(r397556)
@@ -22,10 +22,15 @@ RUN_DEPENDS=	p5-SDL>=2.511:${PORTSDIR}/d
 		p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2 \
 		p5-Alien-SDL>=1.413:${PORTSDIR}/devel/p5-Alien-SDL
 
-USES=		perl5 pkgconfig tar:bzip2
+USES=		compiler:features perl5 pkgconfig tar:bzip2
 USE_PERL5=	modbuild
 USE_SDL=	mixer pango sdl ttf
+
+.include <bsd.port.pre.mk>
+
+.if ${CHOSEN_COMPILER_TYPE:Mclang}
 CFLAGS+=	-Qunused-arguments
+.endif
 
 DESKTOP_ENTRIES=	"Frozen Bubble" "" \
 			"${PREFIX}/share/pixmaps/frozen-bubble.png" \
@@ -35,4 +40,4 @@ post-install:
 	${INSTALL_DATA} ${WRKSRC}/share/icons/frozen-bubble-icon-64x64.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps/frozen-bubble.png
 
-.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?201509221712.t8MHCpd2043932>