diff options
Diffstat (limited to 'games/pokerth/Makefile')
-rw-r--r-- | games/pokerth/Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/games/pokerth/Makefile b/games/pokerth/Makefile index 83ce5b0ae474..05c3c1d66d10 100644 --- a/games/pokerth/Makefile +++ b/games/pokerth/Makefile @@ -14,8 +14,6 @@ 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 \ @@ -23,7 +21,8 @@ LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ 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 \ @@ -45,6 +44,12 @@ post-patch: @${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 |