Initial libfribidi support

ffmpeg_4.4.2
Javernaut 4 years ago
parent e392e8fd9f
commit a85885e4e6
  1. 2
      scripts/common-functions.sh
  2. 23
      scripts/libfribidi/build.sh
  3. 9
      scripts/libfribidi/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 -LO ${DOWNLOAD_URL}
EXTRACTION_DIR="."
if [ "$NEED_EXTRA_DIRECTORY" = true ] ; then

@ -0,0 +1,23 @@
#!/usr/bin/env bash
./configure \
--prefix=${INSTALL_DIR} \
--host=${TARGET} \
--with-sysroot=${SYSROOT_PATH} \
--disable-shared \
--enable-static \
--disable-dependency-tracking \
--disable-fast-install \
--disable-debug \
--disable-deprecated \
--with-pic \
CC=${FAM_CC} \
AR=${FAM_AR} \
RANLIB=${FAM_RANLIB} || exit 1
${MAKE_EXECUTABLE} clean
# Compiling only the static library. Just 'make' will build an executable and docs as well.
${MAKE_EXECUTABLE} -j${HOST_NPROC} -C lib
${MAKE_EXECUTABLE} install -C lib
# Installing the .pc file
${MAKE_EXECUTABLE} install-data-am

@ -0,0 +1,9 @@
#!/usr/bin/env bash
source ${SCRIPTS_DIR}/common-functions.sh
FRIBIDI_VERSION=1.0.10
downloadTarArchive \
"libfribidi" \
"https://github.com/fribidi/fribidi/releases/download/v${FRIBIDI_VERSION}/fribidi-${FRIBIDI_VERSION}.tar.xz"

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

Loading…
Cancel
Save