blob: ad65630c1eb0bce857111522ee0244f3d3e72406 [file] [log] [blame]
Brad Bishop23eaf032019-11-20 05:15:02 -05001SUMMARY = "Tracker is a file search engine"
2LICENSE = "GPLv2 & LGPLv2.1"
3LIC_FILES_CHKSUM = " \
4 file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \
5 file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
6"
7
8DEPENDS = " \
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
21GNOMEBASEBUILDCLASS = "meson"
22
23inherit gnomebase gobject-introspection vala gtk-doc manpages bash-completion distro_features_check
24
25SRC_URI[archive.md5sum] = "5e75b611b190c4cebf53e3de15266429"
26SRC_URI[archive.sha256sum] = "b6748726e465ad2f4d991560634b1fd0df8841f3d981b3b837c4162abedf08a1"
27
28# gobject-introspection is mandatory and cannot be configured
29REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
30UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
31
32PACKAGECONFIG ??= "fts"
33PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanger"
34# full text search requires sqlite3 build with PACKAGECONFIG[fts5] set
35PACKAGECONFIG[fts] = "-Dfts=true,-Dfts=false"
36
37# set required cross property sqlite3_has_fts5
38do_write_config[vardeps] += "PACKAGECONFIG"
39do_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
44EXTRA_OEMESON = "--cross-file ${WORKDIR}/meson-tracker.cross"
45
46FILES_${PN} += " \
47 ${datadir}/dbus-1 \
48 ${libdir}/tracker-2.0 \
49 ${systemd_user_unitdir} \
50"