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

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

ImageMagick: add dependency on liblqr port in lqr variant forgotten in r40913; see #16883

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.1 KB
Line 
1# $Id: Portfile 40949 2008-10-18 20:19:07Z ryandesign@macports.org $
2
3PortSystem              1.0
4
5name                    ImageMagick
6version                 6.4.4-9
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     17fc68afdc0a185ad2dab72a641f5296 \
41    sha1    52791e106b590116936ce02edb70c8badf34db07 \
42    rmd160  f9c5d33aa9647a1c28679bebd8592617dce8a5e8
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    --without-lqr \
84    --mandir=${prefix}/share/man
85
86test.run                yes
87test.target             check
88test.env                DYLD_LIBRARY_PATH=${worksrcpath}/magick/.libs
89
90variant rsvg description {Support SVG using librsvg} {
91    depends_lib-append \
92        port:librsvg
93    configure.args-delete \
94        --without-rsvg
95    configure.args-append \
96        --with-rsvg
97}
98
99variant perl description {Install PerlMagick} {
100    depends_lib-append \
101        path:${prefix}/bin/perl:perl5.8
102    configure.args-delete \
103        --without-perl
104    configure.args-append \
105        --with-perl=${prefix}/bin/perl
106    post-destroot {
107        foreach packlist [exec find ${destroot} -name .packlist] {
108            ui_info "Fixing packlist ${packlist}"
109            reinplace "s|${destroot}||" ${packlist}
110        }
111        foreach badfile [exec find ${destroot} -name perllocal.pod] {
112            ui_info "Removing ${badfile}"
113            file delete ${badfile}
114        }
115    }
116}
117
118variant gs description {Include Ghostscript library support} {
119    depends_lib-append \
120        port:ghostscript
121    configure.args-delete \
122        --without-gslib
123    configure.args-append \
124        --with-gslib
125}
126
127variant lcms description {Support the Little Color Management System} {
128    depends_lib-append \
129        port:lcms
130    configure.args-delete \
131        --without-lcms
132    configure.args-append \
133        --with-lcms
134}
135
136variant lqr description {Support Liquid Rescale (experimental)} {
137    depends_lib-append \
138        port:liblqr
139    configure.args-delete \
140        --without-lqr
141    configure.args-append \
142        --with-lqr
143}
144
145variant wmf description {Support the Windows Metafile Format} {
146    depends_lib-append \
147        port:libwmf
148    configure.args-delete \
149        --without-wmf
150    configure.args-append \
151        --with-wmf
152}
153
154variant mpeg description {Support MPEG-1 and MPEG-2 video} {
155    depends_lib-append \
156        port:mpeg2vidcodec
157}
158
159variant jbig description {Support JBIG} {
160    depends_lib-append \
161        port:jbigkit
162    configure.args-delete \
163        --without-jbig
164    configure.args-append \
165        --with-jbig
166}
167
168variant jpeg2 description {Support JPEG-2000 using JasPer} {
169    depends_lib-append \
170        port:jasper
171    configure.args-delete \
172        --without-jp2
173    configure.args-append \
174        --with-jp2
175}
176
177variant graphviz description {Support Graphviz} {
178    depends_lib-append \
179        port:graphviz
180    configure.args-delete \
181        --without-gvc
182    configure.args-append \
183        --with-gvc
184}
185
186variant hdri description {Support High Dynamic Range Imaging using OpenEXR} {
187    depends_lib-append \
188        port:openexr
189    configure.args-delete \
190        --disable-hdri
191    configure.args-append \
192        --enable-hdri
193}
194
195variant q8 conflicts q16 q32 description {Use 8 bits per pixel quantum} {
196    configure.args-append --with-quantum-depth=8
197}
198
199variant q16 conflicts q8 q32 description {Use 16 bits per pixel quantum (default)} {
200    configure.args-append --with-quantum-depth=16
201}
202
203variant q32 conflicts q8 q16 description {Use 32 bits per pixel quantum} {
204    configure.args-append --with-quantum-depth=32
205}
206
207if {![variant_isset q8] && ![variant_isset q32]} {
208    default_variants +q16
209}
210
211variant no_x11 description {Disable X11 support} {
212    depends_lib-delete \
213        lib:libX11.6:XFree86
214    configure.args-delete \
215        --with-x
216    configure.args-append \
217        --without-x
218}
219
220variant no_plus_plus description {Do not install Magick++} {
221    configure.args-append \
222        --without-magick-plus-plus
223}
224
225platform darwin 6 {
226    depends_lib-append \
227        lib:libdl:dlcompat \
228        lib:libltdl:libtool
229}
230
231livecheck.check         regex
232livecheck.url           http://ftp.surfnet.nl/pub/ImageMagick/?C=M&O=D
233livecheck.regex         ${name}-(\\d+(?:\\.\\d+)*(?:-\\d+)?)
Note: See TracBrowser for help on using the repository browser.