diff --git a/x11-wm/gamescope/Makefile b/x11-wm/gamescope/Makefile index 0122003ff73c..08f8c6fc3792 100644 --- a/x11-wm/gamescope/Makefile +++ b/x11-wm/gamescope/Makefile @@ -1,51 +1,52 @@ PORTNAME= gamescope DISTVERSION= 3.10.1 +PORTREVISION= 1 CATEGORIES= x11-wm PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ PATCHFILES+= ec8e547be135.patch:-p1 # https://github.com/Plagman/gamescope/pull/119 PATCHFILES+= ea415ae28442.patch:-p1 # https://github.com/Plagman/gamescope/pull/119 PATCHFILES+= 7c188b24afaa.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 \ vulkan-headers>0:graphics/vulkan-headers \ wayland-protocols>=1.17:graphics/wayland-protocols \ - wlroots>=0.15.0<0.16.0:x11-toolkits/wlroots + wlroots>=0.14.0.1<0.16.0:x11-toolkits/wlroots LIB_DEPENDS= libepoll-shim.so:devel/libepoll-shim \ libdrm.so:graphics/libdrm \ 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_GITLAB= nodefault 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 GL_TUPLE= https://gitlab.freedesktop.org:emersion:libliftoff:2e1dd93b60224e77f6a49ad8fb36d184e3a9a3bc:libliftoff/subprojects/libliftoff PLIST_FILES= bin/${PORTNAME} +MESON_ARGS= --force-fallback-for=libliftoff # allow system wlroots 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 "${.CURDIR}/Makefile.wlroots" .include diff --git a/x11-wm/gamescope/Makefile.wlroots b/x11-wm/gamescope/Makefile.wlroots deleted file mode 100644 index 6aa9a17ac668..000000000000 --- a/x11-wm/gamescope/Makefile.wlroots +++ /dev/null @@ -1,16 +0,0 @@ -# https://github.com/Plagman/gamescope/pull/202 -BUILD_DEPENDS:= ${BUILD_DEPENDS:N*wlroots*} \ - xwayland-devel>0:x11-servers/xwayland-devel -LIB_DEPENDS:= ${LIB_DEPENDS:N*wlroots*} \ - libudev.so:devel/libudev-devd \ - libseat.so:sysutils/seatd \ - libinput.so:x11/libinput \ - libxcb-errors.so:x11/xcb-util-errors \ - libxcb-render-util.so:x11/xcb-util-renderutil \ - libxcb-icccm.so:x11/xcb-util-wm -RUN_DEPENDS+= xwayland-devel>0:x11-servers/xwayland-devel -USES+= gl -USE_GL+= gbm egl -USE_XORG+= pixman xcb -GL_TUPLE+= https://gitlab.freedesktop.org:wlroots:wlroots:3e801d68f2c6c64567b1f24c6d03893f32c81197:wlroots/subprojects/wlroots -PLIST_FILES+= "@comment libdata/pkgconfig/wlroots.pc" diff --git a/x11-wm/gamescope/files/patch-private-wlroots b/x11-wm/gamescope/files/patch-private-wlroots deleted file mode 100644 index 68b8cc175721..000000000000 --- a/x11-wm/gamescope/files/patch-private-wlroots +++ /dev/null @@ -1,35 +0,0 @@ -wlroots 0.13.0 is out-of-date and has no other consumers. Keep it -private to gamescope package for now. - ---- subprojects/wlroots/include/meson.build.orig 2021-04-07 19:19:31 UTC -+++ subprojects/wlroots/include/meson.build -@@ -17,7 +17,9 @@ if not features.get('xdg-foreign') - ] - endif - -+if not meson.is_subproject() - install_subdir('wlr', - install_dir: get_option('includedir'), - exclude_files: exclude_files, - ) -+endif ---- subprojects/wlroots/include/wlr/meson.build.orig 2021-04-07 19:19:31 UTC -+++ subprojects/wlroots/include/wlr/meson.build -@@ -21,4 +21,6 @@ ver_h = configure_file( - configuration: version_data, - ) - -+if not meson.is_subproject() - install_headers(conf_h, ver_h, subdir: 'wlr') -+endif ---- subprojects/wlroots/meson.build.orig 2021-04-07 19:19:31 UTC -+++ subprojects/wlroots/meson.build -@@ -153,7 +153,7 @@ lib_wlr = library( - soversion: soversion, - dependencies: wlr_deps, - include_directories: [wlr_inc, proto_inc], -- install: true, -+ install: not meson.is_subproject(), - link_args: symbols_flag, - link_depends: symbols_file, - ) diff --git a/x11-wm/gamescope/files/patch-wlroots-0.15 b/x11-wm/gamescope/files/patch-wlroots-0.15 new file mode 100644 index 000000000000..fcbe7e0300c2 --- /dev/null +++ b/x11-wm/gamescope/files/patch-wlroots-0.15 @@ -0,0 +1,29 @@ +https://github.com/Plagman/gamescope/issues/316 + +../src/wlserver.cpp:26:10: fatal error: 'wlr/backend/noop.h' file not found +#include + ^~~~~~~~~~~~~~~~~~~~ + +--- src/wlserver.cpp.orig 2021-10-18 03:17:30 UTC ++++ src/wlserver.cpp +@@ -23,7 +23,6 @@ extern "C" { + #include + #include + #include +-#include + #include + #include + #include +@@ -642,10 +641,10 @@ bool wlserver_init( void ) { + + wl_signal_add( &wlserver.wlr.multi_backend->events.new_input, &new_input_listener ); + +- wlserver.wlr.noop_backend = wlr_noop_backend_create( wlserver.display ); ++ wlserver.wlr.noop_backend = wlr_headless_backend_create( wlserver.display ); + wlr_multi_backend_add( wlserver.wlr.multi_backend, wlserver.wlr.noop_backend ); + +- wlserver.wlr.output = wlr_noop_add_output( wlserver.wlr.noop_backend ); ++ wlserver.wlr.output = wlr_headless_add_output( wlserver.wlr.noop_backend, 800, 600 ); + + if ( bIsDRM == True ) + {