Skip to content

Commit

Permalink
php-imagick: Updates for PHP48 and IM7
Browse files Browse the repository at this point in the history
* Two fixes on top of Bjarne Mathiesen's original PHP48 update.
  • Loading branch information
Dave-Allured authored Feb 6, 2025
1 parent 0cba82a commit 40f8dbb
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions php/php-imagick/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ categories-append graphics
maintainers {ryandesign @ryandesign} 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
php.pecl yes

description PHP extension to create and modify images with \
Expand All @@ -20,7 +20,7 @@ long_description Imagick is a native PHP extension for creating and \
if {[vercmp ${php.branch} >= 5.4]} {
epoch 1
version 3.7.0
revision 1
revision 2
checksums rmd160 60d5c6cc154b65bdfd31be6980633ff1e659bc73 \
sha256 5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e \
size 360138
Expand All @@ -29,7 +29,7 @@ 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
Expand All @@ -39,9 +39,14 @@ if {${name} ne ${subport}} {
depends_build-append \
path:bin/pkg-config:pkgconfig

depends_lib-append port:ImageMagick
depends_lib-append port:ImageMagick7

# Temporary, imagick 3.7.0, remove when fixed in new upstream version.
# Fix removed "php_strtolower" for PHP 8.4
# https://github.com/Imagick/imagick/pull/690
patchfiles-append patch-imagick_c.strtolower.diff

configure.args --with-imagick=${prefix}
configure.args --with-imagick=${prefix}/lib/ImageMagick7

post-destroot {
set docdir ${prefix}/share/doc/${subport}
Expand Down

0 comments on commit 40f8dbb

Please sign in to comment.