Skip to content

Commit

Permalink
add libxml2 dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stephtr committed Sep 19, 2024
1 parent 8e39198 commit 0cd11b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/prepare-libqalculate.sh
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0cd11b1

Please sign in to comment.