blob: ef5df44ad69852ecb528bd45a0f89ca52d258cde [file] [log] [blame]
Patrick Williamsac13d5f2023-11-24 18:59:46 -06001SUMMARY = "Shared MIME type database and specification"
2DESCRIPTION = "The shared-mime-info package contains the core database of common types."
3HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info"
4SECTION = "base"
5
6LICENSE = "GPL-2.0-only"
7LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
8
9DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native xmlto-native"
10
Patrick Williamsda295312023-12-05 16:48:56 -060011SRC_URI = "git://gitlab.freedesktop.org/xdg/shared-mime-info.git;protocol=https;branch=master \
12 file://0001-Fix-build-with-libxml2-2.12.0-and-clang-17.patch \
13 file://0002-Handle-build-with-older-versions-of-GCC.patch"
Patrick Williamsac13d5f2023-11-24 18:59:46 -060014SRCREV = "9a6d6b8e963935f145f3a1ef446552de6996dada"
15
16S = "${WORKDIR}/git"
17
18inherit meson pkgconfig gettext python3native mime
19
20EXTRA_OEMESON = "-Dupdate-mimedb=true"
21
22FILES:${PN} += "${datadir}/mime"
23FILES:${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc ${datadir}/gettext/its"
24
25# freedesktop.org.xml is only required when updating the mime database,
26# package it separately
27PACKAGES =+ "shared-mime-info-data"
28FILES:shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
29RDEPENDS:shared-mime-info-data = "shared-mime-info"
30
31BBCLASSEXTEND = "native nativesdk"