summaryrefslogtreecommitdiffstats
path: root/meta-gnome/recipes-gnome/mutter/mutter_48.4.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-gnome/recipes-gnome/mutter/mutter_48.4.bb')
-rw-r--r--meta-gnome/recipes-gnome/mutter/mutter_48.4.bb113
1 files changed, 113 insertions, 0 deletions
diff --git a/meta-gnome/recipes-gnome/mutter/mutter_48.4.bb b/meta-gnome/recipes-gnome/mutter/mutter_48.4.bb
new file mode 100644
index 0000000000..d563e8a912
--- /dev/null
+++ b/meta-gnome/recipes-gnome/mutter/mutter_48.4.bb
@@ -0,0 +1,113 @@
1SUMMARY = "Window and compositing manager based on Clutter"
2LICENSE = "GPL-2.0-only"
3LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
4
5DEPENDS = " \
6 wayland-native \
7 virtual/libx11 \
8 colord \
9 graphene \
10 gtk4 \
11 gdk-pixbuf \
12 cairo \
13 pango \
14 gsettings-desktop-schemas \
15 json-glib \
16 libdisplay-info \
17 libei \
18 libxcvt-native \
19 libxtst \
20 libxkbfile \
21 python3-argcomplete-native \
22 python3-docutils-native \
23 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xinerama', '', d)} \
24 xwayland \
25"
26
27
28inherit gnomebase gsettings gobject-introspection gettext features_check
29
30SRC_URI[archive.sha256sum] = "1189cf7e63cc87cfdd1f3a86e8f14d97c33d6a9da254f23e81655549b6c50d93"
31
32SRC_URI += "file://0001-Dont-use-system-sysprof-dbus-folder.patch"
33
34# x11 is still manadatory - see meson.build
35REQUIRED_DISTRO_FEATURES = "wayland x11 polkit"
36
37# systemd can be replaced by libelogind (not available atow - make systemd
38# mandatory distro feature)
39LOGIND ?= "systemd"
40REQUIRED_DISTRO_FEATURES += "systemd"
41
42# profiler requires sysprof 3.34 which is not willing to build atow
43PACKAGECONFIG ??= " \
44 native-backend \
45 ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl glx', '', d)} \
46 sm \
47 startup-notification \
48 gnome-desktop \
49"
50
51EXTRA_OEMESON += " \
52 -Dtests=disabled \
53 -Dxwayland_path=${bindir}/Xwayland \
54"
55
56# combi-config - see meson_options.txt for more details
57PACKAGECONFIG[native-backend] = "-Dnative_backend=true -Dudev=true, -Dnative_backend=false -Dudev=false, libdrm virtual/libgbm libinput ${LOGIND} virtual/egl virtual/libgles2 udev"
58PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false, virtual/libgl"
59PACKAGECONFIG[glx] = "-Dglx=true, -Dglx=false"
60PACKAGECONFIG[libwacom] = "-Dlibwacom=true, -Dlibwacom=false, libwacom"
61# Remove depending on pipewire-0.2 when mutter is upgraded to 3.36+
62PACKAGECONFIG[remote-desktop] = "-Dremote_desktop=true, -Dremote_desktop=false, pipewire"
63PACKAGECONFIG[gnome-desktop] = "-Dlibgnome_desktop=true, -Dlibgnome_desktop=false, gnome-desktop gnome-settings-daemon"
64PACKAGECONFIG[sm] = "-Dsm=true, -Dsm=false, libsm"
65PACKAGECONFIG[sound-player] = "-Dsound_player=true, -Dsound_player=false, libcanberra"
66PACKAGECONFIG[profiler] = "-Dprofiler=true,-Dprofiler=false,sysprof"
67PACKAGECONFIG[startup-notification] = "-Dstartup_notification=true, -Dstartup_notification=false, startup-notification, startup-notification"
68
69MUTTER_API_NAME = "mutter-16"
70
71do_install:prepend() {
72 sed -i -e 's|${B}/||g' ${B}/cogl/cogl/cogl-enum-types.c
73 sed -i -e 's|${B}/||g' ${B}/clutter/clutter/clutter-enum-types.c
74 sed -i -e 's|${B}/||g' ${B}/src/meta-private-enum-types.c
75 sed -i -e 's|${B}/||g' ${B}/src/meta/meta-enum-types.c
76}
77
78do_install:append() {
79 # Add gir links in standard paths. That makes dependents life much easier
80 # to find them
81 install -d ${D}${datadir}/gir-1.0
82 for gir_full in `find ${D}${libdir}/${MUTTER_API_NAME} -name '*.gir'`; do
83 gir=`basename "$gir_full"`
84 ln -sr "${D}${libdir}/${MUTTER_API_NAME}/$gir" "${D}${datadir}/gir-1.0/$gir"
85 done
86}
87
88GSETTINGS_PACKAGE = "${PN}-gsettings"
89
90PACKAGES =+ "${PN}-tests ${PN}-gsettings"
91
92FILES:${PN} += " \
93 ${datadir}/bash-completion \
94 ${datadir}/gnome-control-center \
95 ${datadir}/gir-1.0 \
96 ${libdir}/${MUTTER_API_NAME}/lib*${SOLIBS} \
97 ${libdir}/${MUTTER_API_NAME}/*.typelib \
98 ${libdir}/${MUTTER_API_NAME}/plugins \
99"
100
101FILES:${PN}-tests += " \
102 ${datadir}/installed-tests \
103 ${datadir}/${MUTTER_API_NAME}/tests \
104 ${libexecdir}/installed-tests/${MUTTER_API_NAME} \
105"
106
107FILES:${PN}-dev += " \
108 ${libdir}/${MUTTER_API_NAME}/*.gir \
109 ${libdir}/${MUTTER_API_NAME}/lib*.so \
110"
111
112RDEPENDS:${PN} += "${PN}-gsettings gsettings-desktop-schemas"
113