diff options
Diffstat (limited to 'meta/recipes-graphics/harfbuzz/harfbuzz_2.7.2.bb')
-rw-r--r-- | meta/recipes-graphics/harfbuzz/harfbuzz_2.7.2.bb | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.2.bb b/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.2.bb new file mode 100644 index 0000000000..8416eb93d8 --- /dev/null +++ b/meta/recipes-graphics/harfbuzz/harfbuzz_2.7.2.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | SUMMARY = "Text shaping library" | ||
2 | DESCRIPTION = "HarfBuzz is an OpenType text shaping engine." | ||
3 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/HarfBuzz" | ||
4 | BUGTRACKER = "https://bugs.freedesktop.org/enter_bug.cgi?product=HarfBuzz" | ||
5 | SECTION = "libs" | ||
6 | LICENSE = "MIT" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING;md5=8f787620b7d3866d9552fd1924c07572 \ | ||
8 | file://src/hb-ucd.cc;beginline=1;endline=15;md5=29d4dcb6410429195df67efe3382d8bc" | ||
9 | |||
10 | UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | ||
11 | UPSTREAM_CHECK_REGEX = "harfbuzz-(?P<pver>\d+(\.\d+)+).tar" | ||
12 | |||
13 | SRC_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 | " | ||
17 | SRC_URI[sha256sum] = "b8c048d7c2964a12f2c80deb6634dfc836b603dd12bf0d0a3df1627698e220ce" | ||
18 | |||
19 | inherit meson pkgconfig lib_package gtk-doc gobject-introspection | ||
20 | |||
21 | GIR_MESON_ENABLE_FLAG = 'enabled' | ||
22 | GIR_MESON_DISABLE_FLAG = 'disabled' | ||
23 | GTKDOC_MESON_ENABLE_FLAG = 'enabled' | ||
24 | GTKDOC_MESON_DISABLE_FLAG = 'disabled' | ||
25 | |||
26 | PACKAGECONFIG ??= "cairo fontconfig freetype glib icu" | ||
27 | PACKAGECONFIG[cairo] = "-Dcairo=enabled,-Dcairo=disabled,cairo" | ||
28 | PACKAGECONFIG[fontconfig] = "-Dfontconfig=enabled,-Dfontconfig=disabled,fontconfig" | ||
29 | PACKAGECONFIG[freetype] = "-Dfreetype=enabled,-Dfreetype=disabled,freetype" | ||
30 | PACKAGECONFIG[glib] = "-Dglib=enabled,-Dglib=disabled,glib-2.0" | ||
31 | PACKAGECONFIG[graphite] = "-Dgraphite=enabled,-Dgraphite=disabled,graphite2" | ||
32 | PACKAGECONFIG[icu] = "-Dicu=enabled,-Dicu=disabled,icu" | ||
33 | |||
34 | PACKAGES =+ "${PN}-icu ${PN}-icu-dev ${PN}-subset" | ||
35 | |||
36 | LEAD_SONAME = "libharfbuzz.so" | ||
37 | |||
38 | do_install_append() { | ||
39 | # If no tools are installed due to PACKAGECONFIG then this directory is | ||
40 | #still installed, so remove it to stop packaging wanings. | ||
41 | rmdir --ignore-fail-on-non-empty ${D}${bindir} | ||
42 | } | ||
43 | |||
44 | FILES_${PN}-icu = "${libdir}/libharfbuzz-icu.so.*" | ||
45 | FILES_${PN}-icu-dev = "${libdir}/libharfbuzz-icu.la \ | ||
46 | ${libdir}/libharfbuzz-icu.so \ | ||
47 | ${libdir}/pkgconfig/harfbuzz-icu.pc \ | ||
48 | " | ||
49 | FILES_${PN}-subset = "${libdir}/libharfbuzz-subset.so.*" | ||
50 | |||
51 | BBCLASSEXTEND = "native nativesdk" | ||