Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 1 | SUMMARY = "Shared MIME type database and specification" |
| 2 | DESCRIPTION = "The shared-mime-info package contains the core database of common types." |
| 3 | HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info" |
| 4 | SECTION = "base" |
| 5 | |
| 6 | LICENSE = "GPL-2.0-only" |
| 7 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 8 | |
| 9 | DEPENDS = "libxml2 itstool-native glib-2.0 shared-mime-info-native xmlto-native" |
| 10 | |
Patrick Williams | da29531 | 2023-12-05 16:48:56 -0600 | [diff] [blame] | 11 | SRC_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 Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 14 | SRCREV = "9a6d6b8e963935f145f3a1ef446552de6996dada" |
| 15 | |
| 16 | S = "${WORKDIR}/git" |
| 17 | |
| 18 | inherit meson pkgconfig gettext python3native mime |
| 19 | |
| 20 | EXTRA_OEMESON = "-Dupdate-mimedb=true" |
| 21 | |
| 22 | FILES:${PN} += "${datadir}/mime" |
| 23 | FILES:${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 |
| 27 | PACKAGES =+ "shared-mime-info-data" |
| 28 | FILES:shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" |
| 29 | RDEPENDS:shared-mime-info-data = "shared-mime-info" |
| 30 | |
| 31 | BBCLASSEXTEND = "native nativesdk" |