From 900c7ea2ac02a917ba8a21fe7ef7d81b65d0560f Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Mon, 17 Jul 2017 19:52:33 +0100 Subject: [PATCH] compile imagemagick 6 --- Dockerfile | 64 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 61 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index d69a3ed..1fe7616 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,17 +6,75 @@ ARG BUILD_DATE ARG VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" +# package versions +ARG IMAGEMAGICK_VER="6.9.9-0" + # install build packages RUN \ apk add --no-cache --virtual=build-dependencies \ + file \ + fontconfig-dev \ + freetype-dev \ g++ \ gcc \ + ghostscript-dev \ + lcms2-dev \ + libjpeg-turbo-dev \ + libpng-dev \ + libtool \ + libwebp-dev \ + libxml2-dev \ make \ - python2-dev && \ + perl-dev \ + python2-dev \ + tiff-dev \ + xz \ + zlib-dev && \ -# install runtime packages +# install runtime packages apk add --no-cache \ - imagemagick && \ + fontconfig \ + freetype \ + ghostscript \ + lcms2 \ + libjpeg-turbo \ + libltdl \ + libpng \ + libwebp \ + libxml2 \ + tiff \ + zlib && \ + +# compile imagemagic + mkdir -p \ + /tmp/imagemagick && \ + curl -o \ + /tmp/imagemagick-src.tar.xz -L \ + "http://www.imagemagick.org/download/releases/ImageMagick-${IMAGEMAGICK_VER}.tar.xz" && \ + tar xf \ + /tmp/imagemagick-src.tar.xz -C \ + /tmp/imagemagick --strip-components=1 && \ + cd /tmp/imagemagick && \ + sed -i -e \ + 's:DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}":DOCUMENTATION_PATH="/usr/share/doc/imagemagick":g' \ + configure && \ + ./configure \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --prefix=/usr \ + --sysconfdir=/etc \ + --with-gs-font-dir=/usr/share/fonts/Type1 \ + --with-gslib \ + --with-lcms2 \ + --with-modules \ + --without-threads \ + --without-x \ + --with-tiff \ + --with-xml && \ + make && \ + make install && \ + find / -name '.packlist' -o -name 'perllocal.pod' \ + -o -name '*.bs' -delete && \ # install calibre-web mkdir -p \