Initial libfreetype support

pull/53/head
Javernaut 4 years ago
parent e392e8fd9f
commit 4ea334550e
  1. 2
      scripts/common-functions.sh
  2. 29
      scripts/libfreetype/build.sh
  3. 9
      scripts/libfreetype/download.sh
  4. 4
      scripts/parse-arguments.sh

@ -17,7 +17,7 @@ function downloadTarArchive() {
echo "Ensuring sources of ${LIBRARY_NAME} in ${LIBRARY_SOURCES}"
if [[ ! -d "$LIBRARY_SOURCES" ]]; then
curl -O ${DOWNLOAD_URL}
curl -L -O ${DOWNLOAD_URL}
EXTRACTION_DIR="."
if [ "$NEED_EXTRA_DIRECTORY" = true ] ; then

@ -0,0 +1,29 @@
#!/usr/bin/env bash
./configure \
--prefix=${INSTALL_DIR} \
--host=${TARGET} \
--with-sysroot=${SYSROOT_PATH} \
--disable-shared \
--enable-static \
--with-pic \
--with-zlib \
--without-bzip2 \
--without-png \
--without-harfbuzz \
--without-brotli \
--without-old-mac-fonts \
--without-fsspec \
--without-fsref \
--without-quickdraw-toolbox \
--without-quickdraw-carbon \
--without-ats \
CC=${FAM_CC} \
AR=${FAM_AR} \
RANLIB=${FAM_RANLIB} || exit 1
export FFMPEG_EXTRA_LD_FLAGS="${FFMPEG_EXTRA_LD_FLAGS} -lz"
${MAKE_EXECUTABLE} clean
${MAKE_EXECUTABLE} -j${HOST_NPROC}
${MAKE_EXECUTABLE} install

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source ${SCRIPTS_DIR}/common-functions.sh
FREETYPE_VERSION=2.10.2
downloadTarArchive \
"libfreetype" \
"https://download.savannah.gnu.org/releases/freetype/freetype-${FREETYPE_VERSION}.tar.gz" \

@ -22,6 +22,7 @@ ALL_SUPPORTED_LIBRARIES=(
"libtwolame"
"libspeex"
"libvpx"
"libfreetype"
)
for argument in "$@"; do
@ -102,6 +103,9 @@ for argument in "$@"; do
--enable-libvpx|-vpx)
EXTERNAL_LIBRARIES+=( "libvpx" )
;;
--enable-libfreetype|-freetype)
EXTERNAL_LIBRARIES+=( "libfreetype" )
;;
--enable-all-external|-all)
EXTERNAL_LIBRARIES=${ALL_SUPPORTED_LIBRARIES[@]}
;;

Loading…
Cancel
Save