aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar tsdgeos <aacid@kde.org>2021-05-14 22:25:37 +0200
committerGravatar GitHub <noreply@github.com>2021-05-14 21:25:37 +0100
commit31f0beb91e221b29f38d2338e22defc43abdd968 (patch)
treeea00c996d50af1e4c7c462751fd20586b3f7c678
parent3cc884e6735319e527172e756c9097331882da63 (diff)
poppler: Fix build (#5769)
-rw-r--r--projects/poppler/Dockerfile1
-rwxr-xr-xprojects/poppler/build.sh8
2 files changed, 9 insertions, 0 deletions
diff --git a/projects/poppler/Dockerfile b/projects/poppler/Dockerfile
index c1b0355c..9f48c666 100644
--- a/projects/poppler/Dockerfile
+++ b/projects/poppler/Dockerfile
@@ -30,6 +30,7 @@ ADD http://ftp.gnome.org/pub/gnome/sources/pango/1.48/pango-1.48.0.tar.xz $SRC
RUN tar xvJf $SRC/pango-1.48.0.tar.xz
ADD https://ftp.gnome.org/pub/gnome/sources/glib/2.64/glib-2.64.2.tar.xz $SRC
RUN tar xvJf $SRC/glib-2.64.2.tar.xz
+RUN wget https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.bz2
RUN git clone --depth 1 --single-branch https://gitlab.freedesktop.org/poppler/poppler.git
RUN git clone --depth 1 https://github.com/mozilla/pdf.js pdf.js && \
diff --git a/projects/poppler/build.sh b/projects/poppler/build.sh
index 23692dd5..bcd39bb8 100755
--- a/projects/poppler/build.sh
+++ b/projects/poppler/build.sh
@@ -27,6 +27,14 @@ rm -rf $WORK/*
rm -rf $BUILD
mkdir -p $BUILD
+# Install Boost headers
+cd $SRC/
+tar jxf boost_1_76_0.tar.bz2
+cd boost_1_76_0/
+CFLAGS="" CXXFLAGS="" ./bootstrap.sh
+CFLAGS="" CXXFLAGS="" ./b2 headers
+cp -R boost/ /usr/include/
+
pushd $SRC/zlib
CFLAGS=-fPIC ./configure --static --prefix=$PREFIX
make install -j$(nproc)