freebsd-ports/games/wesnoth/Makefile
John Marino 383cbff142 games/wesnoth: Revert version 1.13 => 1.12
This port is supposed to track stable releases.  Those end in even
numbers, e.g. 1.10, 1.12, 1.14.  The odd numbers are development
releases.  The upgrade to 1.13 was due to a misunderstanding about the
version numbering scheme.

PR:		200236
Submitted by:	maintainer (Torsten Zuehlsdorff)
2015-05-26 12:39:38 +00:00

80 lines
2.3 KiB
Makefile

# $FreeBSD$
PORTNAME= wesnoth
PORTVERSION= 1.12.2
PORTEPOCH= 1
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}/${PORTNAME}-${PORTVERSION} \
http://files.wesnoth.org/ \
http://ports.toco-domains.de/
MAINTAINER= ports@toco-domains.de
COMMENT= Fantasy turn-based strategy game
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
libboost_thread.so:${PORTSDIR}/devel/boost-libs \
libpng.so:${PORTSDIR}/graphics/png \
libfontconfig.so:${PORTSDIR}/x11-fonts/fontconfig
LDFLAGS+= -L${LOCALBASE}/lib -lboost_system
USE_SDL= image mixer net ttf
USE_GNOME= pango
USES= cmake cpe pkgconfig tar:bzip2
CPE_VENDOR= ${PORTNAME}
CPE_PRODUCT= battle_for_wesnoth
CMAKE_ARGS= -DMANDIR="man" -DENABLE_STRICT_COMPILATION=off
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= ANA CAMPAIGN DOCS FRIBIDI LOWMEM NLS \
NOTIFY OPENMP RAWSOCKETS SERVER TEST TOOLS
OPTIONS_DEFAULT= CAMPAIGN FRIBIDI NOTIFY SERVER TOOLS
OPTIONS_SUB= yes
ANA_DESC= Asynchronous Network API (WIP)
ANA_CMAKE_ON= -DUSE_ANA_NETWORK=on
CAMPAIGN_DESC= Campaign server
CAMPAIGN_CMAKE_ON=-DENABLE_CAMPAIGN_SERVER=on
DOCS_CMAKE_OFF= -DDOCDIR=none
FRIBIDI_DESC= Bidirectional support
FRIBIDI_LIB_DEPENDS=libfribidi.so:${PORTSDIR}/converters/fribidi
FRIBIDI_CMAKE_OFF=-DENABLE_FRIBIDI=off
LOWMEM_DESC= Reduce memory usage (disables animations)
LOWMEM_CMAKE_ON=-DENABLE_LOW_MEM=on
NLS_USES= gettext
NLS_CMAKE_ON= -DLOCALEDIR=${PREFIX}/share/locale
NLS_CMAKE_OFF= -DENABLE_NLS=off
NOTIFY_DESC= Desktop notifications
NOTIFY_LIB_DEPENDS=libdbus-1.so:${PORTSDIR}/devel/dbus
NOTIFY_CMAKE_OFF=-DENABLE_NOTIFICATIONS=off
OPENMP_DESC= OpenMP support
OPENMP_USES= compiler:openmp
OPENMP_CMAKE_ON=-DENABLE_OMP=on
RAWSOCKETS_DESC= Use raw receiving sockets in multiplayer
RAWSOCKETS_CFLAGS=-DNETWORK_USE_RAW_SOCKETS
SERVER_DESC= Server
SERVER_CMAKE_OFF=-DENABLE_SERVER=off
TEST_CMAKE_ON= -DENABLE_TESTS=on
TOOLS_DESC= Extra tools for artists and translators
TOOLS_CMAKE_ON= -DENABLE_TOOLS=on
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPENMP}
BROKEN= compilation fails with OpenMP
.endif
.if ${PORT_OPTIONS:MTEST}
BROKEN= compilations fails with enabled TEST option
.endif
post-install:
${FIND} ${STAGEDIR}${PREFIX}/man -type d -empty -delete
.include <bsd.port.mk>