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

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

ImageMagick: update to 6.4.2-7
All 699 tests behaved as expected (33 expected failures)

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