|
root / base / harfbuzz / build.sh
build.sh Bash 26 lines 751 B
 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
#!/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