blob: 344da7ea77cebb15bf0435f0cade4cfb815b4843 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001SUMMARY = "Shared MIME type database and specification"
2HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info"
3SECTION = "base"
4
Brad Bishopd5ae7d92018-06-14 09:52:03 -07005LICENSE = "GPLv2"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05006LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7
8DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
Patrick Williamsc124f4f2015-09-15 14:41:29 -05009
10SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.xz"
11
12inherit autotools pkgconfig gettext
13
14EXTRA_OECONF = "--disable-update-mimedb"
15
16FILES_${PN} += "${datadir}/mime"
17FILES_${PN}-dev += "${datadir}/pkgconfig/shared-mime-info.pc"
18
19# freedesktop.org.xml is only required when updating the mime database,
20# package it separately
21PACKAGES =+ "shared-mime-info-data"
22FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml"
23RDEPENDS_shared-mime-info-data = "shared-mime-info"
24
25do_install () {
26 autotools_do_install
27
28 update-mime-database ${D}${datadir}/mime
29}
30
31do_install_class-native () {
32 autotools_do_install
33}
34
Brad Bishopd7bf8c12018-02-25 22:55:05 -050035BBCLASSEXTEND = "native nativesdk"