1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/games/warmux/Makefile
Tobias Kortkamp 4f6bece540 games/warmux: Fix build with Clang 6
interface/weapon_menu.cpp:394:12: error: cannot initialize return object of type 'Weapon *' with an rvalue of type 'bool'
    return false;
           ^~~~~

http://beefy12.nyi.freebsd.org/data/head-amd64-default/p475478_s336801/logs/errors/warmux-11.04.1_9.log

map/tile.cpp:676:30: error: non-constant-expression cannot be narrowed from type
      'uint' (aka 'unsigned int') to 'uint16_t' (aka 'unsigned short') in initializer
      list [-Wc++11-narrowing]
      SynchTileInfo info = { i, t->GetSynchsum() };
                             ^
2018-07-30 11:05:18 +00:00

53 lines
1.4 KiB
Makefile

# Created by: Anton Yudin <toha@FreeBSD.org>
# $FreeBSD$
PORTNAME= warmux
DISTVERSION= 11.04.1
PORTREVISION= 9
CATEGORIES= games
MASTER_SITES= http://download.gna.org/${PORTNAME}/ \
http://download.gna.org/${PORTNAME}/archive/
MAINTAINER= ports@FreeBSD.org
COMMENT= Turn-based artillery game with free software mascots
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libxml++-2.6.so:textproc/libxml++26 \
libcurl.so:ftp/curl
GNU_CONFIGURE= yes
CONFIGURE_ENV= cxx_present=yes
USES= compiler dos2unix gmake pkgconfig tar:bzip2
USE_SDL= sdl image mixer ttf gfx net
DOS2UNIX_GLOB= fixed_class.h
# build ignores CXXFLAGS
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
CFLAGS_clang= -Wno-c++11-narrowing
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION:R}
OPTIONS_DEFINE= FRIBIDI SERVER NLS DEBUG
OPTIONS_SUB= yes
DEBUG_CONFIGURE_ENABLE= debug logging
FRIBIDI_DESC= Enable bi-directional unicode support
FRIBIDI_LIB_DEPENDS= libfribidi.so:converters/fribidi
FRIBIDI_CONFIGURE_ENABLE= fribidi
NLS_USES= gettext localbase:ldflags
NLS_CONFIGURE_ENABLE= nls
SERVER_DESC= Enable dedicated server
SERVER_CONFIGURE_ENABLE= servers
post-patch:
${REINPLACE_CMD} -e "s,-Werror,," ${WRKSRC}/Makefile.in \
${WRKSRC}/src/Makefile.in ${WRKSRC}/configure
${REINPLACE_CMD} -e "s,warmux_files.desktop,," ${WRKSRC}/data/Makefile.in
${FIND} -d ${WRKSRC}/data/ -name "*.*~" -delete
.include <bsd.port.mk>