diff options
Diffstat (limited to 'meta-gnome/recipes-gnome/mutter/mutter_48.4.bb')
-rw-r--r-- | meta-gnome/recipes-gnome/mutter/mutter_48.4.bb | 113 |
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 @@ | |||
1 | SUMMARY = "Window and compositing manager based on Clutter" | ||
2 | LICENSE = "GPL-2.0-only" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" | ||
4 | |||
5 | DEPENDS = " \ | ||
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 | |||
28 | inherit gnomebase gsettings gobject-introspection gettext features_check | ||
29 | |||
30 | SRC_URI[archive.sha256sum] = "1189cf7e63cc87cfdd1f3a86e8f14d97c33d6a9da254f23e81655549b6c50d93" | ||
31 | |||
32 | SRC_URI += "file://0001-Dont-use-system-sysprof-dbus-folder.patch" | ||
33 | |||
34 | # x11 is still manadatory - see meson.build | ||
35 | REQUIRED_DISTRO_FEATURES = "wayland x11 polkit" | ||
36 | |||
37 | # systemd can be replaced by libelogind (not available atow - make systemd | ||
38 | # mandatory distro feature) | ||
39 | LOGIND ?= "systemd" | ||
40 | REQUIRED_DISTRO_FEATURES += "systemd" | ||
41 | |||
42 | # profiler requires sysprof 3.34 which is not willing to build atow | ||
43 | PACKAGECONFIG ??= " \ | ||
44 | native-backend \ | ||
45 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl glx', '', d)} \ | ||
46 | sm \ | ||
47 | startup-notification \ | ||
48 | gnome-desktop \ | ||
49 | " | ||
50 | |||
51 | EXTRA_OEMESON += " \ | ||
52 | -Dtests=disabled \ | ||
53 | -Dxwayland_path=${bindir}/Xwayland \ | ||
54 | " | ||
55 | |||
56 | # combi-config - see meson_options.txt for more details | ||
57 | PACKAGECONFIG[native-backend] = "-Dnative_backend=true -Dudev=true, -Dnative_backend=false -Dudev=false, libdrm virtual/libgbm libinput ${LOGIND} virtual/egl virtual/libgles2 udev" | ||
58 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=false, virtual/libgl" | ||
59 | PACKAGECONFIG[glx] = "-Dglx=true, -Dglx=false" | ||
60 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true, -Dlibwacom=false, libwacom" | ||
61 | # Remove depending on pipewire-0.2 when mutter is upgraded to 3.36+ | ||
62 | PACKAGECONFIG[remote-desktop] = "-Dremote_desktop=true, -Dremote_desktop=false, pipewire" | ||
63 | PACKAGECONFIG[gnome-desktop] = "-Dlibgnome_desktop=true, -Dlibgnome_desktop=false, gnome-desktop gnome-settings-daemon" | ||
64 | PACKAGECONFIG[sm] = "-Dsm=true, -Dsm=false, libsm" | ||
65 | PACKAGECONFIG[sound-player] = "-Dsound_player=true, -Dsound_player=false, libcanberra" | ||
66 | PACKAGECONFIG[profiler] = "-Dprofiler=true,-Dprofiler=false,sysprof" | ||
67 | PACKAGECONFIG[startup-notification] = "-Dstartup_notification=true, -Dstartup_notification=false, startup-notification, startup-notification" | ||
68 | |||
69 | MUTTER_API_NAME = "mutter-16" | ||
70 | |||
71 | do_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 | |||
78 | do_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 | |||
88 | GSETTINGS_PACKAGE = "${PN}-gsettings" | ||
89 | |||
90 | PACKAGES =+ "${PN}-tests ${PN}-gsettings" | ||
91 | |||
92 | FILES:${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 | |||
101 | FILES:${PN}-tests += " \ | ||
102 | ${datadir}/installed-tests \ | ||
103 | ${datadir}/${MUTTER_API_NAME}/tests \ | ||
104 | ${libexecdir}/installed-tests/${MUTTER_API_NAME} \ | ||
105 | " | ||
106 | |||
107 | FILES:${PN}-dev += " \ | ||
108 | ${libdir}/${MUTTER_API_NAME}/*.gir \ | ||
109 | ${libdir}/${MUTTER_API_NAME}/lib*.so \ | ||
110 | " | ||
111 | |||
112 | RDEPENDS:${PN} += "${PN}-gsettings gsettings-desktop-schemas" | ||
113 | |||