summaryrefslogtreecommitdiff
path: root/games/cockatrice/Makefile
blob: d8fc9d8d7d3ba9d82b90a5f4fa63643e830a2f09 (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
# Created by: Sean Bruno
# $FreeBSD$

PORTNAME=	Cockatrice
PORTVERSION=	2.7.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 qt:5
USE_QT=		buildtools_build concurrent core network qmake_build websockets widgets
USE_GITHUB=	yes
GH_TAGNAME=	2019-06-08-Release-2.7.1

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,gui
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>