Skip to content

Commit

Permalink
php-zip: Add php74
Browse files Browse the repository at this point in the history
Update configure options that have moved to using pkg-config.
See https://www.php.net/manual/en/migration74.other-changes.php#migration74.other-changes.pkg-config
  • Loading branch information
chrisminett authored and ryandesign committed Jan 20, 2020
1 parent 1e49511 commit 27914c4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions php/php-zip/Portfile
Expand Up @@ -9,7 +9,7 @@ platforms darwin
maintainers {ryandesign @ryandesign} openmaintainer
license PHP-3.01

php.branches 5.2 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3
php.branches 5.2 5.3 5.4 5.5 5.6 7.0 7.1 7.2 7.3 7.4
php.pecl yes

if {[vercmp ${php.branch} 4.3] >= 0} {
Expand All @@ -30,7 +30,13 @@ if {${name} ne ${subport}} {
depends_lib-append port:libzip \
port:zlib

configure.args-append --enable-zip \
--with-libzip=${prefix} \
--with-zlib-dir=${prefix}
if {[vercmp ${php.branch} 7.4] < 0} {
configure.args-append --enable-zip \
--with-libzip=${prefix} \
--with-zlib-dir=${prefix}
} else {
depends_build-append port:pkgconfig

configure.args-append --with-zip
}
}

0 comments on commit 27914c4

Please sign in to comment.