Index: head/games/pokerth/Makefile =================================================================== --- head/games/pokerth/Makefile (revision 456279) +++ head/games/pokerth/Makefile (revision 456280) @@ -1,55 +1,60 @@ # Created by: Yinghong.Liu # $FreeBSD$ PORTNAME= pokerth PORTVERSION= 1.1.1 PORTREVISION= 18 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/1.1 DISTNAME= PokerTH-${PORTVERSION}-src MAINTAINER= madpilot@FreeBSD.org COMMENT= Poker game written in C++/Qt4 LICENSE= AGPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING -BROKEN= Fails to compile with protobuf 3.5.0 - LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ libmikmod.so:audio/libmikmod \ libgnutls.so:security/gnutls \ libcurl.so:ftp/curl \ libgsasl.so:security/gsasl \ libtinyxml.so:textproc/tinyxml \ libprotobuf.so:devel/protobuf -BUILD_DEPENDS= ${LOCALBASE}/include/libircclient.h:irc/libircclient +BUILD_DEPENDS= ${LOCALBASE}/include/libircclient.h:irc/libircclient \ + protoc:devel/protobuf USES= iconv gmake qmake tar:bzip2 USE_QT4= gui corelib network sql sql-sqlite3 \ moc_build rcc_build uic_build USE_SDL= mixer QMAKE_SOURCE_PATH= pokerth.pro PORTDOCS= server_setup_howto.txt post-patch: @${REINPLACE_CMD} -E \ -e 's|/usr([a-z|/]*)|${LOCALBASE}/\1|g' \ -e 's|(-lcurl)|\1 ${ICONV_LIB}|g' \ -e 's|(-lcrypto) -liconv|\1 ${ICONV_LIB}|' \ -e 's:boost_([a-z]+)-[-|a-z|0-9|_]*:boost_\1:g' \ -e 's|LIB_DIRS =.*|LIB_DIRS = ${LOCALBASE}/lib|g' \ -e '/.*QMAKE_CXXFLAGS.*/d' \ ${WRKSRC}/*.pro @${FIND} ${WRKSRC} -name '*.cpp' -print0 | ${XARGS} -0 \ ${REINPLACE_CMD} -e 's|[io]fstream|std::&|' + +pre-build: + (cd ${WRKSRC} && \ + protoc --cpp_out=src/third_party/protobuf chatcleaner.proto && \ + protoc --cpp_out=src/third_party/protobuf pokerth.proto \ + ) post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pokerth ${INSTALL_PROGRAM} ${WRKSRC}/bin/pokerth_server ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/docs/pokerth.1 ${STAGEDIR}${MAN1PREFIX}/man/man1 @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/docs/server_setup_howto.txt ${STAGEDIR}${DOCSDIR} .include Index: head/games/pokerth/files/patch-pokerth.proto =================================================================== --- head/games/pokerth/files/patch-pokerth.proto (nonexistent) +++ head/games/pokerth/files/patch-pokerth.proto (revision 456280) @@ -0,0 +1,11 @@ +--- pokerth.proto.orig 2014-01-10 21:18:20 UTC ++++ pokerth.proto +@@ -701,7 +701,7 @@ message ReportGameAckMessage { + + message ErrorMessage { + enum ErrorReason { +- reserved = 0; ++ pthreserved = 0; + initVersionNotSupported = 1; + initServerFull = 2; + initAuthFailure = 3; Property changes on: head/games/pokerth/files/patch-pokerth.proto ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/games/pokerth/files/patch-src_net_common_netpacket.cpp =================================================================== --- head/games/pokerth/files/patch-src_net_common_netpacket.cpp (nonexistent) +++ head/games/pokerth/files/patch-src_net_common_netpacket.cpp (revision 456280) @@ -0,0 +1,11 @@ +--- src/net/common/netpacket.cpp.orig 2014-01-10 21:18:20 UTC ++++ src/net/common/netpacket.cpp +@@ -249,7 +249,7 @@ NetPacket::GameErrorToNetError(int gameErrorReason) + retVal = ErrorMessage::sessionTimeout; + break; + default : +- retVal = ErrorMessage::reserved; ++ retVal = ErrorMessage::pthreserved; + break; + } + return retVal; Property changes on: head/games/pokerth/files/patch-src_net_common_netpacket.cpp ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property