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

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

ImageMagick: update to 6.3.8-1
All 696 tests behaved as expected (33 expected failures)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1# $Id: Portfile 33403 2008-01-26 10:04:29Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ImageMagick
6version             6.3.8-1
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 bda5a04205662182de2d2b33449491d4 \
40        sha1 b2956b2e415b7e7fffe6aa6fd742849dc7bca7ba \
41        rmd160 789a58b179fb83660d1887a64238ca36a8927960
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 {
88        depends_lib-append \
89                port:perl5.8
90        configure.args-delete \
91                --without-perl
92        configure.args-append \
93                --with-perl=${prefix}/bin/perl
94}
95
96variant gs {
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 {
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 {
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 {
124        depends_lib-append \
125                port:mpeg2vidcodec
126}
127
128variant 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 {
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 {
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 {
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 {
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.