blob: f95273f686f0e3781be521e3c23d34d64ec1eef5 [file] [log] [blame]
Andrew Geisslerc9f78652020-09-18 14:11:35 -05001SUMMARY = "Text shaping library"
2DESCRIPTION = "HarfBuzz is an OpenType text shaping engine."
3HOMEPAGE = "http://www.freedesktop.org/wiki/Software/HarfBuzz"
4BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=HarfBuzz"
5SECTION = "libs"
6LICENSE = "MIT"
7LIC_FILES_CHKSUM = "file://COPYING;md5=8f787620b7d3866d9552fd1924c07572 \
8 file://src/hb-ucd.cc;beginline=1;endline=15;md5=29d4dcb6410429195df67efe3382d8bc"
9
10UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
11UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar"
12
13SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
14 file://0001-Do-not-disable-introspection-in-cross-builds.patch \
15 file://0001-src-hb-gobject-enums.cc.tmpl-write-out-only-the-file.patch \
16 file://version-race.patch \
17 "
18SRC_URI[sha256sum] = "b8c048d7c2964a12f2c80deb6634dfc836b603dd12bf0d0a3df1627698e220ce"
19
20inherit meson pkgconfig lib_package gtk-doc gobject-introspection
21
22GIR_MESON_ENABLE_FLAG = 'enabled'
23GIR_MESON_DISABLE_FLAG = 'disabled'
24GTKDOC_MESON_ENABLE_FLAG = 'enabled'
25GTKDOC_MESON_DISABLE_FLAG = 'disabled'
26
27PACKAGECONFIG ??= "cairo fontconfig freetype glib icu"
28PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
29PACKAGECONFIG[fontconfig] = "-Dfontconfig=enabled,-Dfontconfig=disabled,fontconfig"
30PACKAGECONFIG[freetype] = "-Dfreetype=enabled,-Dfreetype=disabled,freetype"
31PACKAGECONFIG[glib] = "-Dglib=enabled,-Dglib=disabled,glib-2.0"
32PACKAGECONFIG[graphite] = "-Dgraphite=enabled,-Dgraphite=disabled,graphite2"
33PACKAGECONFIG[icu] = "-Dicu=enabled,-Dicu=disabled,icu"
34
35PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset"
36
37LEAD_SONAME = "libharfbuzz.so"
38
39do_install_append() {
40 # If no tools are installed due to PACKAGECONFIG then this directory is
41 #still installed, so remove it to stop packaging wanings.
42 rmdir --ignore-fail-on-non-empty ${D}${bindir}
43}
44
45FILES_${PN}-icu = "${libdir}/libharfbuzz-icu.so.*"
46FILES_${PN}-icu-dev = "${libdir}/libharfbuzz-icu.la \
47 ${libdir}/libharfbuzz-icu.so \
48 ${libdir}/pkgconfig/harfbuzz-icu.pc \
49"
50FILES_${PN}-subset = "${libdir}/libharfbuzz-subset.so.*"
51
52BBCLASSEXTEND = "native nativesdk"