# $Id$ PNAME="imagemagick" PVER="6.8.9.7" PBUILD="r1" PCAT="media-gfx" DESCRIPTION="Image manipulation tools and libraries for many image formats." HOMEPAGE="http://www.imagemagick.org/" DEPEND=">= x11-libs/libICE-1 >= x11-libs/libSM-1 >= x11-libs/libXext-1.3 >= x11-libs/libXt-1.1 >= app-arch/bzip2-1.0.6 >= sys-libs/zlib-1.2.5 >= sys-libs/libgomp-4.8 >= sys-libs/libltdl-2.4 >= media-libs/libjpeg-8 >= media-libs/libpng-1.5 >= media-libs/libtiff-4 >= media-libs/lcms-1.19 == dev-lang/perl-5.20.0 >= dev-libs/libxml2-2.7 >= app-text/ghostscript-gpl-9 >= media-gfx/graphviz-2.38 >= media-libs/freetype-2.5 >= media-libs/libwmf-0.2.8.4 >= media-libs/openexr-2.1 >= media-fonts/corefonts-2 >= sci-libs/fftw3-3.3" SDEPEND=">= virtual/sed >= sys-dev/libtool-2.4 >= x11-proto/xextproto-7" SRCFILE="ImageMagick-${PVER:0:5}-${PVER:6}.tar.bz2" SRCDIR="${BUILDDIR}/ImageMagick-${PVER:0:5}-${PVER:6}" sminclude mbuild # .la files a substantly needed to load runtime lib-deps! # do not remove them or errors like this will occur: # convert: no decode delegate for this image format `/usr/share/pixmaps/xterm_48x48.xpm' # @ error/constitute.c/ReadImage/532. msetfeature "libtool" "!check" SRC_URI=( ftp://ftp.imagemagick.org/pub/ImageMagick/${SRCFILE} ftp://ftp.imagemagick.org/pub/ImageMagick/legacy/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd ${HOMEPAGE}/script/download.php | grep 'latest release' | sed -e 's:.*version\ \(.*\).:\1:' -e 's:-:.:g'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # do not link to included libltdl, # use system libtool instead sed -i 's/\$(LIBLTDL) \$/\$/' Makefile.in || die } src_compile() { cd ${SRCDIR} mconfigure \ --build=${CHOST} \ --with-windows-font-dir=/usr/share/fonts/corefonts \ --enable-shared \ --with-threads \ --with-bzlib \ --with-modules \ --with-zlib \ --with-x \ --with-perl \ --with-tiff \ --with-lcms \ --with-xml \ --with-jp2 \ --with-jpeg \ --with-gslib \ --with-freetype \ --with-wmf \ --with-openexr \ --without-fpx \ --without-jbig \ || die mmake -j1 || die }