blob: 2c11976ca62bcba6422fe196cbd21aa905c3efce [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
Andrew Geisslera2681d92020-10-16 10:17:07 -050025SRC_URI[archive.sha256sum] = "bd1eb4122135296fa7b57b1c3fa0ed602cf7d06c0b8e534d0bd17ff5f97feef2"
Andrew Geissler82c905d2020-04-13 13:39:40 -050026
27# gobject-introspection is mandatory and cannot be configured
28REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
29UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
30
31PACKAGECONFIG ??= "fts"
32PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanger"
33# full text search requires sqlite3 build with PACKAGECONFIG[fts5] set
34PACKAGECONFIG[fts] = "-Dfts=true,-Dfts=false"
35
36# set required cross property sqlite3_has_fts5
37do_write_config[vardeps] += "PACKAGECONFIG"
38do_write_config_append() {
39 echo "[properties]" > ${WORKDIR}/meson-tracker.cross
40 echo "sqlite3_has_fts5 = '${@bb.utils.contains('PACKAGECONFIG', 'fts', 'true', 'false', d)}'" >> ${WORKDIR}/meson-tracker.cross
41}
42
Andrew Geisslerd221e032020-07-10 16:13:21 -050043EXTRA_OEMESON = "--cross-file ${WORKDIR}/meson-tracker.cross \
44 -Dsystemd_user_services=${systemd_user_unitdir} \
45"
Andrew Geissler82c905d2020-04-13 13:39:40 -050046
47FILES_${PN} += " \
48 ${datadir}/dbus-1 \
49 ${libdir}/tracker-2.0 \
50 ${systemd_user_unitdir} \
51"