[62707] trunk/dports/php

nox at macports.org nox at macports.org
Wed Jan 13 23:19:51 PST 2010


Revision: 62707
          http://trac.macports.org/changeset/62707
Author:   nox at macports.org
Date:     2010-01-13 23:19:48 -0800 (Wed, 13 Jan 2010)
Log Message:
-----------
Create new port php5-FreeImage

This extension is a wrapper for the FreeImage library that allows PHP to
support popular graphics image fromats like GIF, PNG, BMP, JPEG, TIFF,
PSD, XPM and others as needed by today's multimedia application.

Added Paths:
-----------
    trunk/dports/php/php5-FreeImage/
    trunk/dports/php/php5-FreeImage/Portfile
    trunk/dports/php/php5-FreeImage/files/
    trunk/dports/php/php5-FreeImage/files/patch-freeimage.c.diff

Added: trunk/dports/php/php5-FreeImage/Portfile
===================================================================
--- trunk/dports/php/php5-FreeImage/Portfile	                        (rev 0)
+++ trunk/dports/php/php5-FreeImage/Portfile	2010-01-14 07:19:48 UTC (rev 62707)
@@ -0,0 +1,41 @@
+# $Id$
+
+PortSystem      1.0
+PortGroup       archcheck 1.0
+PortGroup       php5extension 1.0
+
+php5extension.setup FreeImage 0.1 pecl
+license         PHP
+categories      php devel
+platforms       darwin
+maintainers     nox openmaintainer
+description     Provides a wrapper to the FreeImage library.
+
+long_description \
+    This extension is a wrapper for the FreeImage library that allows PHP to \
+    support popular graphics image fromats like GIF, PNG, BMP, JPEG, TIFF, \
+    PSD, XPM and others as needed by today's multimedia application.
+
+checksums       md5     91d3776de0beba4cdd7a76952f9b3265 \
+                sha1    a81bddb31962f4054cddf1fc4b35d9c2ae7476d7 \
+                rmd160  7a19f53176fc303c7ef04f06671b9eeeadbcec5a
+
+patchfiles      patch-freeimage.c.diff
+
+depends_lib-append \
+    port:freeimage
+
+archcheck.files \
+    lib/libfreeimage.dylib
+
+configure.args-append \
+    --with-freeimage=${prefix}
+
+post-destroot {
+    set docdir ${prefix}/share/doc/${name}
+    xinstall -d ${destroot}${docdir}
+    xinstall -m 644 -W ${worksrcpath} CREDITS README ${destroot}${docdir}
+    copy ${worksrcpath}/examples ${destroot}${docdir}
+}
+
+livecheck.regex {(\d+(?:\.\d+)*)</a></th>}


Property changes on: trunk/dports/php/php5-FreeImage/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/php/php5-FreeImage/files/patch-freeimage.c.diff
===================================================================
--- trunk/dports/php/php5-FreeImage/files/patch-freeimage.c.diff	                        (rev 0)
+++ trunk/dports/php/php5-FreeImage/files/patch-freeimage.c.diff	2010-01-14 07:19:48 UTC (rev 62707)
@@ -0,0 +1,11 @@
+--- freeimage.c.orig	2010-01-13 22:48:39.000000000 +0100
++++ freeimage.c	2010-01-13 22:49:08.000000000 +0100
+@@ -1828,7 +1828,7 @@
+ 	if (zend_parse_parameters(argc TSRMLS_CC, "lsbb|b", &fif, &filename, &filename_len, &create_new, &read_only, &keep_cache_in_memory) == FAILURE) 
+ 		return;
+ 	multibitmap = (FIMULTIBITMAP *)emalloc(sizeof(FIMULTIBITMAP));
+-	multibitmap = FreeImage_OpenMultiBitmap((FREE_IMAGE_FORMAT)fif, filename, create_new, read_only, keep_cache_in_memory);
++	multibitmap = FreeImage_OpenMultiBitmap((FREE_IMAGE_FORMAT)fif, filename, create_new, read_only, keep_cache_in_memory, /* int flags FI_DEFAULT(0) */ 0);
+ 	if (multibitmap != NULL) {
+ 		ZEND_REGISTER_RESOURCE(return_value, multibitmap, le_freeimage_multibitmap);
+ 	} else {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100113/a29ac654/attachment.html>


More information about the macports-changes mailing list