mirror of https://github.com/google/oss-fuzz.git
Switch Ghostscript to upstream freetype (#3286)
* Switch to freetype library. Reintegrate freetype * remove pkg-config dependency
This commit is contained in:
parent
9f2563c1ba
commit
8e2d57684b
|
@ -17,8 +17,9 @@
|
|||
FROM gcr.io/oss-fuzz-base/base-builder
|
||||
MAINTAINER skau@google.com
|
||||
|
||||
RUN apt-get update && apt-get install -y autoconf zlibc liblcms2-dev libfreetype6-dev libpng-dev libtiff-dev
|
||||
RUN apt-get update && apt-get install -y autoconf zlibc libtool liblcms2-dev libpng-dev libtiff-dev
|
||||
RUN git clone --branch branch-2.2 --single-branch --depth 1 https://github.com/apple/cups.git cups
|
||||
RUN git clone --branch VER-2-10-1 --single-branch --depth 1 https://git.savannah.nongnu.org/git/freetype/freetype2.git freetype
|
||||
RUN git clone --single-branch --depth 1 git://git.ghostscript.com/ghostpdl.git ghostpdl
|
||||
|
||||
RUN mkdir ghostpdl/fuzz
|
||||
|
|
|
@ -36,14 +36,16 @@ rm -rf libpng || die
|
|||
rm -rf tiff || die
|
||||
rm -rf zlib || die
|
||||
|
||||
export CUPSCONFIG="$WORK/cups-config"
|
||||
mv ../freetype freetype
|
||||
|
||||
CUPSCONFIG="$WORK/cups-config"
|
||||
CUPS_CFLAGS=$($CUPSCONFIG --cflags)
|
||||
CUPS_LDFLAGS=$($CUPSCONFIG --ldflags)
|
||||
CUPS_LIBS=$($CUPSCONFIG --image --libs)
|
||||
export CXXFLAGS="$CXXFLAGS $CUPS_CFLAGS"
|
||||
|
||||
./autogen.sh
|
||||
CPPFLAGS="${CPPFLAGS:-} $CUPS_CFLAGS" ./configure \
|
||||
CPPFLAGS="${CPPFLAGS:-} $CUPS_CFLAGS" ./autogen.sh \
|
||||
CUPSCONFIG=$CUPSCONFIG \
|
||||
--enable-freetype --enable-fontconfig \
|
||||
--enable-cups --with-ijs --with-jbig2dec \
|
||||
--with-drivers=cups,ljet4,laserjet,pxlmono,pxlcolor,pcl3,uniprint
|
||||
|
|
Loading…
Reference in New Issue