Skip to content

Commit

Permalink
Merge pull request #88 from laestrygonian/master
Browse files Browse the repository at this point in the history
Add libxml2 support
  • Loading branch information
Javernaut authored Feb 19, 2024
2 parents 599ce3f + a0680af commit ca96af9
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/libxml2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env bash

./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} || exit 1


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


${MAKE_EXECUTABLE} clean
${MAKE_EXECUTABLE} -j${HOST_NPROC}
${MAKE_EXECUTABLE} install
9 changes: 9 additions & 0 deletions scripts/libxml2/download.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/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 ca96af9

Please sign in to comment.