Build graphics/pecl-imagick PHP 8 compatible extension

The version in the ports tree is not working - it shows some errors when installed. But the source on the master brach of the Imagick repo seems to work.

Here's how you can use it.

  1. Clone the repo somewhere on disk
  2. Execute following commands:

cd
phpize
./configure
make
make install

cat > /usr/local/etc/php/ext-20-imagick.ini
extension=imagick.so
^D

php -i | grep imagick
/usr/local/etc/php/ext-20-imagick.ini,
imagick
imagick module => enabled
imagick module version => @PACKAGE_VERSION@
imagick classes => Imagick, ImagickDraw, ImagickPixel, ImagickPixelIterator, ImagickKernel
imagick.locale_fix => 0 => 0
imagick.progress_monitor => 0 => 0
imagick.set_single_thread => 0 => 0
imagick.shutdown_sleep_count => 10 => 10
imagick.skip_version_check => 0 => 0