freebsd-ports/games/frozen-bubble/Makefile
John Marino e2c4d75159 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.
2015-09-22 17:12:50 +00:00

43 lines
1.3 KiB
Makefile

# Created by: Klaus Goger <klaus.goger@reflex.at>
# $FreeBSD$
PORTNAME= frozen-bubble
DISTVERSION= 2.2.1-beta1
PORTREVISION= 6
CATEGORIES= games
MASTER_SITES= http://www.frozen-bubble.org/data/
MAINTAINER= makc@FreeBSD.org
COMMENT= Throw colourful bubbles to build groups and destroy the groups
LICENSE= GPLv2
BUILD_DEPENDS:= ${RUN_DEPENDS} \
p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp
RUN_DEPENDS= p5-SDL>=2.511:${PORTSDIR}/devel/p5-SDL \
p5-Locale-gettext>=0:${PORTSDIR}/devel/p5-Locale-gettext \
p5-IPC-System-Simple>=0:${PORTSDIR}/devel/p5-IPC-System-Simple \
p5-Locale-Maketext-Simple>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Simple \
p5-Locale-Maketext-Lexicon>=0:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
p5-Compress-Bzip2>=0:${PORTSDIR}/archivers/p5-Compress-Bzip2 \
p5-Alien-SDL>=1.413:${PORTSDIR}/devel/p5-Alien-SDL
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" \
"${PORTNAME}" "ArcadeGame;Game;" true
post-install:
${INSTALL_DATA} ${WRKSRC}/share/icons/frozen-bubble-icon-64x64.png \
${STAGEDIR}${PREFIX}/share/pixmaps/frozen-bubble.png
.include <bsd.port.post.mk>