1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/games/bomns/Makefile
Jan Beich 2e809b5518 games/bomns: unbreak build with Clang 6 (C++14 by default)
src/bomns.cpp:565:22: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
  SDL_Rect rcDest = {nX, nY, 15, 20};
                     ^~
src/bomns.cpp:565:22: note: insert an explicit cast to silence this issue
  SDL_Rect rcDest = {nX, nY, 15, 20};
                     ^~
                     static_cast<Sint16>( )
src/bomns.cpp:565:26: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
  SDL_Rect rcDest = {nX, nY, 15, 20};
                         ^~
src/bomns.cpp:565:26: note: insert an explicit cast to silence this issue
  SDL_Rect rcDest = {nX, nY, 15, 20};
                         ^~
                         static_cast<Sint16>( )

Reported by:	pkg-fallout
2018-01-20 17:47:39 +00:00

43 lines
886 B
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= bomns
PORTVERSION= 0.99.3
PORTREVISION= 2
CATEGORIES= games
MAINTAINER= ports@FreeBSD.org
COMMENT= Best old-school Deathmatch game ever (only for two players)
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libfreetype.so:print/freetype2
USE_GITHUB= yes
GH_ACCOUNT= keithfancher
GH_PROJECT= Bomns-for-Linux
GH_TAGNAME= 113be27
USES= cmake localbase
CMAKE_ARGS= -Wno-dev
USE_CXXSTD= gnu++98
USE_SDL= mixer sdl
USE_GNOME= gtk20
USE_CSTD= gnu89
INSTALLS_ICONS= yes
PORTDOCS= AUTHORS ChangeLog README
OPTIONS_DEFINE= DOCS
post-install:
${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>