version = "12.1.0" revision = 1 description = "OpenType text shaping engine" license = "MIT" url = "https://harfbuzz.github.io/" source = tarball( url=f"https://github.com/harfbuzz/harfbuzz/releases/download/{version}/harfbuzz-{version}.tar.xz", sha256="e5c81b7f6e0b102dfb000cfa424538b8e896ab78a2f4b8a5ec8cae62ab43369e", ) host_deps = ["binutils", "gcc", "pkgconf"] # C++ library: needs libstdc++ (its headers + runtime) in the sysroot. deps = [profile["libc"], "libstdc++", "freetype2", "glib2", "fribidi"] configure, build, install = meson( configure_args=[ "-Dfreetype=enabled", "-Dglib=enabled", "-Dgobject=disabled", "-Dicu=disabled", # cairo support here would create a cycle (cairo is built after harfbuzz). "-Dcairo=disabled", "-Dtests=disabled", "-Ddocs=disabled", "-Dbenchmark=disabled", ], )