blob: ae54bad643f9ddabcba723d2c4e9dc5ec08b56c0 [file] [log] [blame]
Andrew Geissler517393d2023-01-13 08:55:19 -06001SUMMARY = "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=6ee0f16281694fb6aa689cca1e0fb3da \
8 file://src/hb-ucd.cc;beginline=1;endline=15;md5=29d4dcb6410429195df67efe3382d8bc \
9 "
10
11SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz"
12SRC_URI[sha256sum] = "1d1010a1751d076d5291e433c138502a794d679a7498d1268ee21e2d4a140eb4"
13
14inherit meson pkgconfig lib_package gtk-doc gobject-introspection github-releases
15
16GIR_MESON_ENABLE_FLAG = 'enabled'
17GIR_MESON_DISABLE_FLAG = 'disabled'
18GTKDOC_MESON_ENABLE_FLAG = 'enabled'
19GTKDOC_MESON_DISABLE_FLAG = 'disabled'
20
21PACKAGECONFIG ??= "cairo freetype glib icu"
22PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
23PACKAGECONFIG[freetype] = "-Dfreetype=enabled,-Dfreetype=disabled,freetype"
24PACKAGECONFIG[glib] = "-Dglib=enabled,-Dglib=disabled,glib-2.0"
25PACKAGECONFIG[graphite] = "-Dgraphite=enabled,-Dgraphite=disabled,graphite2"
26PACKAGECONFIG[icu] = "-Dicu=enabled,-Dicu=disabled,icu"
27
28PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset"
29
30LEAD_SONAME = "libharfbuzz.so"
31
32do_install:append() {
33 # If no tools are installed due to PACKAGECONFIG then this directory might
34 # still be installed, so remove it to stop packaging warnings.
35 [ ! -d ${D}${bindir} ] || rmdir --ignore-fail-on-non-empty ${D}${bindir}
36}
37
38FILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*"
39FILES:${PN}-icu-dev = "${libdir}/libharfbuzz-icu.la \
40 ${libdir}/libharfbuzz-icu.so \
41 ${libdir}/pkgconfig/harfbuzz-icu.pc \
42"
43FILES:${PN}-subset = "${libdir}/libharfbuzz-subset.so.*"
44
45BBCLASSEXTEND = "native nativesdk"