#!/bin/sh # Build script for harfbuzz (Meson, Template B). # Deps: freetype, glib2 (both ported). cairo/icu support disabled (cairo # isn't built yet at this point in the order, and ICU isn't ported/needed). set -e cd "$SRCDIR" export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PREFIX/share/pkgconfig:/usr/lib/pkgconfig:$PKG_CONFIG_PATH" export CFLAGS="${CFLAGS} -D__EXTENSIONS__" export LDFLAGS="${LDFLAGS} -Wl,-R,$PREFIX/lib" meson setup build \ --prefix="$PREFIX" \ --libdir=lib \ --buildtype=release \ -Ddefault_library=shared \ -Dtests=disabled \ -Ddocs=disabled \ -Dfreetype=enabled \ -Dglib=enabled \ -Dcairo=disabled \ -Dicu=disabled ninja -C build -j${JOBS:-1} DESTDIR="$PKGDIR" ninja -C build install # harfbuzz - text shaping engine (pango dep) # https://github.com/harfbuzz/harfbuzz # # NOTE: freetype was built WITHOUT harfbuzz (Task 5, --with-harfbuzz=no) # to break the freetype<->harfbuzz circular dependency at bootstrap. # harfbuzz->freetype is the one-way edge here; do NOT rebuild freetype. [package] name = "harfbuzz" version = "14.2.1" release = 1 description = "Text shaping engine" url = "https://harfbuzz.github.io/" license = "MIT" maintainer = "Chris Tusa " arch = "x86_64" [dependencies] runtime = ["freetype", "glib2"] build = ["freetype", "glib2"] [[source]] file = "harfbuzz-14.2.1.tar.xz" urls = ["https://github.com/harfbuzz/harfbuzz/releases/download/14.2.1/harfbuzz-14.2.1.tar.xz"] checksum = "a54a5d8e9380a41fbb762ce367bcbf7704792dfca0d93f1bbca86c5a57902e0e" [build] parallel = true