mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
iOS: add libxml2 build
I don't know why this is suddenly needed and wasn't before, but hopefully this fixes the broken builds on GitHub. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
d5e6a65944
commit
5178ea2d15
2 changed files with 18 additions and 4 deletions
|
@ -137,10 +137,24 @@ for ARCH in $ARCHS; do
|
||||||
export OSX_PLATFORM=$(xcrun --sdk macosx --show-sdk-platform-path)
|
export OSX_PLATFORM=$(xcrun --sdk macosx --show-sdk-platform-path)
|
||||||
export OSX_SDK=$(xcrun --sdk macosx --show-sdk-path)
|
export OSX_SDK=$(xcrun --sdk macosx --show-sdk-path)
|
||||||
|
|
||||||
target=$ARCH
|
# build libxml2 and libxslt
|
||||||
hosttarget=$ARCH
|
if [ ! -e "$PKG_CONFIG_LIBDIR"/libxml-2.0.pc ] ; then
|
||||||
|
if [ ! -e "$PARENT_DIR"/libxml2/configure ] ; then
|
||||||
|
pushd "$PARENT_DIR"/libxml2
|
||||||
|
autoreconf --install
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
mkdir -p "$PARENT_DIR"/libxml2-build-"$ARCH"
|
||||||
|
pushd "$PARENT_DIR"/libxml2-build-"$ARCH"
|
||||||
|
"$PARENT_DIR"/libxml2/configure --host=${BUILDCHAIN} --prefix="$PREFIX" --without-python --without-iconv --enable-static --disable-shared
|
||||||
|
perl -pi -e 's/runtest\$\(EXEEXT\)//' Makefile
|
||||||
|
perl -pi -e 's/testrecurse\$\(EXEEXT\)//' Makefile
|
||||||
|
make
|
||||||
|
make install
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
# libxslt have too old config.sub
|
# the config.sub in libxslt is too old
|
||||||
pushd ${PARENT_DIR}/libxslt
|
pushd ${PARENT_DIR}/libxslt
|
||||||
autoreconf --install
|
autoreconf --install
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -119,7 +119,7 @@ case ${PLATFORM} in
|
||||||
PACKAGES=("${COMMON_PACKAGES[@]}" hidapi libcurl libusb openssl libssh2)
|
PACKAGES=("${COMMON_PACKAGES[@]}" hidapi libcurl libusb openssl libssh2)
|
||||||
;;
|
;;
|
||||||
ios)
|
ios)
|
||||||
PACKAGES=("${COMMON_PACKAGES[@]}" libxslt)
|
PACKAGES=("${COMMON_PACKAGES[@]}" libxml2 libxslt)
|
||||||
;;
|
;;
|
||||||
android)
|
android)
|
||||||
PACKAGES=("${COMMON_PACKAGES[@]}" libxslt sqlite libxml2 openssl libftdi1 libusb)
|
PACKAGES=("${COMMON_PACKAGES[@]}" libxslt sqlite libxml2 openssl libftdi1 libusb)
|
||||||
|
|
Loading…
Add table
Reference in a new issue