Permalink
Fetching contributors…
Cannot retrieve contributors at this time
57 lines (44 sloc) 2.03 KB
# -*- 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
PortSystem 1.0
PortGroup perl5 1.0
# Keep relevant lines in sync between ImageMagick and p5-perlmagick.
epoch 1
perl5.branches 5.26
perl5.setup PerlMagick 6.9.9-40
set reasonable_version \
[lindex [split ${version} -] 0]
set my_name ImageMagick
maintainers {ryandesign @ryandesign}
description Perl extension for calling ImageMagick's libMagick methods
long_description ${description}
license Apache-2
platforms darwin
use_xz yes
# we use the ImageMagick distribution version of PerlMagick to
# ensure it will always match ImageMagick version installed
master_sites http://www.imagemagick.org/download/ \
http://mirror.checkdomain.de/imagemagick/ \
ftp://ftp.u-aizu.ac.jp/pub/graphics/image/ImageMagick/imagemagick.org/ \
ftp://ftp.sunet.se/pub/multimedia/graphics/ImageMagick \
ftp://sunsite.icm.edu.pl/packages/ImageMagick
dist_subdir ImageMagick
distname ${my_name}-${version}
checksums rmd160 d01d39b0da259c1296acaa37867f1a428928b72e \
sha256 62f25d46bfbcffe00b84e167994d593868a9a47d4defc489a429cae1d6aab9f7 \
size 8919136
if {${perl5.major} != ""} {
depends_lib-append port:ImageMagick
configure.dir ${worksrcpath}/PerlMagick
build.dir ${configure.dir}
pre-configure {
system -W ${worksrcpath} "CC=${configure.cc} CXX=${configure.cxx} ./configure --prefix=${prefix} --disable-openmp --with-quantum-depth=16 --with-perl=${perl5.bin}"
system -W ${worksrcpath} "make perl-sources"
}
use_parallel_build no
livecheck.type none
} else {
livecheck.version ${reasonable_version}
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
livecheck.regex ${my_name}-(6(?:\\.\\d+)*)(?:-\\d+)?
}