1 | # $Id: Portfile 82547 2011-08-15 16:46:16Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup perl5 1.0 |
---|
5 | |
---|
6 | epoch 1 |
---|
7 | perl5.setup PerlMagick 6.7.0-0 |
---|
8 | set reasonable_version [lindex [split ${version} -] 0] |
---|
9 | set my_name ImageMagick |
---|
10 | maintainers futurelab.ch:astricker |
---|
11 | description Perl extension for calling ImageMagick's libMagick methods |
---|
12 | long_description ${description} |
---|
13 | license ImageMagick |
---|
14 | platforms darwin |
---|
15 | use_7z yes |
---|
16 | |
---|
17 | # we use the ImageMagick distribution version of PerlMagick to |
---|
18 | # ensure it will always match ImageMagick version installed |
---|
19 | |
---|
20 | master_sites http://image_magick.veidrodis.com/image_magick/ \ |
---|
21 | http://imagemagick.linux-mirror.org/download/ \ |
---|
22 | ftp://ftp.imagemagick.net/pub/${name}/ \ |
---|
23 | ftp://ftp.fifi.org/pub/ImageMagick/ |
---|
24 | |
---|
25 | dist_subdir ImageMagick |
---|
26 | distname ${my_name}-${version} |
---|
27 | worksrcdir ${worksrcdir}/PerlMagick |
---|
28 | |
---|
29 | checksums sha1 838601b8568b319785f3e758250f168b5fbe2e05 \ |
---|
30 | rmd160 3200ad0f789bb246bc19478bdb6dc3b332df7aff |
---|
31 | |
---|
32 | if {${perl5.major} != ""} { |
---|
33 | depends_lib-append port:ImageMagick |
---|
34 | post-patch { |
---|
35 | if {[variant_isset universal]} { |
---|
36 | set archflags ${configure.universal_cflags} |
---|
37 | } else { |
---|
38 | set archflags ${configure.cc_archflags} |
---|
39 | } |
---|
40 | reinplace "s|@ARCHFLAGS@|${archflags}|g" ${worksrcpath}/Makefile.PL |
---|
41 | reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile.PL |
---|
42 | } |
---|
43 | } |
---|
44 | |
---|
45 | livecheck.version ${reasonable_version} |
---|
46 | livecheck.type regex |
---|
47 | livecheck.url http://ftp.surfnet.nl/pub/ImageMagick/ |
---|
48 | livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)(?:-\\d+)? |
---|