Bug 204620

Summary: [patch update unbreak] graphics/php-magickwand
Product: Ports & Packages Reporter: Kurt Jaeger <pi>
Component: Individual Port(s)Assignee: Kurt Jaeger <pi>
Status: Closed FIXED    
Severity: Affects Only Me CC: knightofthecode, pi
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch none

Description Kurt Jaeger freebsd_committer freebsd_triage 2015-11-17 07:28:32 UTC
Created attachment 163235 [details]
patch

- Add support for MagickStatisticImage() (reference
  http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22757).
- Fixes build with newer ImageMagick
- Fixes build when ImageMagick is installed in non-standard location
- Add support for MagickSetImageEndian().
- MagickWand for PHP no longer fails to build in ZTS mode.
Comment 1 Richard Toohey 2015-11-17 08:17:40 UTC
This builds and works in basic testing on amd64 and PHP 5.6.

> pkg info | grep magickw
php-magickwand-1.0.9_4         PHP extension to manipulate images

> pkg info | grep Image
ImageMagick-6.9.2.4,1          Image processing tools

Test was:

<?php

	$w=NewMagickWand();  
	MagickSetResolution($w,200,200);

	MagickReadImage($w,'logo-red.png');

	if (MagickGetImageWidth($w) > 1000) {
		$height=1000*MagickGetImageHeight($w)/MagickGetImageWidth($w);
		MagickResizeImage($w,1000,$height,MW_QuadraticFilter,1.0);	
	}

	MagickSetImageFormat($w,'jpg');

	$out=MagickWriteImage($w,'blob.jpg');
?>

Many thanks for the quick fix; not sure if you need any more information?
Comment 2 commit-hook freebsd_committer freebsd_triage 2015-11-17 08:51:20 UTC
A commit references this bug:

Author: pi
Date: Tue Nov 17 08:51:03 UTC 2015
New revision: 401803
URL: https://svnweb.freebsd.org/changeset/ports/401803

Log:
  graphics/php-magickwand: unbreak, update 1.0.9 -> 1.0.9-2

  - Add support for MagickStatisticImage() (reference
    http://www.imagemagick.org/discourse-server/viewtopic.php?f=10&t=22757).
  - Fixes build with newer ImageMagick
  - Fixes build when ImageMagick is installed in non-standard location
  - Add support for MagickSetImageEndian().
  - MagickWand for PHP no longer fails to build in ZTS mode.

  PR:		204620
  Reviewed by:	Richard Toohey <knightofthecode@gmail.com>

Changes:
  head/graphics/php-magickwand/Makefile
  head/graphics/php-magickwand/distinfo
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2015-11-17 08:52:27 UTC
Committed, thanks for testing.