Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | SUMMARY = "Tracker miners and metadata extractors" |
| 2 | LICENSE = "GPL-2.0-only & LGPL-2.1-only" |
| 3 | LIC_FILES_CHKSUM = " \ |
| 4 | file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \ |
| 5 | file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 6 | " |
| 7 | |
| 8 | DEPENDS = " \ |
| 9 | intltool-native \ |
| 10 | tracker \ |
| 11 | zlib \ |
| 12 | " |
| 13 | |
| 14 | GNOMEBASEBUILDCLASS = "meson" |
| 15 | |
| 16 | inherit gnomebase gsettings gobject-introspection vala bash-completion features_check |
| 17 | |
| 18 | SRC_URI += "file://0001-meson.build-Just-warn-if-we-build-without-libseccomp.patch \ |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 19 | file://0001-Set-header-file-to-a-fixed-path-instead-of-a-host-pa.patch \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 20 | " |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 21 | SRC_URI[archive.sha256sum] = "17966603dc432a98526b490586a48acd7f9f59935f7895dfc51729a46a6901a3" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 22 | |
| 23 | # gobject-introspection is mandatory and cannot be configured |
| 24 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
| 25 | GIR_MESON_OPTION = "" |
| 26 | |
| 27 | PACKAGECONFIG ??= " \ |
| 28 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "ffmpeg", "", d)} \ |
| 29 | gexiv2 \ |
| 30 | gstreamer \ |
| 31 | icu \ |
| 32 | libexif \ |
| 33 | libgsf \ |
| 34 | jpeg \ |
| 35 | pdf \ |
| 36 | png \ |
| 37 | tiff \ |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 38 | raw \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 39 | xml \ |
| 40 | ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \ |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 41 | battery \ |
| 42 | networkmanager \ |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 43 | " |
| 44 | |
| 45 | PACKAGECONFIG[battery] = "-Dbattery_detection=upower,-Dbattery_detection=none,upower" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 46 | PACKAGECONFIG[cue] = "-Dcue=enabled,-Dcue=disabled,libcue" |
| 47 | PACKAGECONFIG[ffmpeg] = "-Dgeneric_media_extractor=libav,,ffmpeg" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 48 | PACKAGECONFIG[gexiv2] = ",,gexiv2" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 49 | PACKAGECONFIG[gstreamer] = "-Dgeneric_media_extractor=gstreamer,,gstreamer1.0 gstreamer1.0-plugins-base" |
| 50 | PACKAGECONFIG[gupnp] = "-Dgstreamer_backend=gupnp,,gupnp-dlna" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 51 | PACKAGECONFIG[gif] = "-Dgif=enabled,-Dgif=disabled,giflib" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 52 | PACKAGECONFIG[icu] = "-Dcharset_detection=icu,,icu" |
| 53 | PACKAGECONFIG[iso] = "-Diso=enabled,-Diso=disabled,libosinfo" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 54 | PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg" |
| 55 | PACKAGECONFIG[libexif] = "-Dexif=enabled,-Dexif=disabled,libexif" |
| 56 | PACKAGECONFIG[libgsf] = "-Dgsf=enabled,-Dgsf=disabled,libgsf" |
| 57 | PACKAGECONFIG[pdf] = "-Dpdf=enabled,-Dpdf=disabled,poppler" |
| 58 | PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng" |
| 59 | PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 60 | PACKAGECONFIG[raw] = "-Draw=enabled,-Draw=disabled,libraw" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 61 | PACKAGECONFIG[xml] = "-Dxml=enabled,-Dxml=disabled,libxml2" |
Patrick Williams | 8e7b46e | 2023-05-01 14:19:06 -0500 | [diff] [blame^] | 62 | PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanager" |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 63 | |
| 64 | # For security reasons it is strongly recommended to set add meta-security in |
| 65 | # your layers and 'libseccomp' to PACKAGECONFIG". |
| 66 | PACKAGECONFIG[seccomp] = "-Dseccomp=true,-Dseccomp=false,libseccomp" |
| 67 | # not yet in meta-gnome |
| 68 | PACKAGECONFIG[rss] = "-Dminer_rss=true,-Dminer_rss=false,libgrss" |
| 69 | |
| 70 | EXTRA_OEMESON += " \ |
| 71 | -Dman=false \ |
| 72 | -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \ |
| 73 | -Dsystemd_user_services_dir=${systemd_user_unitdir} \ |
| 74 | " |
| 75 | |
| 76 | FILES:${PN} += " \ |
| 77 | ${datadir}/dbus-1 \ |
| 78 | ${datadir}/tracker3-miners \ |
| 79 | ${libdir}/tracker-miners-3.0 \ |
| 80 | ${systemd_user_unitdir} \ |
| 81 | " |