summaryrefslogtreecommitdiffstats
path: root/games/springlobby/Makefile
blob: ef9e95dff2ceae64ba090c0d68646e770fdacd3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$

PORTNAME=	springlobby
PORTVERSION=	0.180
PORTREVISION=	1
CATEGORIES=	games net
MASTER_SITES=	http://www.springlobby.info/tarballs/ \
		http://mirror.amdmi3.ru/distfiles/

MAINTAINER=	amdmi3@FreeBSD.org
COMMENT=	Cross-platform lobby client for the Spring RTS project

LICENSE=	GPLv2

RUN_DEPENDS=	spring:${PORTSDIR}/games/spring
LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl \
		libboost_thread.so:${PORTSDIR}/devel/boost-libs

USE_BZIP2=	yes
USES=		cmake pkgconfig compiler:c++11-lib
CMAKE_ARGS=	-DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" \
		-DENABLE_DEBUG_REPORT=FALSE
USE_WX=		2.8+
WX_UNICODE=	yes

PORTDOCS=	*

OPTIONS_DEFINE=	SOUND NLS NOTIFY DOCS
OPTIONS_DEFAULT=SOUND NOTIFY
OPTIONS_SUB=	yes

SOUND_DESC=	Enable sound notifications
NOTIFY_DESC=	Enable libnotify support for popup status messages

NLS_CMAKE_ON=		-DOPTION_TRANSLATION_SUPPORT:BOOL=ON
NLS_CMAKE_OFF=		-DOPTION_TRANSLATION_SUPPORT:BOOL=OFF
NLS_USES=		gettext

SOUND_CMAKE_ON=		-DOPTION_SOUND:BOOL=ON
SOUND_CMAKE_OFF=	-DOPTION_SOUND:BOOL=OFF
SOUND_LIB_DEPENDS=	libalure.so:${PORTSDIR}/audio/alure
SOUND_USES=		openal:al

NOTIFY_CMAKE_ON=	-DOPTION_NOTIFY=ON
NOTIFY_CMAKE_OFF=	-DOPTION_NOTIFY=OFF
NOTIFY_LIB_DEPENDS=	libnotify.so:${PORTSDIR}/devel/libnotify

.include <bsd.port.options.mk>

.if ${OSVERSION} < 901000
IGNORE=		does not build (no strtoll(3) support)
.endif

.include <bsd.port.mk>
OpenPOWER on IntegriCloud