From 204f72f8977e0ff8dfbbfc87c7a05968312cb31c Mon Sep 17 00:00:00 2001 From: Joel Beckmeyer Date: Tue, 15 Mar 2022 14:31:34 -0400 Subject: [PATCH] New package: php8.0-imagick-3.7.0 --- srcpkgs/php8.0-imagick/INSTALL.msg | 3 ++ ...le-libmagick-header-file-search-path.patch | 17 +++++++++++ srcpkgs/php8.0-imagick/template | 29 +++++++++++++++++++ srcpkgs/php8.0-imagick/update | 1 + 4 files changed, 50 insertions(+) create mode 100644 srcpkgs/php8.0-imagick/INSTALL.msg create mode 100644 srcpkgs/php8.0-imagick/patches/0001-fix-cross-compile-libmagick-header-file-search-path.patch create mode 100644 srcpkgs/php8.0-imagick/template create mode 100644 srcpkgs/php8.0-imagick/update diff --git a/srcpkgs/php8.0-imagick/INSTALL.msg b/srcpkgs/php8.0-imagick/INSTALL.msg new file mode 100644 index 0000000000..00497519fc --- /dev/null +++ b/srcpkgs/php8.0-imagick/INSTALL.msg @@ -0,0 +1,3 @@ +To enable the Imagick extension add the following line to your php.ini: + + extension=imagick.so diff --git a/srcpkgs/php8.0-imagick/patches/0001-fix-cross-compile-libmagick-header-file-search-path.patch b/srcpkgs/php8.0-imagick/patches/0001-fix-cross-compile-libmagick-header-file-search-path.patch new file mode 100644 index 0000000000..16b8aaa573 --- /dev/null +++ b/srcpkgs/php8.0-imagick/patches/0001-fix-cross-compile-libmagick-header-file-search-path.patch @@ -0,0 +1,17 @@ +--- a/imagemagick.m4 2021-09-09 10:53:42.287881616 +0200 ++++ b/imagemagick.m4 2021-09-09 11:14:47.662312430 +0200 +@@ -167,6 +167,14 @@ AC_DEFUN([IM_FIND_IMAGEMAGICK],[ + + AC_MSG_RESULT([user location ${IM_IMAGEMAGICK_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/wand/MagickWand.h]) + ++ elif test -r "${IM_IMAGEMAGICK_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/MagickWand/MagickWand.h"; then ++ ++ IM_INCLUDE_FORMAT="MagickWand/MagickWand.h" ++ IM_HEADER_STYLE="SEVEN" ++ AC_DEFINE([IM_MAGICKWAND_HEADER_STYLE_SEVEN], [1], [ImageMagick 7.x style header]) ++ ++ AC_MSG_RESULT([${IM_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/MagickWand/MagickWand.h]) ++ + elif test -r "${IM_PREFIX}/include/ImageMagick-${IM_MAJOR_VERSION}/MagickWand/MagickWand.h"; then + + IM_INCLUDE_FORMAT="MagickWand/MagickWand.h" diff --git a/srcpkgs/php8.0-imagick/template b/srcpkgs/php8.0-imagick/template new file mode 100644 index 0000000000..9b0e0ba248 --- /dev/null +++ b/srcpkgs/php8.0-imagick/template @@ -0,0 +1,29 @@ +# Template file for 'php8.0-imagick' +pkgname=php8.0-imagick +version=3.7.0 +revision=1 +wrksrc="imagick-$version" +build_style=gnu-configure +configure_args="--with-imagick=${XBPS_CROSS_BASE}/usr \ + --with-php-config=/usr/bin/php-config8.0" +hostmakedepends="php8.0-devel autoconf pkg-config" +makedepends="php8.0-devel pcre2-devel libmagick-devel" +depends="php8.0" +short_desc="Provides a PHP wrapper to the ImageMagick library" +maintainer="Joel Beckmeyer " +license="PHP-3.01" +homepage="https://pecl.php.net/package/imagick" +distfiles="https://pecl.php.net/get/imagick-$version.tgz" +checksum=5a364354109029d224bcbb2e82e15b248be9b641227f45e63425c06531792d3e + +pre_configure() { + phpize8.0 +} + +pre_install() { + make_install_args="INSTALL_ROOT=$DESTDIR" +} + +post_install() { + rm -r $DESTDIR/usr/include +} diff --git a/srcpkgs/php8.0-imagick/update b/srcpkgs/php8.0-imagick/update new file mode 100644 index 0000000000..fb47044a96 --- /dev/null +++ b/srcpkgs/php8.0-imagick/update @@ -0,0 +1 @@ +pattern=')'