2
0
mirror of https://codeberg.org/kiss-community/repo synced 2025-03-25 15:24:48 -06:00

freetype-harfbuzz: correctly link to local versions

This commit is contained in:
Dylan Araps 2019-08-04 19:54:25 +03:00
parent e34b1a5634
commit e6672bf1d3

View File

@ -1,16 +1,5 @@
#!/bin/sh -e
build_harfbuzz() (
cd harfbuzz
./configure \
--prefix=/usr \
--with-glib
make
make DESTDIR="$1" install
)
build_freetype() (
cd freetype
@ -24,11 +13,30 @@ build_freetype() (
make DESTDIR="$1" install
)
build_harfbuzz() (
cd harfbuzz
./configure \
--prefix=/usr \
--with-glib=yes \
--with-icu=no
make
make DESTDIR="$1" install
)
build_freetype "$1" no
export LD_LIBRARY_PATH="$1/usr/lib"
# Point Harfbuzz to the Freetype files.
export FREETYPE_CFLAGS="-I$PWD/freetype/src"
export FREETYPE_LIBS="-L$PWD/freetype/src/.libs -lfreetype2"
build_harfbuzz "$1"
# Point Freetype to the Harfbuzz files.
export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src"
export HARFBUZZ_LIBS="-L$PWD/harfbuzz/src/.libs -lharfbuzz"
build_freetype "$1" yes
# Remove a ton of HTML documentation.