aboutsummaryrefslogtreecommitdiff
path: root/games/cockatrice/Makefile
blob: b8237755a08b6101078d7841213e9256072eb3be (plain) (blame)
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
# Created by: Sean Bruno

PORTNAME=	Cockatrice
PORTVERSION=	2.8.0
PORTREVISION=	1
CATEGORIES=	games

MAINTAINER=	sbruno@FreeBSD.org
COMMENT=	Virtual tabletop client and server for multiplayer card games

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libprotobuf.so:devel/protobuf

USES=		cmake compiler:c++11-lib gnome qt:5
USE_QT=		buildtools_build concurrent core network qmake_build websockets widgets gui
USE_GITHUB=	yes
GH_TAGNAME=	2021-01-26-Release-2.8.0

INSTALLS_ICONS=	yes
DATADIR=	${PREFIX}/share/${PORTNAME:tl}

OPTIONS_DEFINE=		COCKATRICE SERVATRICE MYSQL
OPTIONS_DEFAULT=	COCKATRICE
OPTIONS_SUB=		yes

COCKATRICE_DESC=	Build Cockatrice Client
SERVATRICE_DESC=	Build Cockatrice Server
MYSQL_DESC=		(Server Only) Add runtime dependencies on mysql-server

SERVATRICE_CMAKE_ON=	-DWITH_SERVER=ON
SERVATRICE_CMAKE_OFF=	-DWITH_SERVER=OFF
COCKATRICE_CMAKE_ON=	-DWITH_CLIENT=ON -DWITH_ORACLE=ON
COCKATRICE_CMAKE_OFF=	-DWITH_CLIENT=OFF -DWITH_ORACLE=OFF

COCKATRICE_USE=		qt=multimedia,printsupport,svg,linguisttools_build
SERVATRICE_USE=		qt=sql,sql-mysql
SERVATRICE_USE+=	RC_SUBR=servatrice

MYSQL_USES+=		mysql:server
MYSQL_SUB_LIST_OFF=	mysql=""
MYSQL_SUB_LIST=		mysql="mysql"

SERVATRICE_LDFLAGS+=	-lexecinfo

.include <bsd.port.mk>