mirror of
https://codeberg.org/flk/meta-wayland.git
synced 2024-12-26 13:38:22 +01:00
gamescope: add recipe
valves gamescope can be run embedded or nested
This commit is contained in:
parent
2f1de2f24d
commit
748f01283e
@ -0,0 +1,27 @@
|
||||
From d09dae4bd9494c03fb85c216fe33c883a7b7f64d Mon Sep 17 00:00:00 2001
|
||||
From: Markus Volk <f_l_k@t-online.de>
|
||||
Date: Mon, 8 Jan 2024 14:00:07 +0100
|
||||
Subject: [PATCH] meson.build: dont fail if stb is not found
|
||||
|
||||
we have neigher pkconfig nor cmake support
|
||||
manually add it to CXXFLAGS
|
||||
---
|
||||
src/meson.build | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/meson.build b/src/meson.build
|
||||
index 5385dfb..f912cfc 100644
|
||||
--- a/src/meson.build
|
||||
+++ b/src/meson.build
|
||||
@@ -19,7 +19,7 @@ cap_dep = dependency('libcap', required: false)
|
||||
epoll_dep = dependency('epoll-shim', required: false)
|
||||
glm_dep = dependency('glm')
|
||||
sdl_dep = dependency('SDL2')
|
||||
-stb_dep = dependency('stb')
|
||||
+stb_dep = dependency('stb', required: false)
|
||||
|
||||
wlroots_dep = dependency(
|
||||
'wlroots',
|
||||
--
|
||||
2.43.0
|
||||
|
53
recipes-wlroots/gamescope/gamescope_git.bb
Normal file
53
recipes-wlroots/gamescope/gamescope_git.bb
Normal file
@ -0,0 +1,53 @@
|
||||
SUMMARY = "gamescope: the micro-compositor formerly known as steamcompmgr"
|
||||
HOMEPAGE = "https://github.com/ValveSoftware/gamescope"
|
||||
LICENSE = "BSD-2-Clause"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=a0fe8e93fee55f3a3a8cc0681c48448a"
|
||||
|
||||
REQUIRED_DISTRO_FEATURES = "x11 wayland"
|
||||
|
||||
DEPENDS += " \
|
||||
glm \
|
||||
glslang-native \
|
||||
hwdata \
|
||||
pipewire \
|
||||
libavif \
|
||||
libcap \
|
||||
libdisplay-info \
|
||||
libliftoff \
|
||||
libsdl2 \
|
||||
stb \
|
||||
libx11\
|
||||
libxcomposite \
|
||||
libxcursor \
|
||||
libxkbcommon \
|
||||
libxres \
|
||||
libxmu \
|
||||
vulkan-headers \
|
||||
vulkan-loader \
|
||||
wayland \
|
||||
wayland-native \
|
||||
wayland-protocols \
|
||||
wlroots-0.17 \
|
||||
"
|
||||
|
||||
CXXFLAGS:append = " -I${STAGING_INCDIR}/stb"
|
||||
|
||||
PACKAGECONFIG ?= "${@bb.utils.filter('DISTRO_FEATURES', 'pipewire', d)}"
|
||||
PACKAGECONFIG[openvr] = "-Denable_openvr_support=true,-Denable_openvr_support=false,openvr"
|
||||
PACKAGECONFIG[pipewire] = "-Dpipewire=enabled,-Dpipwire=disabled,pipewire"
|
||||
|
||||
SRC_URI = " \
|
||||
gitsm://github.com/ValveSoftware/gamescope.git;branch=master;protocol=https \
|
||||
file://0001-meson.build-dont-fail-if-stb-is-not-found.patch \
|
||||
"
|
||||
SRCREV = "3e14ef9c37266b19ba77fbef467d1b8a77d827f2"
|
||||
PV = "3.13.19"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit meson pkgconfig features_check
|
||||
|
||||
EXTRA_OEMESON += "--buildtype release"
|
||||
|
||||
FILES:${PN} += "${datadir} ${libdir}"
|
||||
FILES:${PN}-dev = "${includedir} ${libdir}/pkgconfig"
|
Loading…
Reference in New Issue
Block a user