From 0cd11b17700784b52b6f9230a844281445d9238b Mon Sep 17 00:00:00 2001 From: Stephan Troyer Date: Thu, 19 Sep 2024 23:40:05 +0200 Subject: [PATCH] add libxml2 dev --- .github/workflows/prepare-libqalculate.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/prepare-libqalculate.sh b/.github/workflows/prepare-libqalculate.sh index 25179a8..e1c8735 100644 --- a/.github/workflows/prepare-libqalculate.sh +++ b/.github/workflows/prepare-libqalculate.sh @@ -1,4 +1,4 @@ -sudo apt install -y build-essential lzip binutils autoconf intltool libtool automake lbzip2 lzip +sudo apt install -y build-essential lzip binutils autoconf intltool libtool automake lbzip2 lzip libxml2-dev mkdir -p ~/opt/src cd ~/opt/src @@ -33,13 +33,14 @@ tar xf libqalculate-${LIBQALCULATE_VERSION}.tar.gz cd libqalculate-${LIBQALCULATE_VERSION} export NOCONFIGURE=1 export NO_AUTOMAKE=1 -./autogen.sh --without-icu --without-libcurl --disable-nls --disable-shared || true +./autogen.sh || true sed -i 's/PKG_CHECK_MODULES(LIBCURL, libcurl)/#PKG_CHECK_MODULES(LIBCURL, libcurl)/' configure sed -i 's/PKG_CHECK_MODULES(ICU, icu-uc)/#PKG_CHECK_MODULES(ICU, icu-uc)/' configure sed -i 's/PKG_CHECK_MODULES(LIBXML, libxml-2.0/#PKG_CHECK_MODULES(LIBXML, libxml-2.0/' configure sed -i 's/#define HAVE_LIBCURL 1//' configure sed -i 's/#define HAVE_ICU 1//' configure sed -i 's/#define HAVE_PIPE2 1/#define HAVE_PIPE2 0/' configure +echo "configuring via emsdk" emconfigure ./configure --prefix=${HOME}/opt CPPFLAGS=-I${HOME}/opt/include LDFLAGS="-L${HOME}/opt/lib -lxml2" --without-libcurl --without-icu --enable-compiled-definitions --disable-nls --disable-shared make make install