2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00

freetype-harfbuzz: clean up

This commit is contained in:
Dylan Araps 2021-08-08 21:41:20 +03:00
parent b8d0723123
commit a9984c8ab2
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C
2 changed files with 19 additions and 18 deletions

View File

@ -3,26 +3,24 @@
build_freetype() ( build_freetype() (
cd freetype cd freetype
./configure \ meson \
--prefix=/usr \ --prefix=/usr \
--enable-freetype-config \ -Ddefault_library=both \
--with-harfbuzz="$2" \ -Dbzip2=disabled \
--with-bzip2=no \ -Dzlib=disabled \
"$@" \
. output
make ninja -C output
make install ninja -C output install
) )
build_harfbuzz() ( build_harfbuzz() (
# Point Harfbuzz to the Freetype files.
export CXXFLAGS="$CXXFLAGS -I$1/usr/include/freetype2"
export LDFLAGS="$LDFLAGS -L$1/usr/lib"
cd harfbuzz cd harfbuzz
meson \ meson \
--prefix=/usr \ --prefix=/usr \
-Dpkg_config_path="$1/usr/lib/pkgconfig" \ -Dpkg_config_path="$DESTDIR/usr/lib/pkgconfig" \
-Ddefault_library=both \ -Ddefault_library=both \
-Dglib=disabled \ -Dglib=disabled \
-Dfreetype=enabled \ -Dfreetype=enabled \
@ -37,11 +35,15 @@ build_harfbuzz() (
ninja -C output install ninja -C output install
) )
build_freetype "$1" no
build_harfbuzz "$1"
# Point Freetype to the Harfbuzz files. # Point Freetype to the Harfbuzz files.
export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src" export CFLAGS="$CFLAGS -I$DESTDIR/usr/include/harfbuzz"
export HARFBUZZ_LIBS="-L$PWD/harfbuzz/output/src -lharfbuzz" export CFLAGS="$CFLAGS -L$DESTDIR/usr/lib "
export PKG_CONFIG_PATH=$DESTDIR/usr/lib/pkgconfig
build_freetype "$1" yes # Point Harfbuzz to the Freetype files.
export CXXFLAGS="$CXXFLAGS -I$DESTDIR/usr/include/freetype2"
export CXXFLAGS="$CXXFLAGS -L$DESTDIR/usr/lib"
build_freetype -Dharfbuzz=disabled
build_harfbuzz
build_freetype -Dharfbuzz=enabled --reconfigure

View File

@ -1,4 +1,3 @@
libpng libpng
meson make meson make
pkgconf make pkgconf make
zlib