blob: 6672195e001680c63a3b2e66869efda62c658870 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "Tracker miners and metadata extractors"
2LICENSE = "GPLv2 & LGPLv2.1"
3LIC_FILES_CHKSUM = " \
4 file://COPYING.GPL;md5=ee31012bf90e7b8c108c69f197f3e3a4 \
5 file://COPYING.LGPL;md5=2d5025d4aa3495befef8f17206a5b0a1 \
6"
7
8DEPENDS = " \
9 intltool-native \
10 tracker \
11 zlib \
12"
13
14GNOMEBASEBUILDCLASS = "meson"
15
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070016inherit gnomebase gsettings gobject-introspection vala bash-completion features_check
Andrew Geissler82c905d2020-04-13 13:39:40 -050017
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070018SRC_URI[archive.sha256sum] = "c9be14871b1398e6e656a354a8f8f59e69e93169017f2b28308ef439324fd12b"
Andrew Geissler82c905d2020-04-13 13:39:40 -050019SRC_URI += "file://0001-meson.build-Just-warn-if-we-build-without-libseccomp.patch"
20
21# gobject-introspection is mandatory and cannot be configured
22REQUIRED_DISTRO_FEATURES = "gobject-introspection-data"
23UNKNOWN_CONFIGURE_WHITELIST_append = " introspection"
24
25PACKAGECONFIG ??= " \
Andrew Geissler32b11992021-03-31 13:37:05 -050026 ${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "ffmpeg", "", d)} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050027 gexiv2 \
28 gstreamer \
29 icu \
30 libexif \
31 libgsf \
32 jpeg \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070033 pdf \
Andrew Geissler82c905d2020-04-13 13:39:40 -050034 png \
35 tiff \
36 xml \
Andrew Geissler82c905d2020-04-13 13:39:40 -050037"
38
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070039PACKAGECONFIG[battery] = "-Dbattery_detection=upower,-Dbattery_detection=none,upower"
Andrew Geissler82c905d2020-04-13 13:39:40 -050040PACKAGECONFIG[ffmpeg] = ",,ffmpeg"
Andrew Geissler82c905d2020-04-13 13:39:40 -050041PACKAGECONFIG[gexiv2] = ",,gexiv2"
42PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base"
43PACKAGECONFIG[gupnp] = ",,gupnp-dlna"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070044PACKAGECONFIG[gif] = "-Dgif=enabled,-Dgif=disabled,giflib"
Andrew Geissler82c905d2020-04-13 13:39:40 -050045PACKAGECONFIG[icu] = ",,icu"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070046PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
Andrew Geissler82c905d2020-04-13 13:39:40 -050047PACKAGECONFIG[libexif] = "-Dexif=enabled,-Dexif=disabled,libexif"
48PACKAGECONFIG[libgsf] = "-Dgsf=enabled,-Dgsf=disabled,libgsf"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070049PACKAGECONFIG[pdf] = "-Dpdf=enabled,-Dpdf=disabled,poppler"
Andrew Geissler82c905d2020-04-13 13:39:40 -050050PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng"
51PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff"
52PACKAGECONFIG[xml] = "-Dxml=enabled,-Dxml=disabled,libxml2"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070053PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanger"
Andrew Geissler82c905d2020-04-13 13:39:40 -050054
55# For security reasons it is strongly recommended to set add meta-security in
56# your layers and 'libseccomp' to PACKAGECONFIG".
57PACKAGECONFIG[libseccomp] = ",,libseccomp"
58# not yet in meta-gnome
59PACKAGECONFIG[rss] = "-Dminer_rss=true,-Dminer_rss=false,libgrss"
60
Andrew Geisslerd221e032020-07-10 16:13:21 -050061EXTRA_OEMESON += " \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070062 -Dman=false \
63 -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \
64 -Dsystemd_user_services_dir=${systemd_user_unitdir} \
Andrew Geisslerd221e032020-07-10 16:13:21 -050065"
66
Andrew Geissler82c905d2020-04-13 13:39:40 -050067FILES_${PN} += " \
68 ${datadir}/dbus-1 \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070069 ${datadir}/tracker3-miners \
70 ${libdir}/tracker-miners-3.0 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050071 ${systemd_user_unitdir} \
72"