blob: ae9077147d6ef7cca359657049424b628f4a10b6 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -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 gsettings gobject-introspection vala gtk-doc manpages bash-completion features_check
24
25SRC_URI[archive.md5sum] = "9937cf4812ca85078907324c7cdf7dd8"
26SRC_URI[archive.sha256sum] = "577952244ab977c78b0b88e2f63c4197eaba16e4d66bff692b7f58993e06516d"
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"