mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-05-17 14:57:10 +02:00
Reorganize Font-Dependencies
This commit is contained in:
parent
a3bcbc4329
commit
6b9729e32c
@ -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
|
|
||||||
}
|
|
@ -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
|
||||||
|
}
|
41
scripts.d/45-fonts/50-freetype.sh
Executable file
41
scripts.d/45-fonts/50-freetype.sh
Executable 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user