compile imagemagick 6

This commit is contained in:
sparklyballs 2017-07-17 19:52:33 +01:00
parent af3caaa1e6
commit 900c7ea2ac

View File

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