[83431] trunk/dports/graphics/scale2x
jmr at macports.org
jmr at macports.org
Thu Sep 1 04:47:26 PDT 2011
Revision: 83431
http://trac.macports.org/changeset/83431
Author: jmr at macports.org
Date: 2011-09-01 04:47:23 -0700 (Thu, 01 Sep 2011)
Log Message:
-----------
scale2x: update to 2.4, fix build with libpng 1.4
Modified Paths:
--------------
trunk/dports/graphics/scale2x/Portfile
Added Paths:
-----------
trunk/dports/graphics/scale2x/files/
trunk/dports/graphics/scale2x/files/file.c.patch
Modified: trunk/dports/graphics/scale2x/Portfile
===================================================================
--- trunk/dports/graphics/scale2x/Portfile 2011-09-01 11:27:52 UTC (rev 83430)
+++ trunk/dports/graphics/scale2x/Portfile 2011-09-01 11:47:23 UTC (rev 83431)
@@ -1,9 +1,9 @@
# $Id$
PortSystem 1.0
+
name scale2x
-version 2.1
-revision 1
+version 2.4
categories graphics
maintainers nomaintainer
description utility to increase the size of small bitmaps
@@ -14,9 +14,12 @@
homepage http://scale2x.sourceforge.net/
platforms darwin
-master_sites sourceforge
-checksums md5 e7f93d3c1fb413e1b30667284597d696
+master_sites sourceforge:project/${name}/${name}/${version}
+checksums md5 b89ccfa6df5f059355951dbf69fc163c \
+ sha1 30bbd674dcdf134a58b34e75f87ed05bd716d484
-depends_lib port:zlib port:libpng
+depends_lib port:libpng
+patchfiles file.c.patch
+
configure.args --mandir=${prefix}/share/man
Added: trunk/dports/graphics/scale2x/files/file.c.patch
===================================================================
--- trunk/dports/graphics/scale2x/files/file.c.patch (rev 0)
+++ trunk/dports/graphics/scale2x/files/file.c.patch 2011-09-01 11:47:23 UTC (rev 83431)
@@ -0,0 +1,11 @@
+--- file.c.orig 2004-08-09 00:02:11.000000000 +1000
++++ file.c 2011-09-01 21:43:37.000000000 +1000
+@@ -145,7 +145,7 @@ int file_read(const char* file, unsigned
+
+ /* expand grey images */
+ if (pre_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
+- png_set_gray_1_2_4_to_8(png_ptr);
++ png_set_expand_gray_1_2_4_to_8(png_ptr);
+
+ /* convert RNS to ALPHA channel */
+ if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110901/9865f367/attachment-0001.html>
More information about the macports-changes
mailing list