freebsd-ports/games/xsc/Makefile
Tobias Kortkamp 37a5ca7ea4 games/xsc: Fix build with Clang 6
buzzer.C:36:8: error: non-constant-expression cannot be narrowed from type 'double' to 'float' in initializer list [-Wc++11-narrowing]
    {  COS00 / 2.0, -SIN00 / 2.0 }, { -COS00 / 2.0,  SIN00 / 2.0 },
       ^~~~~~~~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/xsc-1.6_1.log

- While here also fix segfault due to some uninitialized variables
2018-07-30 07:23:24 +00:00

39 lines
996 B
Makefile

# Created by: Mark Pulford <mark@kyne.com.au>
# $FreeBSD$
PORTNAME= xsc
PORTVERSION= 1.6
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://www.panix.com/~mbh/xsc/ \
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= Vector graphics space shoot'em up game
LICENSE= GPLv2
USES= compiler
USE_XORG= x11
GNU_CONFIGURE= yes
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
PORTDOCS= AUTHORS ChangeLog README
OPTIONS_DEFINE= DOCS
PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.png
DESKTOP_ENTRIES="Xsc" "" "${PORTNAME}" "${PORTNAME}" "Game;ArcadeGame;" ""
post-install:
${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>