-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathfontconfig.sh
executable file
·50 lines (44 loc) · 1.17 KB
/
fontconfig.sh
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
#!/bin/bash -eu
source ./common.sh clang
if [[ ! -d fontconfig-2.14.2 ]]; then
(
wget -nv https://www.freedesktop.org/software/fontconfig/release/fontconfig-2.14.2.tar.xz
# $GIT clone https://gitlab.freedesktop.org/fontconfig/fontconfig.git
tar xaf fontconfig-2.14.2.tar.xz
)
fi
(
export LIBRARY_PATH=$INSTALL_PREFIX/freetype
export PKG_CONFIG_PATH=$INSTALL_PREFIX/freetype/lib64/pkgconfig:$INSTALL_PREFIX/harfbuzz/lib64/pkgconfig
meson_options=(
-D default-hinting=slight
-D default-sub-pixel-rendering=rgb
-D doc-html=disabled
-D doc-pdf=disabled
-D doc-txt=disabled
-D buildtype=$MESON_BUILD_TYPE
-D default_library=static
-D glib=disabled
-D gobject=disabled
-D icu=disabled
-D docs=disabled
-D prefix=$INSTALL_PREFIX/fontconfig
)
cd fontconfig-2.14.2
meson build "${meson_options[@]}"
cd build
ninja
ninja install
)
#
# $CMAKE \
# -S fontconfig-2.14.2 \
# -B fontconfig-build \
# -DCMAKE_BUILD_TYPE=Release \
# -DBUILD_SHARED_LIBS=OFF \
# -DCMAKE_POSITION_INDEPENDENT_CODE=1 \
# -DCMAKE_INSTALL_PREFIX=$INSTALL_PREFIX/fontconfig
#
# $CMAKE --build fontconfig-build --parallel
# $CMAKE --build fontconfig-build --target install/strip
#