diff --git a/x11-wm/gamescope/Makefile b/x11-wm/gamescope/Makefile index 0fe27cf676ea..1da23f968ff9 100644 --- a/x11-wm/gamescope/Makefile +++ b/x11-wm/gamescope/Makefile @@ -1,50 +1,50 @@ PORTNAME= gamescope -DISTVERSION= 3.11.10 +DISTVERSION= 3.11.11 CATEGORIES= x11-wm PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES+= 2a84a44f6897.patch:-p1 # https://github.com/Plagman/gamescope/pull/119 PATCHFILES+= e0927f7bce95.patch:-p1 # https://github.com/Plagman/gamescope/pull/119 PATCHFILES+= a618ea074660.patch:-p1 # https://github.com/Plagman/gamescope/issues/120 MAINTAINER= jbeich@FreeBSD.org COMMENT= Micro-compositor from SteamOS LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= glslangValidator:graphics/glslang \ evdev-proto>0:devel/evdev-proto \ libliftoff>=0.2.0<0.3.0:graphics/libliftoff \ vulkan-headers>0:graphics/vulkan-headers \ wayland-protocols>=1.17:graphics/wayland-protocols \ wlroots>=0.15.0<0.16.0:x11-toolkits/wlroots LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ libdrm.so:graphics/libdrm \ libliftoff.so:graphics/libliftoff \ libvulkan.so:graphics/vulkan-loader \ libwayland-server.so:graphics/wayland \ libwlroots.so:x11-toolkits/wlroots \ libxkbcommon.so:x11/libxkbcommon USES= compiler:c++11-lib meson pkgconfig sdl xorg USE_GITHUB= yes USE_SDL= sdl2 USE_XORG= x11 xcomposite xdamage xext xfixes xrender xres xtst xxf86vm GH_ACCOUNT= Plagman GH_TUPLE= nothings:stb:af1a5bc:stb/subprojects/stb PLIST_FILES= bin/${PORTNAME} MESON_ARGS= --force-fallback-for= # allow system wlroots + libliftoff OPTIONS_DEFINE= PIPEWIRE OPTIONS_DEFAULT=PIPEWIRE PIPEWIRE_DESC= Screen capture via PipeWire PIPEWIRE_LIB_DEPENDS= libpipewire-0.3.so:multimedia/pipewire PIPEWIRE_MESON_ENABLED= pipewire post-extract: # Merge patch_directory for subprojects without meson.build @(cd ${WRKSRC}/subprojects/packagefiles && ${COPYTREE_SHARE} . ..) .include diff --git a/x11-wm/gamescope/distinfo b/x11-wm/gamescope/distinfo index 43421b132073..0705d9f33530 100644 --- a/x11-wm/gamescope/distinfo +++ b/x11-wm/gamescope/distinfo @@ -1,11 +1,11 @@ -TIMESTAMP = 1644557283 -SHA256 (Plagman-gamescope-3.11.10_GH0.tar.gz) = c353cb9dd310ea74be25ec96104ff1bb065c9672ac11ab014e62c3b4b4ac38f9 -SIZE (Plagman-gamescope-3.11.10_GH0.tar.gz) = 153805 +TIMESTAMP = 1644690252 +SHA256 (Plagman-gamescope-3.11.11_GH0.tar.gz) = 89787d1e1101bcad0009ad7b6ed3f14b9c688c1c1134b59ee62accc54adc93ad +SIZE (Plagman-gamescope-3.11.11_GH0.tar.gz) = 154436 SHA256 (nothings-stb-af1a5bc_GH0.tar.gz) = 3facf6e6f8c3e1715e1a088f22bad9c9202973f9369fb3f088f46cced3f64058 SIZE (nothings-stb-af1a5bc_GH0.tar.gz) = 1387334 SHA256 (2a84a44f6897.patch) = fd892d4477885926b0ef5793d5222764afa2ba334fd25c4cc671c89812e100b5 SIZE (2a84a44f6897.patch) = 2931 SHA256 (e0927f7bce95.patch) = 6bbab2f37d7e76a1eade6d81bc0b441cc09f0020143bafb53555b767bf056600 SIZE (e0927f7bce95.patch) = 1609 SHA256 (a618ea074660.patch) = 5cffe848f1bc6b5555c75a0d0588c9b97390ce31ac25b71de528f55ae0c99562 SIZE (a618ea074660.patch) = 2587 diff --git a/x11-wm/gamescope/files/patch-src_vblankmanager.cpp b/x11-wm/gamescope/files/patch-src_vblankmanager.cpp new file mode 100644 index 000000000000..a7c3e67902df --- /dev/null +++ b/x11-wm/gamescope/files/patch-src_vblankmanager.cpp @@ -0,0 +1,13 @@ +https://github.com/Plagman/gamescope/issues/410 + +--- src/vblankmanager.cpp.orig 2022-02-12 18:24:12 UTC ++++ src/vblankmanager.cpp +@@ -282,7 +282,7 @@ void fpslimitThreadRun( void ) + // Don't roll back before current vblank + // based on varying draw time otherwise we can become divergent + // if these value change how we do not expect and get stuck in a feedback loop. +- sleepyTime = std::max( sleepyTime, 0l ); ++ sleepyTime = std::max( sleepyTime, 0 ); + sleepyTime -= g_uFPSLimiterRedZoneNS; + sleepyTime -= g_uVblankDrawBufferRedZoneNS; +