Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -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 | |
Brad Bishop | 8410d61 | 2019-11-25 09:40:59 -0500 | [diff] [blame^] | 23 | inherit gnomebase gsettings gobject-introspection vala gtk-doc manpages bash-completion features_check |
Brad Bishop | 23eaf03 | 2019-11-20 05:15:02 -0500 | [diff] [blame] | 24 | |
| 25 | SRC_URI[archive.md5sum] = "5e75b611b190c4cebf53e3de15266429" |
| 26 | SRC_URI[archive.sha256sum] = "b6748726e465ad2f4d991560634b1fd0df8841f3d981b3b837c4162abedf08a1" |
| 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 | " |