Skip to contentSkip to conversation

harfbuzz: upgrade 12.3.2 -> 13.2.1

PATCH New Wang Mingyu 1 participant 1 message Mar 25

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 harfbuzz: upgrade 12.3.2 -> 13.2.1

From: Wang Mingyu <[email protected]>

This commit upgrades HarfBuzz to version 13.2.1, addressing the need for a newer release with extended capabilities.

Key changes and improvements in this upgrade include:
* New hb-raster and hb-vector libraries:** HarfBuzz 13.x introduces 'hb-raster' for glyph rasterization and 'hb-vector' for vector output.
* Optional libpng and zlib dependencies:** The new 'hb-raster' and 'hb-vector' libraries may optionally depend on 'libpng' and 'zlib' for specific functionalities
* PACKAGECONFIG for libpng and zlib
* Separate Packaging for hb-raster and hb-vector

---
 .../{harfbuzz_12.3.2.bb => harfbuzz_13.2.1.bb}         | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
 rename meta/recipes-graphics/harfbuzz/{harfbuzz_12.3.2.bb => harfbuzz_13.2.1.bb} (76%)
meta/recipes-graphics/harfbuzz/harfbuzz_13.2.1.bb renamed from meta/recipes-graphics/harfbuzz/harfbuzz_12.3.2.bb +8 -2
similarity index 76%
rename from meta/recipes-graphics/harfbuzz/harfbuzz_12.3.2.bb
rename to meta/recipes-graphics/harfbuzz/harfbuzz_13.2.1.bb
index 12bebc4bee..4a3d9df241 100644
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=b98429b8e8e3c2a67cfef01e99e4893d \
                     "
 
 SRC_URI = "${GITHUB_BASE_URI}/download/${PV}/${BPN}-${PV}.tar.xz"
-SRC_URI[sha256sum] = "6f6db164359a2da5a84ef826615b448b33e6306067ad829d85d5b0bf936f1bb8"
+SRC_URI[sha256sum] = "6695da3eb7e1be0aa3092fe4d81433a33b47f4519259c759d729e3a9a55c1429"
 
 DEPENDS += "glib-2.0-native"
 
@@ -29,11 +29,13 @@ PACKAGECONFIG ??= "cairo freetype glib icu"
 PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
 PACKAGECONFIG[chafa] = "-Dchafa=enabled,-Dchafa=disabled,chafa"
 PACKAGECONFIG[freetype] = "-Dfreetype=enabled,-Dfreetype=disabled,freetype"
+PACKAGECONFIG[libpng] = "-Dpng=enabled,-Dpng=disabled,libpng"
+PACKAGECONFIG[zlib] = "-Dzlib=enabled,-Dzlib=disabled,zlib"
 PACKAGECONFIG[glib] = "-Dglib=enabled,-Dglib=disabled,glib-2.0"
 PACKAGECONFIG[graphite] = "-Dgraphite2=enabled,-Dgraphite2=disabled,graphite2"
 PACKAGECONFIG[icu] = "-Dicu=enabled,-Dicu=disabled,icu"
 
-PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset"
+PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset ${PN}-raster ${PN}-vector"
 
 LEAD_SONAME = "libharfbuzz.so"
 
@@ -48,5 +50,9 @@ FILES:${PN}-icu-dev = "${libdir}/libharfbuzz-icu.so \
                        ${libdir}/pkgconfig/harfbuzz-icu.pc \
 "
 FILES:${PN}-subset = "${libdir}/libharfbuzz-subset.so.*"
+FILES:${PN}-raster = "${libdir}/libharfbuzz-raster.so.*"
+FILES:${PN}-raster-dev = "${libdir}/libharfbuzz-raster.so ${libdir}/pkgconfig/harfbuzz-raster.pc"
+FILES:${PN}-vector = "${libdir}/libharfbuzz-vector.so.*"
+FILES:${PN}-vector-dev = "${libdir}/libharfbuzz-vector.so ${libdir}/pkgconfig/harfbuzz-vector.pc"
 
 BBCLASSEXTEND = "native nativesdk"
Signature · 1 line
2.43.0