|
root / base / harfbuzz
harfbuzz Plain Text 54 lines 1.6 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/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 <chris.tusa@leafscale.com>"
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