From a194901622080ac2ed029fbb8d0a7531238b691e Mon Sep 17 00:00:00 2001 From: use Date: Mon, 24 Apr 2023 14:13:56 -0700 Subject: [PATCH] Added freetype as well --- build.sh | 2 ++ deps/21_freetype/build.sh | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 deps/21_freetype/build.sh diff --git a/build.sh b/build.sh index 100381a..fa28a02 100644 --- a/build.sh +++ b/build.sh @@ -45,11 +45,13 @@ make distclean --enable-libmp3lame \ --enable-pic \ --enable-libass \ + --enable-libfreetype \ --enable-nonfree # --disable-debug \ # --enable-debug \ # --enable-libmfx \ +# --enable-libsrt \ make -j8 if make diff --git a/deps/21_freetype/build.sh b/deps/21_freetype/build.sh new file mode 100644 index 0000000..68cc73e --- /dev/null +++ b/deps/21_freetype/build.sh @@ -0,0 +1,39 @@ +#!/bin/bash + +export PKG_CONFIG_PATH=/app/ffmpeg/install/lib/pkgconfig:/app/ffmpeg/install/lib64/pkgconfig/ +curDir="$PWD" + +pkg=freetype +if ! [[ -d "$pkg" ]] +then + git clone https://gitlab.freedesktop.org/freetype/freetype.git +fi +cd "$pkg" + +if ! [[ -f configure ]] && [[ -f autogen.sh ]] +then + bash autogen.sh +elif ! [[ -f configure ]] +then + echo "NO WAY TO CONFIGURE?, CMAKE?" + exit 1 +fi + +make clean +make distclean +./configure \ + --prefix="/app/ffmpeg/install/" + +#make -j8 +if make +then + make install + cd "$curDir" + rm -rf "$pkg" +else + cd "$curDir" + echo "BUILD FAILED" +fi + +echo "Done" +