xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-graphics/harfbuzz/harfbuzz_4.0.1.bb (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunSUMMARY = "Text shaping library"
2*4882a593SmuzhiyunDESCRIPTION = "HarfBuzz is an OpenType text shaping engine."
3*4882a593SmuzhiyunHOMEPAGE = "http://www.freedesktop.org/wiki/Software/HarfBuzz"
4*4882a593SmuzhiyunBUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=HarfBuzz"
5*4882a593SmuzhiyunSECTION = "libs"
6*4882a593SmuzhiyunLICENSE = "MIT"
7*4882a593SmuzhiyunLIC_FILES_CHKSUM = "file://COPYING;md5=6ee0f16281694fb6aa689cca1e0fb3da \
8*4882a593Smuzhiyun                    file://src/hb-ucd.cc;beginline=1;endline=15;md5=29d4dcb6410429195df67efe3382d8bc \
9*4882a593Smuzhiyun                    "
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunUPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases"
12*4882a593SmuzhiyunUPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar"
13*4882a593Smuzhiyun
14*4882a593SmuzhiyunSRC_URI = "https://github.com/${BPN}/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.xz \
15*4882a593Smuzhiyun           file://CVE-2022-33068.patch \
16*4882a593Smuzhiyun           file://0001-Fix-conditional.patch \
17*4882a593Smuzhiyun           file://CVE-2023-25193-pre1.patch \
18*4882a593Smuzhiyun           file://CVE-2023-25193.patch"
19*4882a593SmuzhiyunSRC_URI[sha256sum] = "98f68777272db6cd7a3d5152bac75083cd52a26176d87bc04c8b3929d33bce49"
20*4882a593Smuzhiyun
21*4882a593Smuzhiyuninherit meson pkgconfig lib_package gtk-doc gobject-introspection
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunGIR_MESON_ENABLE_FLAG = 'enabled'
24*4882a593SmuzhiyunGIR_MESON_DISABLE_FLAG = 'disabled'
25*4882a593SmuzhiyunGTKDOC_MESON_ENABLE_FLAG = 'enabled'
26*4882a593SmuzhiyunGTKDOC_MESON_DISABLE_FLAG = 'disabled'
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunPACKAGECONFIG ??= "cairo freetype glib icu"
29*4882a593SmuzhiyunPACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo"
30*4882a593SmuzhiyunPACKAGECONFIG[freetype] = "-Dfreetype=enabled,-Dfreetype=disabled,freetype"
31*4882a593SmuzhiyunPACKAGECONFIG[glib] = "-Dglib=enabled,-Dglib=disabled,glib-2.0"
32*4882a593SmuzhiyunPACKAGECONFIG[graphite] = "-Dgraphite=enabled,-Dgraphite=disabled,graphite2"
33*4882a593SmuzhiyunPACKAGECONFIG[icu] = "-Dicu=enabled,-Dicu=disabled,icu"
34*4882a593Smuzhiyun
35*4882a593SmuzhiyunPACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset"
36*4882a593Smuzhiyun
37*4882a593SmuzhiyunLEAD_SONAME = "libharfbuzz.so"
38*4882a593Smuzhiyun
39*4882a593Smuzhiyundo_install:append() {
40*4882a593Smuzhiyun    # If no tools are installed due to PACKAGECONFIG then this directory might
41*4882a593Smuzhiyun    # still be installed, so remove it to stop packaging warnings.
42*4882a593Smuzhiyun    [ ! -d ${D}${bindir} ] || rmdir --ignore-fail-on-non-empty ${D}${bindir}
43*4882a593Smuzhiyun}
44*4882a593Smuzhiyun
45*4882a593SmuzhiyunFILES:${PN}-icu = "${libdir}/libharfbuzz-icu.so.*"
46*4882a593SmuzhiyunFILES:${PN}-icu-dev = "${libdir}/libharfbuzz-icu.la \
47*4882a593Smuzhiyun                       ${libdir}/libharfbuzz-icu.so \
48*4882a593Smuzhiyun                       ${libdir}/pkgconfig/harfbuzz-icu.pc \
49*4882a593Smuzhiyun"
50*4882a593SmuzhiyunFILES:${PN}-subset = "${libdir}/libharfbuzz-subset.so.*"
51*4882a593Smuzhiyun
52*4882a593SmuzhiyunBBCLASSEXTEND = "native nativesdk"
53