Switch pokerth from Qt4 to Qt5.
- Replace qmake with qmake-qt5 - Remove protobuf from BUILD_DEPENDS, it's already in LIB_DEPENDS - Remove COMPILER line, it comes from qt5 now
This commit is contained in:
parent
2a6546242c
commit
a704c7dcfe
@ -1,11 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.45 2019/07/12 20:46:22 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.46 2020/02/21 16:07:06 rsadowski Exp $
|
||||
|
||||
COMMENT= texas hold'em poker game with online capabilities
|
||||
#'
|
||||
BROKEN-hppa = needs atomic ops
|
||||
|
||||
DISTNAME = pokerth-1.1.2
|
||||
REVISION = 4
|
||||
REVISION = 5
|
||||
|
||||
CATEGORIES= games x11
|
||||
|
||||
@ -14,21 +14,19 @@ HOMEPAGE= https://www.pokerth.net/
|
||||
# AGPL3+
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += ${COMPILER_LIBCXX} ICE QtGui QtNetwork QtSql SDL SDL_mixer
|
||||
WANTLIB += SM X11 Xext Xi Xinerama Xrender boost_chrono-mt boost_filesystem-mt
|
||||
WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core Qt5Gui Qt5Network Qt5Sql
|
||||
WANTLIB += Qt5Widgets SDL SDL_mixer boost_chrono-mt boost_filesystem-mt
|
||||
WANTLIB += boost_iostreams-mt boost_program_options-mt boost_random-mt
|
||||
WANTLIB += boost_regex-mt boost_system-mt boost_thread-mt c crypto
|
||||
WANTLIB += curl fontconfig freetype gsasl iconv ircclient m protobuf
|
||||
WANTLIB += sqlite3 ssl tinyxml
|
||||
WANTLIB += curl gsasl iconv ircclient m protobuf sqlite3 ssl tinyxml
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=pokerth/}
|
||||
|
||||
# C++11
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
CXXFLAGS += -std=gnu++11
|
||||
|
||||
MODULES= devel/qmake \
|
||||
x11/qt4
|
||||
x11/qt5
|
||||
|
||||
MODQMAKE_PROJECTS = pokerth.pro
|
||||
|
||||
@ -44,8 +42,6 @@ LIB_DEPENDS= converters/libiconv \
|
||||
security/libgsasl \
|
||||
textproc/tinyxml
|
||||
|
||||
BUILD_DEPENDS = devel/protobuf
|
||||
|
||||
CONFIGURE_ENV= HOME=${WRKDIR}
|
||||
|
||||
NO_TEST= Yes
|
||||
@ -58,7 +54,9 @@ MODQMAKE_ARGS += CONFIG+="client"
|
||||
pre-configure:
|
||||
cd ${WRKSRC} && \
|
||||
protoc --cpp_out=src/third_party/protobuf chatcleaner.proto && \
|
||||
protoc --cpp_out=src/third_party/protobuf pokerth.proto
|
||||
protoc --cpp_out=src/third_party/protobuf pokerth.proto && \
|
||||
find . -name "*.pro" -print0 | xargs -0r perl -pi \
|
||||
-e 's,qmake,${MODQT5_QMAKE},g;'
|
||||
|
||||
post-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/pokerth ${PREFIX}/bin
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.11 2018/06/27 21:03:49 espie Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.12 2020/02/21 16:07:07 rsadowski Exp $
|
||||
@bin bin/pokerth
|
||||
@bin bin/pokerth_server
|
||||
share/applications/pokerth.desktop
|
||||
@ -423,7 +423,6 @@ share/pokerth/data/misc/agpl.html
|
||||
share/pokerth/data/misc/third_party_libs.txt
|
||||
share/pokerth/data/sounds/
|
||||
share/pokerth/data/sounds/default/
|
||||
share/pokerth/data/sounds/default/.directory
|
||||
share/pokerth/data/sounds/default/allin.wav
|
||||
share/pokerth/data/sounds/default/bet.wav
|
||||
share/pokerth/data/sounds/default/blinds_raises_level1.wav
|
||||
|
Loading…
Reference in New Issue
Block a user