Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | SUMMARY = "Window and compositing manager based on Clutter" |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 2 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 4 | |
| 5 | DEPENDS = " \ |
| 6 | xserver-xorg-cvt-native \ |
| 7 | wayland-native \ |
| 8 | virtual/libx11 \ |
| 9 | graphene \ |
| 10 | gtk+3 \ |
| 11 | gdk-pixbuf \ |
| 12 | cairo \ |
| 13 | pango \ |
| 14 | gsettings-desktop-schemas \ |
| 15 | json-glib \ |
| 16 | gnome-desktop \ |
| 17 | gnome-settings-daemon \ |
| 18 | libxtst \ |
| 19 | libxkbfile \ |
| 20 | xinerama \ |
| 21 | xwayland \ |
| 22 | " |
| 23 | |
| 24 | GNOMEBASEBUILDCLASS = "meson" |
| 25 | |
| 26 | inherit gnomebase gsettings gobject-introspection gettext features_check |
| 27 | |
Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 28 | SRC_URI[archive.sha256sum] = "d1e240446b7f8cd8a3ff9daae336c1c9016193ba7e0769c79a5e6c03849022e5" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 29 | |
| 30 | # x11 is still manadatory - see meson.build |
| 31 | REQUIRED_DISTRO_FEATURES = "wayland x11 polkit" |
| 32 | |
| 33 | # systemd can be replaced by libelogind (not available atow - make systemd |
| 34 | # mandatory distro feature) |
| 35 | LOGIND ?= "systemd" |
| 36 | REQUIRED_DISTRO_FEATURES += "systemd" |
| 37 | |
| 38 | # profiler requires sysprof 3.34 which is not willing to build atow |
| 39 | PACKAGECONFIG ??= " \ |
| 40 | native-backend \ |
| 41 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl x11', 'opengl glx', '', d)} \ |
| 42 | sm \ |
| 43 | startup-notification \ |
| 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[libwacom] = "-Dlibwacom=true, -Dlibwacom=false, libwacom" |
| 57 | # Remove depending on pipewire-0.2 when mutter is upgraded to 3.36+ |
| 58 | PACKAGECONFIG[remote-desktop] = "-Dremote_desktop=true, -Dremote_desktop=false, pipewire" |
| 59 | PACKAGECONFIG[sm] = "-Dsm=true, -Dsm=false, libsm" |
| 60 | PACKAGECONFIG[profiler] = "-Dprofiler=true,-Dprofiler=false,sysprof" |
| 61 | PACKAGECONFIG[startup-notification] = "-Dstartup_notification=true, -Dstartup_notification=false, startup-notification, startup-notification" |
| 62 | |
Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 63 | MUTTER_API_NAME = "mutter-10" |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 64 | |
| 65 | do_install:append() { |
| 66 | # Add gir links in standard paths. That makes dependents life much easier |
| 67 | # to find them |
| 68 | install -d ${D}${datadir}/gir-1.0 |
| 69 | for gir_full in `find ${D}${libdir}/${MUTTER_API_NAME} -name '*.gir'`; do |
| 70 | gir=`basename "$gir_full"` |
| 71 | ln -sr "${D}${libdir}/${MUTTER_API_NAME}/$gir" "${D}${datadir}/gir-1.0/$gir" |
| 72 | done |
| 73 | } |
| 74 | |
| 75 | GSETTINGS_PACKAGE = "${PN}-gsettings" |
| 76 | |
| 77 | PACKAGES =+ "${PN}-tests ${PN}-gsettings" |
| 78 | |
| 79 | FILES:${PN} += " \ |
| 80 | ${datadir}/gnome-control-center \ |
| 81 | ${libdir}/${MUTTER_API_NAME}/lib*${SOLIBS} \ |
| 82 | ${libdir}/${MUTTER_API_NAME}/*.typelib \ |
| 83 | ${libdir}/${MUTTER_API_NAME}/plugins \ |
| 84 | " |
| 85 | |
| 86 | FILES:${PN}-tests += " \ |
| 87 | ${datadir}/installed-tests \ |
| 88 | ${datadir}/${MUTTER_API_NAME}/tests \ |
| 89 | ${libexecdir}/installed-tests/${MUTTER_API_NAME} \ |
| 90 | " |
| 91 | |
| 92 | FILES:${PN}-dev += " \ |
| 93 | ${libdir}/${MUTTER_API_NAME}/*.gir \ |
| 94 | ${libdir}/${MUTTER_API_NAME}/lib*.so \ |
| 95 | " |
| 96 | |
| 97 | RDEPENDS:${PN} += "zenity ${PN}-gsettings" |
| 98 | |