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

Last change on this file since 34972 was 34972, checked in by ryandesign@…, 10 years ago

ImageMagick: update to 6.3.9-5; fixes #14578
All 696 tests behaved as expected (33 expected failures)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 5.0 KB
Line 
1# $Id: Portfile 34972 2008-03-13 10:08:05Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    ImageMagick
6version                 6.3.9-5
7homepage                http://www.imagemagick.org/
8categories              graphics devel
9maintainers             ryandesign
10use_bzip2               yes
11worksrcdir              ${name}-[lindex [split ${version} -] 0]
12platforms               darwin
13
14description \
15    Tools and libraries to manipulate images in many formats
16
17long_description \
18    ImageMagick is a robust collection of tools and libraries to \
19    create, edit and compose bitmap images in a wide variety of \
20    formats. You can crop, resize, rotate, sharpen, color reduce or \
21    add effects or text or straight or curved lines to an image or \
22    image sequence and save your completed work in the same or \
23    differing image format. You can even create images from scratch. \
24    Image processing operations are available from the command line as \
25    well as through C, Ch, C++, Java, Perl, PHP, Python, Ruby and Tcl/Tk \
26    programming interfaces. Over 90 image formats are supported, \
27    including GIF, JPEG, JPEG 2000, PNG, PDF, PhotoCD and TIFF.
28
29master_sites \
30    http://image_magick.veidrodis.com/image_magick/ \
31    http://imagemagick.linux-mirror.org/download/ \
32    http://ftp.surfnet.nl/pub/ImageMagick/ \
33    sourceforge:imagemagick \
34    ftp://ftp.imagemagick.net/pub/${name}/ \
35    ftp://ftp.fifi.org/pub/ImageMagick/ \
36    ftp://ftp.nluug.nl/pub/${name}/
37
38checksums \
39    md5 bdb105b98dc1ecdb7985798ef74d6dfb \
40    sha1 e2068ec60033137bfbdf696c8a1eb2bcefeba5b6 \
41    rmd160 00c815a8b393458099da1bf39538e749d9e35e7b
42
43depends_lib \
44    lib:libX11.6:XFree86 \
45    port:bzip2 \
46    port:jpeg \
47    port:libpng \
48    port:tiff \
49    port:zlib \
50    port:freetype \
51    port:fontconfig \
52    port:libiconv \
53    port:expat \
54    port:libxml2
55
56depends_build \
57    port:pkgconfig
58
59configure.args \
60    --enable-shared \
61    --enable-static \
62    --disable-ltdl-install \
63    --with-dps \
64    --with-ttf \
65    --with-bzlib \
66    --with-jpeg \
67    --with-png \
68    --with-tiff \
69    --with-zlib \
70    --with-modules \
71    --with-xml \
72    --with-x \
73    --without-perl \
74    --without-fpx \
75    --without-gslib \
76    --without-jbig \
77    --without-jp2 \
78    --without-lcms \
79    --without-wmf \
80    --without-gvc \
81    --mandir=${prefix}/share/man
82
83test.run                yes
84test.target             check
85test.env                DYLD_LIBRARY_PATH=${worksrcpath}/magick/.libs
86
87variant perl description {Install PerlMagick} {
88    depends_lib-append \
89        path:${prefix}/bin/perl:perl5.8
90    configure.args-delete \
91        --without-perl
92    configure.args-append \
93        --with-perl=${prefix}/bin/perl
94}
95
96variant gs description {Include Ghostscript library support} {
97    depends_lib-append \
98        port:ghostscript
99    configure.args-delete \
100        --without-gslib
101    configure.args-append \
102        --with-gslib
103}
104
105variant lcms description {Support the Little Color Management System} {
106    depends_lib-append \
107        port:lcms
108    configure.args-delete \
109        --without-lcms
110    configure.args-append \
111        --with-lcms
112}
113
114variant wmf description {Support the Windows Metafile Format} {
115    depends_lib-append \
116        port:libwmf
117    configure.args-delete \
118        --without-wmf
119    configure.args-append \
120        --with-wmf
121}
122
123variant mpeg description {Support MPEG-1 and MPEG-2 video} {
124    depends_lib-append \
125        port:mpeg2vidcodec
126}
127
128variant jbig description {Support JBIG} {
129    depends_lib-append \
130        port:jbigkit
131    configure.args-delete \
132        --without-jbig
133    configure.args-append \
134        --with-jbig
135}
136
137variant jpeg2 description {Support JPEG-2000 using JasPer} {
138    depends_lib-append \
139        port:jasper
140    configure.args-delete \
141        --without-jp2
142    configure.args-append \
143        --with-jp2
144}
145
146variant graphviz description {Support Graphviz} {
147    depends_lib-append \
148        port:graphviz
149    configure.args-delete \
150        --without-gvc
151    configure.args-append \
152        --with-gvc
153}
154
155variant q8 conflicts q16 q32 description {Use 8 bits per pixel quantum} {
156    configure.args-append --with-quantum-depth=8
157}
158
159variant q16 conflicts q8 q32 description {Use 16 bits per pixel quantum (default)} {
160    configure.args-append --with-quantum-depth=16
161}
162
163variant q32 conflicts q8 q16 description {Use 32 bits per pixel quantum} {
164    configure.args-append --with-quantum-depth=32
165}
166
167if {![variant_isset q8] && ![variant_isset q32]} {
168    default_variants +q16
169}
170
171variant no_x11 description {Disable X11 support} {
172    depends_lib-delete \
173        lib:libX11.6:XFree86
174    configure.args-delete \
175        --with-x
176    configure.args-append \
177        --without-x
178}
179
180variant no_plus_plus description {Do not install Magick++} {
181    configure.args-append \
182        --without-magick-plus-plus
183}
184
185platform darwin 6 {
186    depends_lib-append \
187        lib:libdl:dlcompat \
188        lib:libltdl:libtool
189}
190
191livecheck.check         regex
192livecheck.url           http://ftp.surfnet.nl/pub/ImageMagick/?C=M&O=D
193livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*(?:-\\d+)?)
Note: See TracBrowser for help on using the repository browser.