1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/games/marsnomercy/Makefile
Tobias Kortkamp e445c59342 games/marsnomercy: Fix build with Clang 6
src/mars.cpp:423:29: error: non-constant-expression cannot be narrowed from type 'int' to 'Sint16' (aka 'short') in initializer list [-Wc++11-narrowing]
        SDL_Rect mm_limit_1024 = { (mm.GetW() - (mm_border_1024->GetW() - 2)) / 2, 0,
                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475044_s336572/logs/marsnomercy-0.2.1_12.log

- Add missing libpng dependency
2018-07-28 07:29:00 +00:00

60 lines
1.3 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
# $FreeBSD$
PORTNAME= marsnomercy
PORTVERSION= 0.2.1
PORTREVISION= 13
CATEGORIES= games
MASTER_SITES= SF/mars/mars/${PORTVERSION}
DISTNAME= mars-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= Turn-based strategy game setting on Mars
LICENSE= GPLv2 # version unspecified actually
BUILD_DEPENDS= scons:devel/scons
LIB_DEPENDS= libpng.so:graphics/png
USES= compiler
USE_GL= gl
USE_SDL= sdl image ttf
SCONS_ARGS= prefix=${PREFIX}
CXXFLAGS+= ${CXXFLAGS_${CHOSEN_COMPILER_TYPE}}
CXXFLAGS_clang= -Wno-c++11-narrowing
SUB_FILES= mars-nomercy pkg-message
WRKSRC= ${WRKDIR}/mars-${PORTVERSION}
PLIST_FILES= bin/mars-nomercy \
libexec/mars
PLIST_DIRS= %%DATADIR%%/img/units/mercenaries
PORTDATA= *
OPTIONS_DEFINE= DEBUG OPENGL
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MDEBUG}
SCONS_ARGS+= debug=1
.else
SCONS_ARGS+= debug=0
.endif
.if ${PORT_OPTIONS:MOPENGL}
SCONS_ARGS+= with_opengl=1
.else
SCONS_ARGS+= with_opengl=0
.endif
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS}
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/mars-nomercy ${STAGEDIR}${PREFIX}/bin/
${INSTALL_PROGRAM} ${WRKSRC}/mars ${STAGEDIR}${PREFIX}/libexec/mars
cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}
@${RM} ${STAGEDIR}${DATADIR}/SConscript
.include <bsd.port.mk>