31 lines
870 B
Bash
31 lines
870 B
Bash
# Template file for 'php-imagick'
|
|
pkgname=php-imagick
|
|
version=3.4.4
|
|
revision=2
|
|
wrksrc="imagick-$version"
|
|
build_style=gnu-configure
|
|
hostmakedepends="php-devel autoconf pkg-config"
|
|
makedepends="php-devel pcre2-devel libmagick-devel"
|
|
depends="php>=7.4.3"
|
|
short_desc="Provides a PHP wrapper to the ImageMagick library"
|
|
maintainer="Alin Dobre <alin.dobre@outlook.com>"
|
|
license="PHP-3.01"
|
|
homepage="https://pecl.php.net/package/imagick"
|
|
distfiles="https://pecl.php.net/get/imagick-$version.tgz"
|
|
checksum=8dd5aa16465c218651fc8993e1faecd982e6a597870fd4b937e9ece02d567077
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
broken="checking for MagickWand.h or magick-wand.h header... configure: error: Unable to find MagickWand.h or magick-wand.h header"
|
|
fi
|
|
|
|
pre_configure() {
|
|
phpize
|
|
}
|
|
|
|
pre_install() {
|
|
make_install_args="INSTALL_ROOT=$DESTDIR"
|
|
}
|
|
|
|
post_install() {
|
|
rm -r $DESTDIR/usr/include
|
|
}
|