[75828] trunk/dports/graphics

jmr at macports.org jmr at macports.org
Wed Feb 9 18:51:32 PST 2011


Revision: 75828
          http://trac.macports.org/changeset/75828
Author:   jmr at macports.org
Date:     2011-02-09 18:51:29 -0800 (Wed, 09 Feb 2011)
Log Message:
-----------
New port: exact-image, a fast, modern and generic image processing library (#24614)

Added Paths:
-----------
    trunk/dports/graphics/exact-image/
    trunk/dports/graphics/exact-image/Portfile
    trunk/dports/graphics/exact-image/files/
    trunk/dports/graphics/exact-image/files/codecs_png.cc.diff

Added: trunk/dports/graphics/exact-image/Portfile
===================================================================
--- trunk/dports/graphics/exact-image/Portfile	                        (rev 0)
+++ trunk/dports/graphics/exact-image/Portfile	2011-02-10 02:51:29 UTC (rev 75828)
@@ -0,0 +1,45 @@
+# $Id$
+
+PortSystem          1.0
+
+name                exact-image
+version             0.8.4
+categories          graphics
+license             GPL-2
+maintainers         tobias-elze.de:macports openmaintainer
+description         a fast, modern and generic image processing library
+long_description \
+   ExactImage is ${description}.
+
+platforms           darwin
+
+homepage            http://www.exactcode.de/site/open_source/exactimage/
+master_sites        http://dl.exactcode.de/oss/exact-image/
+
+use_bzip2           yes
+checksums           md5 a7f18ca4d2970d9e2d74bdea84990c78 \
+                    sha1 36d946be607699e166e81fc451ee878f646a94c5 \
+                    rmd160 0e60d5fc30c6d88ea4ae8e1a5c34e119c281204a
+
+depends_lib         port:antigraingeometry \
+                    port:libpng \
+                    port:jasper \
+                    port:expat \
+                    port:lcms
+
+patchfiles          codecs_png.cc.diff
+
+configure.args      --with-freetype \
+                    --with-libjpeg \
+                    --with-libtiff \
+                    --with-libpng \
+                    --with-jasper \
+                    --with-expat \
+                    --with-lcms \
+                    --without-libungif \
+                    --without-lua \
+                    --without-swig \
+                    --without-perl \
+                    --without-python \
+                    --without-php \
+                    --without-ruby


Property changes on: trunk/dports/graphics/exact-image/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/graphics/exact-image/files/codecs_png.cc.diff
===================================================================
--- trunk/dports/graphics/exact-image/files/codecs_png.cc.diff	                        (rev 0)
+++ trunk/dports/graphics/exact-image/files/codecs_png.cc.diff	2011-02-10 02:51:29 UTC (rev 75828)
@@ -0,0 +1,61 @@
+--- codecs/png.cc.orig	2011-02-09 16:18:47.000000000 +1100
++++ codecs/png.cc	2011-02-09 16:25:04.000000000 +1100
+@@ -71,7 +71,7 @@ int PNGCodec::readImage (std::istream* s
+   /* Allocate/initialize the memory for image information.  REQUIRED. */
+   info_ptr = png_create_info_struct(png_ptr);
+   if (info_ptr == NULL) {
+-    png_destroy_read_struct(&png_ptr, png_infopp_NULL, png_infopp_NULL);
++    png_destroy_read_struct(&png_ptr, (png_infopp)NULL, (png_infopp)NULL);
+     return 0;
+   }
+   
+@@ -82,7 +82,7 @@ int PNGCodec::readImage (std::istream* s
+   
+   if (setjmp(png_jmpbuf(png_ptr))) {
+     /* Free all of the memory associated with the png_ptr and info_ptr */
+-    png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++    png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
+     /* If we get here, we had a problem reading the file */
+     return 0;
+   }
+@@ -99,7 +99,7 @@ int PNGCodec::readImage (std::istream* s
+   png_read_info (png_ptr, info_ptr);
+   
+   png_get_IHDR (png_ptr, info_ptr, &width, &height, &bit_depth, &color_type,
+-		&interlace_type, int_p_NULL, int_p_NULL);
++		&interlace_type, NULL, NULL);
+   
+   image.w = width;
+   image.h = height;
+@@ -196,11 +196,11 @@ int PNGCodec::readImage (std::istream* s
+   for (int pass = 0; pass < number_passes; ++pass)
+     for (unsigned int y = 0; y < height; ++y) {
+       row_pointers[0] = image.getRawData() + y * stride;
+-      png_read_rows(png_ptr, row_pointers, png_bytepp_NULL, 1);
++      png_read_rows(png_ptr, row_pointers, (png_bytepp)NULL, 1);
+     }
+   
+   /* clean up after the read, and free any memory allocated - REQUIRED */
+-  png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++  png_destroy_read_struct(&png_ptr, &info_ptr, (png_infopp)NULL);
+   
+   /* that's it */
+   return true;
+@@ -224,7 +224,7 @@ bool PNGCodec::writeImage (std::ostream*
+   /* Allocate/initialize the memory for image information.  REQUIRED. */
+   info_ptr = png_create_info_struct(png_ptr);
+   if (info_ptr == NULL) {
+-    png_destroy_write_struct(&png_ptr, png_infopp_NULL);
++    png_destroy_write_struct(&png_ptr, (png_infopp)NULL);
+     return false;
+   }
+   
+@@ -244,8 +244,6 @@ bool PNGCodec::writeImage (std::ostream*
+   else if (quality > Z_BEST_COMPRESSION) quality = Z_BEST_COMPRESSION;
+   png_set_compression_level(png_ptr, quality);
+   
+-  png_info_init (info_ptr);
+-  
+   /* Set up our STL stream output control */ 
+   png_set_write_fn (png_ptr, stream, &stdstream_write_data, &stdstream_flush_data);
+   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110209/ed2b4e85/attachment.html>


More information about the macports-changes mailing list