php-imagick: update to 3.8.1

closes: https://trac.macports.org/ticket/69390
This commit is contained in:
BjarneDM
2025-02-08 00:37:00 +01:00
committed by Renee Otten
parent 51de4fb582
commit cc577ec185
+28 -6
View File
@@ -5,10 +5,10 @@ PortGroup php 1.1
name php-imagick
categories-append graphics
maintainers {ryandesign @ryandesign} openmaintainer
maintainers {ryandesign @ryandesign} {mathiesen.info:macintosh @BjarneDMat} openmaintainer
license PHP-3.01
php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3
php.branches 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 8.3 8.4 8.5
php.pecl yes
description PHP extension to create and modify images with \
@@ -17,7 +17,13 @@ description PHP extension to create and modify images with \
long_description Imagick is a native PHP extension for creating and \
modifying images using the ImageMagick API
if {[vercmp ${php.branch} >= 5.4]} {
if {[vercmp ${php.branch} >= 5.6]} {
version 3.8.1
revision 0
checksums rmd160 1a12b6b6debb7b5fe2c11975a92bf293f25cae85 \
sha256 3a3587c0a524c17d0dad9673a160b90cd776e836838474e173b549ed864352ee \
size 364008
} elseif {[vercmp ${php.branch} >= 5.4]} {
epoch 1
version 3.7.0
revision 1
@@ -29,19 +35,29 @@ if {[vercmp ${php.branch} >= 5.4]} {
# https://pecl.php.net/package-info.php?package=imagick&version=3.4.0RC1
epoch 2
version 3.3.0
revision 1
revision 2
checksums rmd160 5746dc20ed455049a6eb5cea8dfe2b6c702c8f7c \
sha256 bd69ebadcedda1d87592325b893fa78a5710a0ca7307f8e18c5e593949b1db2d \
size 179978
}
if {${name} ne ${subport}} {
conflicts [string map {-i -g} ${subport}]
depends_build-append \
path:bin/pkg-config:pkgconfig
depends_lib-append port:ImageMagick
variant ImageMagick7 conflicts ImageMagick6 description {Use ImageMagick7 libraries} {
depends_lib-append port:ImageMagick7
configure.args --with-imagick=${prefix}
configure.args --with-imagick=${prefix}/lib/ImageMagick7
}
variant ImageMagick6 conflicts ImageMagick7 description {Use ImageMagick6 libraries} {
depends_lib-append port:ImageMagick
configure.args --with-imagick=${prefix}
}
post-destroot {
set docdir ${prefix}/share/doc/${subport}
@@ -49,4 +65,10 @@ if {${name} ne ${subport}} {
xinstall -m 0644 -W ${worksrcpath} CREDITS ${destroot}${subport}
copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}
}
# https://trac.macports.org/ticket/69390
if {![variant_isset ImageMagick7] && ![variant_isset ImageMagick6] } {
default_variants +ImageMagick7
}
}