yoshimi: bump to 2.2.0
[kiss-trunc88.git] / freetype-harfbuzz / build
blob594e5ccb2d3ec30a19ad4abbbfd7d1b90267ab4a
1 #!/bin/sh -e
3 #sed -i 's:/\* #define FT_CONFIG_OPTION_SUBPIXEL_RENDERING \*/:#define FT_CONFIG_OPTION_SUBPIXEL_RENDERING:' freetype/include/freetype/config/ftoption.h
4 sed -i '/define TT_CONFIG_OPTION_SUBPIXEL_HINTING 2/d' freetype/include/freetype/config/ftoption.h
7 build_freetype() (
8 cd freetype
11 meson \
12 --prefix=/usr \
13 -Ddefault_library=both \
14 -Dbzip2=disabled \
15 -Dzlib=disabled \
16 -Dbrotli=disabled \
17 "$@" \
18 . output
20 ninja -C output
21 ninja -C output install
24 build_harfbuzz() (
25 cd harfbuzz
27 meson \
28 --prefix=/usr \
29 -Dpkg_config_path="$DESTDIR/usr/lib/pkgconfig" \
30 -Ddefault_library=both \
31 -Dglib=disabled \
32 -Dfreetype=enabled \
33 -Dcairo=disabled \
34 -Dicu=disabled \
35 -Dbenchmark=disabled \
36 -Dtests=disabled \
37 -Dgobject=enabled \
38 . output
41 ninja -C output
42 ninja -C output install
45 # Point Freetype to the Harfbuzz files.
46 export CFLAGS="$CFLAGS -I$DESTDIR/usr/include/harfbuzz"
47 export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib "
48 export PKG_CONFIG_PATH="$DESTDIR/usr/lib/pkgconfig"
50 # Point Harfbuzz to the Freetype files.
51 export CXXFLAGS="$CXXFLAGS -I$DESTDIR/usr/include/freetype2"
52 export CXXFLAGS="$CXXFLAGS -L$DESTDIR/usr/lib"
54 build_freetype -Dharfbuzz=disabled
55 build_harfbuzz
56 build_freetype -Dharfbuzz=enabled --reconfigure