Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Shared MIME type database and specification" |
| 2 | HOMEPAGE = "http://freedesktop.org/wiki/Software/shared-mime-info" |
| 3 | SECTION = "base" |
| 4 | |
| 5 | LICENSE = "LGPLv2+" |
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" |
| 7 | |
| 8 | DEPENDS = "libxml2 intltool-native glib-2.0 shared-mime-info-native" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 9 | |
| 10 | SRC_URI = "http://freedesktop.org/~hadess/shared-mime-info-${PV}.tar.xz" |
| 11 | |
| 12 | inherit autotools pkgconfig gettext |
| 13 | |
| 14 | EXTRA_OECONF = "--disable-update-mimedb" |
| 15 | |
| 16 | FILES_${PN} += "${datadir}/mime" |
| 17 | FILES_${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 |
| 21 | PACKAGES =+ "shared-mime-info-data" |
| 22 | FILES_shared-mime-info-data = "${datadir}/mime/packages/freedesktop.org.xml" |
| 23 | RDEPENDS_shared-mime-info-data = "shared-mime-info" |
| 24 | |
| 25 | do_install () { |
| 26 | autotools_do_install |
| 27 | |
| 28 | update-mime-database ${D}${datadir}/mime |
| 29 | } |
| 30 | |
| 31 | do_install_class-native () { |
| 32 | autotools_do_install |
| 33 | } |
| 34 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 35 | BBCLASSEXTEND = "native nativesdk" |