freebsd-ports/games/cockatrice/Makefile
Baptiste Daroussin 2c672a4de9 INSTALLS_ICONS: retire the macro and rework the related dependencies
While here, make sure gtk-update-icon-cache is only on run dependency
where added as a dependency
Enforce gtk3 to depend on gtk-update-icon-cache (previously it was
inheriting the dependency)
2021-10-10 21:44:42 +02:00

46 lines
1.2 KiB
Makefile

# 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
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>