source: trunk/dports/graphics/ImageMagick/Portfile @ 22391

Last change on this file since 22391 was 22391, checked in by blair@…, 13 years ago

Add a perl variant.

When running the test suite, set DYLB_LIBRARY_PATH to the just built
libMagick.dylib, otherwise the Perl tests will pick up a currently
installed libMagick.dylib which may have missing symbols that the new
libMagick.dylib provides.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# $Id: Portfile 22391 2007-02-27 21:59:48Z blair@macports.org $
2
3PortSystem                      1.0
4name                            ImageMagick
5version                         6.3.2-4
6categories                      graphics devel
7maintainers                     ryandesign@macports.org openmaintainer@macports.org
8description                     Tools and libraries to manipulate images in many formats
9long_description \
10        A robust collection of tools and libraries to read, write, and \
11        manipulate an image in many image formats (over 87 major formats) \
12        including popular formats like TIFF, JPEG, PNG, PDF, PhotoCD, and \
13        GIF.  With ImageMagick you can create images dynamically, making it \
14        suitable for Web applications. You can also resize, rotate, sharpen, \
15        color reduce, or add special effects to an image or image sequence \
16        and save your completed work in the same or differing image format.  \
17        Image processing operations are available from the command line, as \
18        well as through C, C++, Perl, or Java programming interfaces.
19
20platforms       darwin
21
22homepage        http://www.imagemagick.org/
23master_sites    http://imagemagick.linux-mirror.org/download/ \
24                        http://ftp.surfnet.nl/pub/ImageMagick/ \
25                        sourceforge:imagemagick \
26                        ftp://ftp.imagemagick.net/pub/${name}/ \
27                        ftp://ftp.fifi.org/pub/ImageMagick/ \
28                        ftp://ftp.nluug.nl/pub/${name}/
29use_bzip2       yes
30checksums       md5 e82a7df9704829e344747fe21df53b22 \
31                        sha1 d56863a41a33319d52ae571a20ea50a7ea70408a \
32                        rmd160 79f425d666619c446a60807ea6cd284ac71498f9
33
34worksrcdir      ${name}-6.3.2
35
36depends_lib     lib:libX11.6:XFree86 \
37                        port:bzip2 port:jpeg port:libpng port:tiff \
38                        port:zlib port:freetype port:libxml2
39
40configure.env   CPPFLAGS="-I${prefix}/include" LDFLAGS="-L${prefix}/lib"
41configure.args  --enable-shared --disable-static --disable-ltdl-install \
42                        --with-dps --with-ttf --with-bzlib --with-jpeg \
43                        --with-png --with-tiff --with-zlib --with-modules \
44                        --with-xml --with-x \
45                        --without-perl --without-fpx \
46                        --without-gslib --without-jbig --without-jp2 \
47                        --without-lcms --without-wmf --without-gvc \
48                        --mandir=${prefix}/share/man
49
50test.run        yes
51test.target     check
52test.env        DYLD_LIBRARY_PATH=${worksrcpath}/magick/.libs
53
54variant perl {
55        depends_lib-append      port:perl5.8
56        configure.args-delete   --without-perl
57        configure.args-append   --with-perl=${prefix}/bin/perl
58}
59
60# Using gplghostscript instead of ghostscript as the former provides
61# libgs and the latter appears not to at this time
62variant gs {       
63        depends_lib-append      port:gplghostscript
64        configure.args-delete   --without-gslib
65        configure.args-append   --with-gslib
66}
67
68variant lcms {
69        depends_lib-append      port:lcms
70        configure.args-delete   --without-lcms
71        configure.args-append   --with-lcms
72}
73
74variant wmf {
75        depends_lib-append      port:libwmf
76        configure.args-delete   --without-wmf
77        configure.args-append   --with-wmf
78}
79
80variant mpeg {
81        depends_lib-append      port:mpeg2vidcodec
82}
83
84variant jbig {
85        depends_lib-append      port:jbigkit
86        configure.args-delete   --without-jbig
87        configure.args-append   --with-jbig
88}
89
90variant jpeg2 {
91        depends_lib-append      port:jasper
92        configure.args-delete   --without-jp2
93        configure.args-append   --with-jp2
94}
95
96variant graphviz {
97        depends_lib-append      port:graphviz
98        configure.args-delete   --without-gvc
99        configure.args-append   --with-gvc
100}
101
102variant nox11 {
103        depends_lib-delete      lib:libX11.6:XFree86
104        configure.args-delete   --with-x
105        configure.args-append   --without-x
106}
107
108variant no-plus-plus {
109        configure.args-append   --without-magick-plus-plus
110}
111
112platform darwin 6 {
113        depends_lib-append      lib:libdl:dlcompat lib:libltdl:libtool
114}
115
116platform darwin 8 {
117        configure.env-append CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
118}
Note: See TracBrowser for help on using the repository browser.