summaryrefslogtreecommitdiffstats
path: root/recipes-support/shared-mime-info/shared-mime-info.inc
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-support/shared-mime-info/shared-mime-info.inc')
-rw-r--r--recipes-support/shared-mime-info/shared-mime-info.inc37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes-support/shared-mime-info/shared-mime-info.inc b/recipes-support/shared-mime-info/shared-mime-info.inc
new file mode 100644
index 0000000..3fe1a44
--- /dev/null
+++ b/recipes-support/shared-mime-info/shared-mime-info.inc
@@ -0,0 +1,37 @@
1SUMMARY = "Shared MIME type database and specification"
2HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info"
3SECTION = "base"
4
5LICENSE = "GPLv2"
6LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
7
8DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native"
9
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 ${B}/update-mime-database ${D}${datadir}/mime
35}
36
37BBCLASSEXTEND = "native nativesdk"