blob: c2de723ac940c043847eed829327778ae8af1a0d [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
Andrew Geissler69721092021-07-23 12:57:00 -040018SRC_URI[archive.sha256sum] = "e4d361351b156f2862a524415fbebf0539c781cd87c6629662f0265b4803b8b8"
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"
Patrick Williams213cb262021-08-07 19:21:33 -050023UNKNOWN_CONFIGURE_WHITELIST:append = " introspection"
Andrew Geissler82c905d2020-04-13 13:39:40 -050024
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 Geissler69721092021-07-23 12:57:00 -040037 ${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)} \
Andrew Geissler82c905d2020-04-13 13:39:40 -050038"
39
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070040PACKAGECONFIG[battery] = "-Dbattery_detection=upower,-Dbattery_detection=none,upower"
Andrew Geissler82c905d2020-04-13 13:39:40 -050041PACKAGECONFIG[ffmpeg] = ",,ffmpeg"
Andrew Geissler82c905d2020-04-13 13:39:40 -050042PACKAGECONFIG[gexiv2] = ",,gexiv2"
43PACKAGECONFIG[gstreamer] = ",,gstreamer1.0 gstreamer1.0-plugins-base"
44PACKAGECONFIG[gupnp] = ",,gupnp-dlna"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070045PACKAGECONFIG[gif] = "-Dgif=enabled,-Dgif=disabled,giflib"
Andrew Geissler82c905d2020-04-13 13:39:40 -050046PACKAGECONFIG[icu] = ",,icu"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070047PACKAGECONFIG[jpeg] = "-Djpeg=enabled,-Djpeg=disabled,jpeg"
Andrew Geissler82c905d2020-04-13 13:39:40 -050048PACKAGECONFIG[libexif] = "-Dexif=enabled,-Dexif=disabled,libexif"
49PACKAGECONFIG[libgsf] = "-Dgsf=enabled,-Dgsf=disabled,libgsf"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070050PACKAGECONFIG[pdf] = "-Dpdf=enabled,-Dpdf=disabled,poppler"
Andrew Geissler82c905d2020-04-13 13:39:40 -050051PACKAGECONFIG[png] = "-Dpng=enabled,-Dpng=disabled,libpng"
52PACKAGECONFIG[tiff] = "-Dtiff=enabled,-Dtiff=disabled,tiff"
53PACKAGECONFIG[xml] = "-Dxml=enabled,-Dxml=disabled,libxml2"
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070054PACKAGECONFIG[networkmanager] = "-Dnetwork_manager=enabled,-Dnetwork_manager=disabled,networkmanger"
Andrew Geissler82c905d2020-04-13 13:39:40 -050055
56# For security reasons it is strongly recommended to set add meta-security in
57# your layers and 'libseccomp' to PACKAGECONFIG".
Andrew Geissler69721092021-07-23 12:57:00 -040058PACKAGECONFIG[seccomp] = "-Dseccomp=true,-Dseccomp=false,libseccomp"
Andrew Geissler82c905d2020-04-13 13:39:40 -050059# not yet in meta-gnome
60PACKAGECONFIG[rss] = "-Dminer_rss=true,-Dminer_rss=false,libgrss"
61
Andrew Geisslerd221e032020-07-10 16:13:21 -050062EXTRA_OEMESON += " \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070063 -Dman=false \
64 -Dsystemd_user_services=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)} \
65 -Dsystemd_user_services_dir=${systemd_user_unitdir} \
Andrew Geisslerd221e032020-07-10 16:13:21 -050066"
67
Patrick Williams213cb262021-08-07 19:21:33 -050068FILES:${PN} += " \
Andrew Geissler82c905d2020-04-13 13:39:40 -050069 ${datadir}/dbus-1 \
William A. Kennington IIIb95905d2021-06-02 12:40:56 -070070 ${datadir}/tracker3-miners \
71 ${libdir}/tracker-miners-3.0 \
Andrew Geissler82c905d2020-04-13 13:39:40 -050072 ${systemd_user_unitdir} \
73"