1SUMMARY = "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 11UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" 12UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar" 13 14SRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \ 15 file://CVE-2022-33068.patch \ 16 file://0001-Fix-conditional.patch \ 17 file://CVE-2023-25193-pre1.patch \ 18 file://CVE-2023-25193.patch" 19SRC_URI[sha256sum] = "98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49" 20 21inherit meson pkgconfig lib_package gtk-doc gobject-introspection 22 23GIR_MESON_ENABLE_FLAG = 'enabled' 24GIR_MESON_DISABLE_FLAG = 'disabled' 25GTKDOC_MESON_ENABLE_FLAG = 'enabled' 26GTKDOC_MESON_DISABLE_FLAG = 'disabled' 27 28PACKAGECONFIG ??= "cairo freetype glib icu" 29PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo" 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 might 41 # still be installed, so remove it to stop packaging warnings. 42 [ ! -d ${D}${bindir} ] || 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" 53