source: trunk/dports/perl/p5-perlmagick/Portfile

Last change on this file was 154393, checked in by mojca@…, 13 months ago

p5-*: remove subports for perl5.22 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154393 2016-10-28 22:10:07Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7# Keep relevant lines in sync between ImageMagick and p5-perlmagick.
8
9epoch               1
10perl5.branches      5.24
11perl5.setup         PerlMagick 6.9.6-2
12set reasonable_version \
13                    [lindex [split ${version} -] 0]
14set my_name         ImageMagick
15maintainers         futurelab.ch:astricker ryandesign
16description         Perl extension for calling ImageMagick's libMagick methods
17long_description    ${description}
18license             Apache-2
19platforms           darwin
20use_xz              yes
21
22# we use the ImageMagick distribution version of PerlMagick to
23# ensure it will always match ImageMagick version installed
24
25master_sites        http://www.imagemagick.org/download/ \
26                    http://mirror.checkdomain.de/imagemagick/ \
27                    ftp://ftp.u-aizu.ac.jp/pub/graphics/image/ImageMagick/imagemagick.org/ \
28                    ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick \
29                    ftp://sunsite.icm.edu.pl/packages/ImageMagick
30
31dist_subdir         ImageMagick
32distname            ${my_name}-${version}
33
34checksums           rmd160  ac9ad0377f35105134bf0ea7b616ed46e5b4f7e8 \
35                    sha256  39244823fe736626fb4ea22c4b6cb4cae30c6a27a38a02ecd774f0ce3c4d308d
36
37if {${perl5.major} != ""} {
38depends_lib-append  port:ImageMagick
39
40configure.dir       ${worksrcpath}/PerlMagick
41build.dir           ${configure.dir}
42
43pre-configure {
44    system -W ${worksrcpath} "CC=${configure.cc} CXX=${configure.cxx} ./configure --prefix=${prefix} --disable-openmp --with-quantum-depth=16 --with-perl=${perl5.bin}"
45    system -W ${worksrcpath} "make perl-sources"
46}
47
48use_parallel_build  no
49
50livecheck.type      none
51} else {
52livecheck.version   ${reasonable_version}
53livecheck.type      regex
54livecheck.url       [lindex ${master_sites} 0]
55livecheck.regex     ${my_name}-(6(?:\\.\\d+)*)(?:-\\d+)?
56}
Note: See TracBrowser for help on using the repository browser.