freebsd-ports/games/starfighter/Makefile
Piotr Kubaj 2460b9c47b games/starfighter: fix build on GCC architectures
Set USE_CSTD=c99 to fix build issue when using base GCC:
gfx.c:922: error: 'for' loop initial declaration used outside C99 mode

PR:		240691
Approved by:	portmgr (blanket: build fix), linimon (mentor)
Differential Revision:	https://reviews.freebsd.org/D21722
2019-09-21 15:23:32 +00:00

43 lines
1,015 B
Makefile

# Created by: Alejandro Pulver <alejandro@varnet.biz>
# $FreeBSD$
PORTNAME= starfighter
PORTVERSION= 2.0.0.2
DISTVERSIONPREFIX= v
CATEGORIES= games
MASTER_SITES= SF/nemysisfreebsdp/${CATEGORIES}/${PORTNAME}/:icons
DISTFILES= ${PORTNAME}-icons${EXTRACT_SUFX}:icons
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= alfix86@gmail.com
COMMENT= Liberate the universe from the evil company WEAPCO
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING
USES= autoreconf dos2unix gnome iconv pkgconfig sdl
USE_CSTD= c99
USE_SDL= image2 mixer2 ttf2
USE_GITHUB= yes
GH_ACCOUNT= pr-starfighter
GNU_CONFIGURE= yes
DOS2UNIX_GLOB= *.txt
OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 16x16 32x32 48x48 64x64 72x72 96x96 128x128
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}_${s}.png \
${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
.endfor
.include <bsd.port.mk>