poppler: Fix build (#5769)

This commit is contained in:
tsdgeos 2021-05-14 22:25:37 +02:00 committed by GitHub
parent 3cc884e673
commit 31f0beb91e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -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 && \

View File

@ -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)