Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 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 | xserver-xorg-cvt-native \ |
| 7 | wayland-native \ |
| 8 | virtual/libx11 \ |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 9 | colord \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 10 | graphene \ |
| 11 | gtk4 \ |
| 12 | gdk-pixbuf \ |
| 13 | cairo \ |
| 14 | pango \ |
| 15 | gsettings-desktop-schemas \ |
| 16 | json-glib \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 17 | libei \ |
| 18 | libxtst \ |
| 19 | libxkbfile \ |
| 20 | ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xinerama', '', d)} \ |
| 21 | xwayland \ |
| 22 | " |
| 23 | |
| 24 | |
| 25 | inherit gnomebase gsettings gobject-introspection gettext features_check |
| 26 | |
Patrick Williams | 3965356 | 2024-03-01 08:54:02 -0600 | [diff] [blame] | 27 | SRC_URI[archive.sha256sum] = "91140837be15582f2c753be661ab8e42dad55d4a1b0f0650bd0b2c93f02bd7ab" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 28 | |
| 29 | # x11 is still manadatory - see meson.build |
| 30 | REQUIRED_DISTRO_FEATURES = "wayland x11 polkit" |
| 31 | |
| 32 | # systemd can be replaced by libelogind (not available atow - make systemd |
| 33 | # mandatory distro feature) |
| 34 | LOGIND ?= "systemd" |
| 35 | REQUIRED_DISTRO_FEATURES += "systemd" |
| 36 | |
| 37 | # profiler requires sysprof 3.34 which is not willing to build atow |
| 38 | PACKAGECONFIG ??= " \ |
| 39 | native-backend \ |
| 40 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl glx', '', d)} \ |
| 41 | sm \ |
| 42 | startup-notification \ |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 43 | gnome-desktop \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 44 | " |
| 45 | |
| 46 | EXTRA_OEMESON += " \ |
| 47 | -Dtests=false \ |
| 48 | -Dnative_tests=false \ |
| 49 | -Dxwayland_path=${bindir}/Xwayland \ |
| 50 | " |
| 51 | |
| 52 | # combi-config - see meson_options.txt for more details |
| 53 | PACKAGECONFIG[native-backend] = "-Dnative_backend=true -Dudev=true, -Dnative_backend=false -Dudev=false, libdrm virtual/libgbm libinput ${LOGIND} virtual/egl virtual/libgles2 udev" |
| 54 | PACKAGECONFIG[opengl] = "-Dopengl=true, -Dopengl=true, virtual/libgl" |
| 55 | PACKAGECONFIG[glx] = "-Dglx=true, -Dglx=false" |
| 56 | PACKAGECONFIG[libdisplay-info] = "-Dlibdisplay_info=true, -Dlibdisplay_info=false, libdisplay-info" |
| 57 | PACKAGECONFIG[libwacom] = "-Dlibwacom=true, -Dlibwacom=false, libwacom" |
| 58 | # Remove depending on pipewire-0.2 when mutter is upgraded to 3.36+ |
| 59 | PACKAGECONFIG[remote-desktop] = "-Dremote_desktop=true, -Dremote_desktop=false, pipewire" |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 60 | PACKAGECONFIG[gnome-desktop] = "-Dlibgnome_desktop=true, -Dlibgnome_desktop=false, gnome-desktop gnome-settings-daemon" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 61 | PACKAGECONFIG[sm] = "-Dsm=true, -Dsm=false, libsm" |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 62 | PACKAGECONFIG[sound-player] = "-Dsound_player=true, -Dsound_player=false, libcanberra" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 63 | PACKAGECONFIG[profiler] = "-Dprofiler=true,-Dprofiler=false,sysprof" |
| 64 | PACKAGECONFIG[startup-notification] = "-Dstartup_notification=true, -Dstartup_notification=false, startup-notification, startup-notification" |
| 65 | |
| 66 | MUTTER_API_NAME = "mutter-13" |
| 67 | |
| 68 | do_install:prepend() { |
| 69 | sed -i -e 's|${B}/||g' ${B}/clutter/clutter/clutter-enum-types.c |
| 70 | sed -i -e 's|${B}/||g' ${B}/src/meta-private-enum-types.c |
| 71 | sed -i -e 's|${B}/||g' ${B}/src/meta/meta-enum-types.c |
| 72 | } |
| 73 | |
| 74 | do_install:append() { |
| 75 | # Add gir links in standard paths. That makes dependents life much easier |
| 76 | # to find them |
| 77 | install -d ${D}${datadir}/gir-1.0 |
| 78 | for gir_full in `find ${D}${libdir}/${MUTTER_API_NAME} -name '*.gir'`; do |
| 79 | gir=`basename "$gir_full"` |
| 80 | ln -sr "${D}${libdir}/${MUTTER_API_NAME}/$gir" "${D}${datadir}/gir-1.0/$gir" |
| 81 | done |
| 82 | } |
| 83 | |
| 84 | GSETTINGS_PACKAGE = "${PN}-gsettings" |
| 85 | |
| 86 | PACKAGES =+ "${PN}-tests ${PN}-gsettings" |
| 87 | |
| 88 | FILES:${PN} += " \ |
| 89 | ${datadir}/gnome-control-center \ |
| 90 | ${datadir}/gir-1.0 \ |
| 91 | ${libdir}/${MUTTER_API_NAME}/lib*${SOLIBS} \ |
| 92 | ${libdir}/${MUTTER_API_NAME}/*.typelib \ |
| 93 | ${libdir}/${MUTTER_API_NAME}/plugins \ |
| 94 | " |
| 95 | |
| 96 | FILES:${PN}-tests += " \ |
| 97 | ${datadir}/installed-tests \ |
| 98 | ${datadir}/${MUTTER_API_NAME}/tests \ |
| 99 | ${libexecdir}/installed-tests/${MUTTER_API_NAME} \ |
| 100 | " |
| 101 | |
| 102 | FILES:${PN}-dev += " \ |
| 103 | ${libdir}/${MUTTER_API_NAME}/*.gir \ |
| 104 | ${libdir}/${MUTTER_API_NAME}/lib*.so \ |
| 105 | " |
| 106 | |
Patrick Williams | 169d7bc | 2024-01-05 11:33:25 -0600 | [diff] [blame] | 107 | RDEPENDS:${PN} += "zenity ${PN}-gsettings gsettings-desktop-schemas" |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 108 | |