Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "Tracker is a file search engine" |
| 2 | LICENSE = "GPLv2 & LGPLv2.1" |
| 3 | LIC_FILES_CHKSUM = " \ |
| 4 | file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \ |
| 5 | file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \ |
| 6 | " |
| 7 | |
| 8 | DEPENDS = " \ |
| 9 | libxml2-native \ |
| 10 | dbus-native \ |
| 11 | glib-2.0 \ |
| 12 | sqlite3 \ |
| 13 | libarchive \ |
| 14 | dbus \ |
| 15 | icu \ |
| 16 | json-glib \ |
| 17 | libsoup-2.4 \ |
| 18 | libstemmer \ |
| 19 | " |
| 20 | |
| 21 | GNOMEBASEBUILDCLASS = "meson" |
| 22 | |
| 23 | inherit gnomebase gsettings gobject-introspection vala gtk-doc manpages bash-completion features_check |
| 24 | |
| 25 | SRC_URI[archive.md5sum] = "9937cf4812ca85078907324c7cdf7dd8" |
| 26 | SRC_URI[archive.sha256sum] = "577952244ab977c78b0b88e2f63c4197eaba16e4d66bff692b7f58993e06516d" |
| 27 | |
| 28 | # gobject-introspection is mandatory and cannot be configured |
| 29 | REQUIRED_DISTRO_FEATURES = "gobject-introspection-data" |
| 30 | UNKNOWN_CONFIGURE_WHITELIST_append = " introspection" |
| 31 | |
| 32 | PACKAGECONFIG ??= "fts" |
| 33 | PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanger" |
| 34 | # full text search requires sqlite3 build with PACKAGECONFIG[fts5] set |
| 35 | PACKAGECONFIG[fts] = "-Dfts=true,-Dfts=false" |
| 36 | |
| 37 | # set required cross property sqlite3_has_fts5 |
| 38 | do_write_config[vardeps] += "PACKAGECONFIG" |
| 39 | do_write_config_append() { |
| 40 | echo "[properties]" > ${WORKDIR}/meson-tracker.cross |
| 41 | echo "sqlite3_has_fts5 = '${@bb.utils.contains('PACKAGECONFIG', 'fts', 'true', 'false', d)}'" >> ${WORKDIR}/meson-tracker.cross |
| 42 | } |
| 43 | |
| 44 | EXTRA_OEMESON = "--cross-file ${WORKDIR}/meson-tracker.cross" |
| 45 | |
| 46 | FILES_${PN} += " \ |
| 47 | ${datadir}/dbus-1 \ |
| 48 | ${libdir}/tracker-2.0 \ |
| 49 | ${systemd_user_unitdir} \ |
| 50 | " |