mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-24 16:30:04 -07:00
05096e5a4d
The swap to meson also causes the libtool .la files to no longer exist as libtool is only called in the autotools build. We swapped to meson as upstream will no longer publish release tarballs. The removal of these files causes any other packages which both link to harfbuzz and use autotools to fail to build. This package is being reverted to prevent these issues. A permanent fix is coming next. All .la files will be removed by the package manager post build. This will prevent the issue from ever arising again as well as dropping unneeded files from a myriad of packages.
41 lines
802 B
Bash
Executable File
41 lines
802 B
Bash
Executable File
#!/bin/sh -e
|
|
|
|
build_freetype() (
|
|
cd freetype
|
|
|
|
CFLAGS="$CFLAGS -DDEFAULT_TT_INTERPRETER_VERSION=TT_INTERPRETER_VERSION_40" \
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-freetype-config \
|
|
--with-harfbuzz="$2"
|
|
|
|
make
|
|
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
|
|
|
|
# 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.
|
|
export HARFBUZZ_CFLAGS="-I$PWD/harfbuzz/src"
|
|
export HARFBUZZ_LIBS="-L$PWD/harfbuzz/src/.libs -lharfbuzz"
|
|
|
|
build_freetype "$1" yes
|