2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-22 07:10:16 -07:00

freetype-harfbuzz: Fix build.

Harfbuzz wasn't linking to Freetype if it was not already installed.
This commit is contained in:
Dylan Araps 2020-07-28 00:19:19 +03:00
parent e6130bf955
commit baf0829aaf
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 9 additions and 9 deletions

View File

@ -14,18 +14,23 @@ build_freetype() (
)
build_harfbuzz() (
# Point Harfbuzz to the Freetype files.
export CFLAGS="$CFLAGS -I$1/usr/include/freetype2"
export CXXFLAGS="$CXXFLAGS -I$1/usr/include/freetype2"
export LDFLAGS="$LDFLAGS -L$1/usr/lib"
cd harfbuzz
export DESTDIR="$1"
meson \
--default-library=both \
--prefix=/usr \
-Dfreetype=enabled \
-Dglib=enabled \
-Dfreetype=enabled \
-Ddefault_library=both \
-Dicu=disabled \
-Dbenchmark=disabled \
-Dtests=disabled \
-Dpkg_config_path="$1/usr/lib/pkgconfig" \
. output
ninja -C output
@ -33,11 +38,6 @@ build_harfbuzz() (
)
build_freetype "$1" no
# Point Harfbuzz to the Freetype files.
export FREETYPE_CFLAGS="-I$PWD/freetype/include"
export FREETYPE_LIBS="-L$1/usr/lib -lfreetype"
build_harfbuzz "$1"
# Point Freetype to the Harfbuzz files.

View File

@ -1 +1 @@
2.10.2+2.7.0 1
2.10.2+2.7.0 2