Reorganize Font-Dependencies

This commit is contained in:
BtbN 2025-05-07 20:55:21 +02:00
parent a3bcbc4329
commit 6b9729e32c
4 changed files with 47 additions and 8 deletions

View File

@ -12,6 +12,7 @@ ffbuild_dockerbuild() {
local myconf=( local myconf=(
--prefix="$FFBUILD_PREFIX" --prefix="$FFBUILD_PREFIX"
--without-harfbuzz
--disable-shared --disable-shared
--enable-static --enable-static
) )
@ -29,11 +30,3 @@ ffbuild_dockerbuild() {
make -j$(nproc) make -j$(nproc)
make install make install
} }
ffbuild_configure() {
echo --enable-libfreetype
}
ffbuild_unconfigure() {
echo --disable-libfreetype
}

View File

@ -44,3 +44,8 @@ ffbuild_configure() {
(( $(ffbuild_ffver) > 600 )) || return 0 (( $(ffbuild_ffver) > 600 )) || return 0
echo --enable-libharfbuzz echo --enable-libharfbuzz
} }
ffbuild_unconfigure() {
(( $(ffbuild_ffver) > 600 )) || return 0
echo --disable-libharfbuzz
}

View File

@ -0,0 +1,41 @@
#!/bin/bash
SCRIPT_REPO="https://gitlab.freedesktop.org/freetype/freetype.git"
SCRIPT_COMMIT="ab0fe6d55e8001eb2835af65381ab3626e382377"
ffbuild_enabled() {
return 0
}
ffbuild_dockerbuild() {
./autogen.sh
local myconf=(
--prefix="$FFBUILD_PREFIX"
--disable-shared
--enable-static
)
if [[ $TARGET == win* || $TARGET == linux* ]]; then
myconf+=(
--host="$FFBUILD_TOOLCHAIN"
)
else
echo "Unknown target"
return -1
fi
./configure "${myconf[@]}"
make -j$(nproc)
make install
echo "Libs.private: -lharfbuzz" >> "$FFBUILD_PREFIX"/lib/pkgconfig/freetype2.pc
}
ffbuild_configure() {
echo --enable-libfreetype
}
ffbuild_unconfigure() {
echo --disable-libfreetype
}