Skip to content

Commit

Permalink
Add libxml2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Pablo committed Feb 14, 2024
1 parent ec66186 commit 9b3f4ee
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
28 changes: 28 additions & 0 deletions scripts/libxml2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/usr/bin/env bash

ADDITIONAL_FLAGS=

./autogen.sh \
--prefix=${INSTALL_DIR} \
--host=${TARGET} \
--with-sysroot=${SYSROOT_PATH} \
--disable-shared \
--disable-fast-install \
--enable-static \
--with-zlib \
--with-pic \
--without-python \
--without-debug \
--without-lzma \
CC=${FAM_CC} \
AR=${FAM_AR} \
RANLIB=${FAM_RANLIB} \
${ADDITIONAL_FLAGS} || exit 1


export FFMPEG_EXTRA_LD_FLAGS="${FFMPEG_EXTRA_LD_FLAGS} -lm -lz"


${MAKE_EXECUTABLE} clean
${MAKE_EXECUTABLE} -j${HOST_NPROC}
${MAKE_EXECUTABLE} install
11 changes: 11 additions & 0 deletions scripts/libxml2/download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

source ${SCRIPTS_DIR}/common-functions.sh

XML_VERSION=2.11.7

downloadTarArchive \
"libxml2" \
"https://gitlab.gnome.org/GNOME/libxml2/-/archive/v${XML_VERSION}/libxml2-v${XML_VERSION}.tar.gz"


4 changes: 4 additions & 0 deletions scripts/parse-arguments.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ SUPPORTED_LIBRARIES_FREE=(
"libfribidi"
"mbedtls"
"libbluray"
"libxml2"
)

# All GPL libraries that are supported
Expand Down Expand Up @@ -124,6 +125,9 @@ for argument in "$@"; do
--enable-libbluray | -bluray)
EXTERNAL_LIBRARIES+=("libbluray")
;;
--enable-libxml2 | -xml2)
EXTERNAL_LIBRARIES+=("libxml2")
;;
--enable-all-free | -all-free)
EXTERNAL_LIBRARIES+=" ${SUPPORTED_LIBRARIES_FREE[@]}"
;;
Expand Down

0 comments on commit 9b3f4ee

Please sign in to comment.