1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Build imagick from master on PHP 8.0

Test: imagick
This commit is contained in:
Michele Locati 2020-12-17 16:56:23 +01:00
parent 7dcc744a9b
commit a814bd12a7
No known key found for this signature in database
GPG key ID: 98B7CE2E7234E28B
2 changed files with 24 additions and 1 deletions

View file

@ -1402,6 +1402,26 @@ installRemoteModule() {
fi
fi
;;
imagick)
if test $PHP_MAJMIN_VERSION -ge 800; then
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=132a11fd26675db9eb9f0e9a3e2887c161875206
fi
if test "${installRemoteModule_version%.*}" = "$installRemoteModule_version"; then
installRemoteModule_displayVersion="$installRemoteModule_version"
else
installRemoteModule_displayVersion="git--master-$installRemoteModule_version"
fi
installRemoteModule_src="$(getPackageSource https://codeload.github.com/Imagick/imagick/tar.gz/$installRemoteModule_version)"
cd -- "$installRemoteModule_src"
sed -Ei "s/^([ \t]*#define[ \t]+PHP_IMAGICK_VERSION[ \t]+\")@PACKAGE_VERSION@(\")/\1git--master-$installRemoteModule_displayVersion\2/" php_imagick.h
phpize
./configure
make -j$(getProcessorCount)
make install
installRemoteModule_manuallyInstalled=1
fi
;;
ioncube_loader)
installRemoteModule_src='https://downloads.ioncube.com/loader_downloads/'
if test $(php -r 'echo PHP_INT_SIZE;') -eq 4; then
@ -1932,6 +1952,9 @@ configureInstaller() {
if test "${PHP_MODULE_TO_INSTALL#@}" != "$PHP_MODULE_TO_INSTALL"; then
continue
fi
if test "$PHP_MODULE_TO_INSTALL" = 'imagick' && test $PHP_MAJMIN_VERSION -ge 800; then
continue
fi
if ! stringInList "$PHP_MODULE_TO_INSTALL" "$BUNDLED_MODULES"; then
if test $PHP_MAJMIN_VERSION -lt 800; then
pecl channel-update pecl.php.net || true