diff --git a/games/vcmi/Makefile b/games/vcmi/Makefile index 1c083d5a6a09..78b98d9ae40f 100644 --- a/games/vcmi/Makefile +++ b/games/vcmi/Makefile @@ -1,48 +1,48 @@ PORTNAME= vcmi -PORTVERSION= 1.1.0 +PORTVERSION= 1.1.1 CATEGORIES= games MAINTAINER= danfe@FreeBSD.org COMMENT= Open-source engine for Heroes of Might and Magic III WWW= https://vcmi.eu/ LICENSE= GPLv2+ LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ libboost_atomic.so:devel/boost-libs \ libfuzzylite.so:devel/fuzzylite \ libminizip.so:archivers/minizip \ libtbb.so:devel/onetbb RUN_DEPENDS= bash:shells/bash USES= cmake pkgconfig sdl shebangfix USE_GITHUB= yes USE_SDL= image2 mixer2 sdl2 ttf2 SHEBANG_FILES= vcmibuilder CMAKE_ARGS= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON \ -DCMAKE_INSTALL_RPATH:PATH=${PREFIX}/lib/${PORTNAME} \ -DENABLE_GITVERSION:BOOL=OFF -DENABLE_TEST:BOOL=OFF \ -DFORCE_BUNDLED_FL:BOOL=OFF PORTDOCS= AUTHORS ChangeLog README.md OPTIONS_DEFINE= DOCS QT OPTIONS_DEFAULT= QT OPTIONS_SUB= yes QT_DESC= Build Qt-based game launcher and map editor QT_USES= qt:5 QT_USE= QT=buildtools:build,qmake:build,core,gui,network,widgets QT_CMAKE_OFF= -DENABLE_LAUNCHER:BOOL=OFF -DENABLE_EDITOR:BOOL=OFF post-configure: - ${SED} -e 's,@GIT_SHA1@,5278271,' ${WRKSRC}/Version.cpp.in \ + ${SED} -e 's,@GIT_SHA1@,b429f0b,' ${WRKSRC}/Version.cpp.in \ > ${BUILD_WRKSRC}/Version.cpp post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} .include PATCH_ARGS+= -l diff --git a/games/vcmi/distinfo b/games/vcmi/distinfo index dea8d6a9dc6d..375d1249de6a 100644 --- a/games/vcmi/distinfo +++ b/games/vcmi/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1671792720 -SHA256 (vcmi-vcmi-1.1.0_GH0.tar.gz) = 39db3ac7a2d1e386be1982957c0746e4e47f0d6a57268a57e65df9c95c967474 -SIZE (vcmi-vcmi-1.1.0_GH0.tar.gz) = 6412813 +TIMESTAMP = 1675416308 +SHA256 (vcmi-vcmi-1.1.1_GH0.tar.gz) = 41cf343e45a3c1f4ddf95e97697c25e68e40b93f681c0b9d631b3c9d1608a49b +SIZE (vcmi-vcmi-1.1.1_GH0.tar.gz) = 6412309 diff --git a/games/vcmi/files/patch-lib_serializer_Connection.cpp b/games/vcmi/files/patch-lib_serializer_Connection.cpp new file mode 100644 index 000000000000..8d7f2389e1a3 --- /dev/null +++ b/games/vcmi/files/patch-lib_serializer_Connection.cpp @@ -0,0 +1,26 @@ +--- lib/serializer/Connection.cpp.orig 2023-02-03 09:25:08 UTC ++++ lib/serializer/Connection.cpp +@@ -15,6 +15,7 @@ + #include "../CGameState.h" + + #include ++#include + + VCMI_LIB_NAMESPACE_BEGIN + +@@ -46,8 +47,13 @@ void CConnection::init() + socket->set_option(boost::asio::ip::tcp::no_delay(true)); + try + { +- socket->set_option(boost::asio::socket_base::send_buffer_size(4194304)); +- socket->set_option(boost::asio::socket_base::receive_buffer_size(4194304)); ++ unsigned long sb_max, sb_max_adj; ++ size_t len = sizeof(sb_max); ++ (void)sysctlbyname("kern.ipc.maxsockbuf", &sb_max, &len, NULL, 0); ++ sb_max_adj = sb_max * MCLBYTES / (MSIZE + MCLBYTES); ++ ++ socket->set_option(boost::asio::socket_base::send_buffer_size(sb_max_adj)); ++ socket->set_option(boost::asio::socket_base::receive_buffer_size(sb_max_adj)); + } + catch (const boost::system::system_error & e) + {