# $Id: Portfile 39174 2008-08-11 07:04:10Z ryandesign@macports.org $ PortSystem 1.0 name ImageMagick version 6.4.2-7 homepage http://www.imagemagick.org/ categories graphics devel maintainers ryandesign use_bzip2 yes worksrcdir ${name}-[lindex [split ${version} -] 0] platforms darwin use_parallel_build yes description \ Tools and libraries to manipulate images in many formats long_description \ ImageMagick is a robust collection of tools and libraries to \ create, edit and compose bitmap images in a wide variety of \ formats. You can crop, resize, rotate, sharpen, color reduce or \ add effects or text or straight or curved lines to an image or \ image sequence and save your completed work in the same or \ differing image format. You can even create images from scratch. \ Image processing operations are available from the command line as \ well as through C, Ch, C++, Java, Perl, PHP, Python, Ruby and Tcl/Tk \ programming interfaces. Over 90 image formats are supported, \ including GIF, JPEG, JPEG 2000, PNG, PDF, PhotoCD and TIFF. master_sites \ http://image_magick.veidrodis.com/image_magick/ \ http://imagemagick.linux-mirror.org/download/ \ ftp://ftp.imagemagick.net/pub/${name}/ \ ftp://ftp.fifi.org/pub/ImageMagick/ # sourceforge:imagemagick # http://ftp.surfnet.nl/pub/ImageMagick/ \ # ftp://ftp.nluug.nl/pub/${name}/ \ checksums \ md5 a948b6514801114485675756f907ba2c \ sha1 38e0d5a5f81213d5be5d89e755fc03bdab72cc37 \ rmd160 a5f3c5bc17e632304c4433185909177eeec57557 depends_lib \ lib:libX11.6:XFree86 \ port:bzip2 \ port:jpeg \ port:libpng \ port:tiff \ port:zlib \ port:freetype \ port:fontconfig \ port:libiconv \ port:expat \ port:libxml2 depends_build \ port:pkgconfig configure.args \ --enable-shared \ --enable-static \ --disable-ltdl-install \ --disable-hdri \ --with-dps \ --with-bzlib \ --with-jpeg \ --with-png \ --with-tiff \ --with-zlib \ --with-modules \ --with-xml \ --with-x \ --without-perl \ --without-fpx \ --without-gslib \ --without-jbig \ --without-jp2 \ --without-lcms \ --without-wmf \ --without-gvc \ --without-rsvg \ --mandir=${prefix}/share/man test.run yes test.target check test.env DYLD_LIBRARY_PATH=${worksrcpath}/magick/.libs variant rsvg description {Support SVG using librsvg} { depends_lib-append \ port:librsvg configure.args-delete \ --without-rsvg configure.args-append \ --with-rsvg } variant perl description {Install PerlMagick} { depends_lib-append \ path:${prefix}/bin/perl:perl5.8 configure.args-delete \ --without-perl configure.args-append \ --with-perl=${prefix}/bin/perl post-destroot { foreach packlist [exec find ${destroot} -name .packlist] { ui_info "Fixing packlist ${packlist}" reinplace "s|${destroot}||" ${packlist} } foreach badfile [exec find ${destroot} -name perllocal.pod] { ui_info "Removing ${badfile}" file delete ${badfile} } } } variant gs description {Include Ghostscript library support} { depends_lib-append \ port:ghostscript configure.args-delete \ --without-gslib configure.args-append \ --with-gslib } variant lcms description {Support the Little Color Management System} { depends_lib-append \ port:lcms configure.args-delete \ --without-lcms configure.args-append \ --with-lcms } variant wmf description {Support the Windows Metafile Format} { depends_lib-append \ port:libwmf configure.args-delete \ --without-wmf configure.args-append \ --with-wmf } variant mpeg description {Support MPEG-1 and MPEG-2 video} { depends_lib-append \ port:mpeg2vidcodec } variant jbig description {Support JBIG} { depends_lib-append \ port:jbigkit configure.args-delete \ --without-jbig configure.args-append \ --with-jbig } variant jpeg2 description {Support JPEG-2000 using JasPer} { depends_lib-append \ port:jasper configure.args-delete \ --without-jp2 configure.args-append \ --with-jp2 } variant graphviz description {Support Graphviz} { depends_lib-append \ port:graphviz configure.args-delete \ --without-gvc configure.args-append \ --with-gvc } variant hdri description {Support High Dynamic Range Imaging using OpenEXR} { depends_lib-append \ port:openexr configure.args-delete \ --disable-hdri configure.args-append \ --enable-hdri } variant q8 conflicts q16 q32 description {Use 8 bits per pixel quantum} { configure.args-append --with-quantum-depth=8 } variant q16 conflicts q8 q32 description {Use 16 bits per pixel quantum (default)} { configure.args-append --with-quantum-depth=16 } variant q32 conflicts q8 q16 description {Use 32 bits per pixel quantum} { configure.args-append --with-quantum-depth=32 } if {![variant_isset q8] && ![variant_isset q32]} { default_variants +q16 } variant no_x11 description {Disable X11 support} { depends_lib-delete \ lib:libX11.6:XFree86 configure.args-delete \ --with-x configure.args-append \ --without-x } variant no_plus_plus description {Do not install Magick++} { configure.args-append \ --without-magick-plus-plus } platform darwin 6 { depends_lib-append \ lib:libdl:dlcompat \ lib:libltdl:libtool } livecheck.check regex livecheck.url http://ftp.surfnet.nl/pub/ImageMagick/?C=M&O=D livecheck.regex ${name}-(\\d+(?:\\.\\d+)*(?:-\\d+)?)