Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -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 | libseccomp \ |
| 11 | tracker \ |
| 12 | zlib \ |
| 13 | " |
| 14 | |
| 15 | |
| 16 | inherit gnomebase gsettings gobject-introspection vala bash-completion features_check |
| 17 | |
| 18 | SRC_URI:append = " \ |
| 19 | file://0001-fix-reproducibility.patch \ |
| 20 | file://0001-Set-header-file-to-a-fixed-path-instead-of-a-host-pa.patch \ |
| 21 | " |
| 22 | SRC_URI[archive.sha256sum] = "0ad722f3d532c21d757cf488f942960679ea8f457925efa97656ed4c9e9ba4ff" |
| 23 | |
| 24 | # gobject-introspection is mandatory and cannot be configured |
| 25 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
| 26 | GIR_MESON_OPTION = "" |
| 27 | VALA_MESON_OPTION = "" |
| 28 | |
| 29 | PACKAGECONFIG ??= " \ |
| 30 | ${@bb.utils.contains("LICENSE_FLAGS_ACCEPTED", "commercial", "ffmpeg", "", d)} \ |
| 31 | gexiv2 \ |
| 32 | gstreamer \ |
| 33 | icu \ |
| 34 | libexif \ |
| 35 | libgsf \ |
| 36 | jpeg \ |
| 37 | pdf \ |
| 38 | png \ |
| 39 | tiff \ |
| 40 | raw \ |
| 41 | xml \ |
| 42 | ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \ |
| 43 | battery \ |
| 44 | networkmanager \ |
| 45 | " |
| 46 | |
| 47 | PACKAGECONFIG[battery] = "-Dbattery_detection=upower,-Dbattery_detection=none,upower" |
| 48 | PACKAGECONFIG[cue] = "-Dcue=enabled,-Dcue=disabled,libcue" |
| 49 | PACKAGECONFIG[ffmpeg] = "-Dgeneric_media_extractor=libav,,ffmpeg" |
| 50 | PACKAGECONFIG[gexiv2] = ",,gexiv2" |
| 51 | PACKAGECONFIG[gstreamer] = "-Dgeneric_media_extractor=gstreamer,,gstreamer1.0 gstreamer1.0-plugins-base" |
| 52 | PACKAGECONFIG[gupnp] = "-Dgstreamer_backend=gupnp,,gupnp-dlna" |
| 53 | PACKAGECONFIG[gif] = "-Dgif=enabled,-Dgif=disabled,giflib" |
| 54 | PACKAGECONFIG[icu] = "-Dcharset_detection=icu,,icu" |
| 55 | PACKAGECONFIG[iso] = "-Diso=enabled,-Diso=disabled,libosinfo" |
| 56 | PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg" |
| 57 | PACKAGECONFIG[libexif] = "-Dexif=enabled,-Dexif=disabled,libexif" |
| 58 | PACKAGECONFIG[libgsf] = "-Dgsf=enabled,-Dgsf=disabled,libgsf" |
| 59 | PACKAGECONFIG[pdf] = "-Dpdf=enabled,-Dpdf=disabled,poppler" |
| 60 | PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng" |
| 61 | PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff" |
| 62 | PACKAGECONFIG[raw] = "-Draw=enabled,-Draw=disabled,libraw" |
| 63 | PACKAGECONFIG[xml] = "-Dxml=enabled,-Dxml=disabled,libxml2" |
| 64 | PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanager" |
| 65 | |
| 66 | # For security reasons it is strongly recommended to set add meta-security in |
| 67 | # your layers and 'libseccomp' to PACKAGECONFIG". |
| 68 | PACKAGECONFIG[seccomp] = "-Dseccomp=true,-Dseccomp=false,libseccomp" |
| 69 | # not yet in meta-gnome |
| 70 | PACKAGECONFIG[rss] = "-Dminer_rss=true,-Dminer_rss=false,libgrss" |
| 71 | |
| 72 | EXTRA_OEMESON += " \ |
| 73 | -Dman=false \ |
| 74 | -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \ |
| 75 | -Dsystemd_user_services_dir=${systemd_user_unitdir} \ |
| 76 | " |
| 77 | |
| 78 | FILES:${PN} += " \ |
| 79 | ${datadir}/dbus-1 \ |
| 80 | ${datadir}/tracker3-miners \ |
| 81 | ${libdir}/tracker-miners-3.0 \ |
| 82 | ${systemd_user_unitdir} \ |
| 83 | " |