Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=imgrebuild.git;a=commitdiff;h=baa76289cf93043b156c7a125bfb292860f4611f

commit baa76289cf93043b156c7a125bfb292860f4611f
Author: James Buren <r...@frugalware.org>
Date:   Sat May 15 01:45:55 2010 -0500

extreme-tuxracer-0.4-3-i686
* add patch for libpng 1.4

diff --git a/source/games-extra/extreme-tuxracer/FrugalBuild 
b/source/games-extra/extreme-tuxracer/FrugalBuild
index 6fb5877..7f0ddc0 100644
--- a/source/games-extra/extreme-tuxracer/FrugalBuild
+++ b/source/games-extra/extreme-tuxracer/FrugalBuild
@@ -14,10 +14,11 @@ depends=('sdl_mixer' 'mesa' 'tcl>=8.5' 'libpng>=1.4.1' 
'freetype2')
options=('force')
groups=('games-extra')
archs=('i686' 'x86_64')
-source=($source etracer.png)
+source=($source etracer.png $pkgname-$pkgver-png-1.4.patch)
_F_cd_path="$_F_sourceforge_dirname-$pkgver"
sha1sums=('db5e55b5780dc2578d8c80d0ce48354b99bb53cf' \
-          'b8a0fc353dbfcb32aa05f6a57893a2636d34fa84')
+          'b8a0fc353dbfcb32aa05f6a57893a2636d34fa84' \
+          'ad7bdfd9eb337891204d13e46cf039c9c8bd2fa2')

replaces=('ppracer')
conflicts=('ppracer')
diff --git 
a/source/games-extra/extreme-tuxracer/extreme-tuxracer-0.4-png-1.4.patch 
b/source/games-extra/extreme-tuxracer/extreme-tuxracer-0.4-png-1.4.patch
new file mode 100644
index 0000000..93c4571
--- /dev/null
+++ b/source/games-extra/extreme-tuxracer/extreme-tuxracer-0.4-png-1.4.patch
@@ -0,0 +1,39 @@
+diff -aur extremetuxracer-0.4/src/ppgltk/images/png_reader.cpp 
extremetuxracer-0.4-2/src/ppgltk/images/png_reader.cpp
+--- extremetuxracer-0.4/src/ppgltk/images/png_reader.cpp       2007-09-01 
11:38:12.000000000 -0500
++++ extremetuxracer-0.4-2/src/ppgltk/images/png_reader.cpp     2010-05-15 
01:44:34.000000000 -0500
+@@ -77,7 +77,7 @@
+
+
+       png_get_IHDR(png_ptr, info_ptr, &width, &height,
+-       &bit_depth, &color_type, &interlace_type,int_p_NULL, int_p_NULL);
++       &bit_depth, &color_type, &interlace_type,NULL, NULL);
+
+       if(bit_depth == 16)
+         png_set_strip_16(png_ptr);
+@@ -88,7 +88,7 @@
+               png_set_expand(png_ptr);
+               png_read_update_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);
++                         &bit_depth, &color_type, &interlace_type,NULL, NULL);
+       }
+
+       if( color_type == PNG_COLOR_TYPE_GRAY ||
+@@ -96,7 +96,7 @@
+               png_set_gray_to_rgb(png_ptr);
+               png_read_update_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);
++                         &bit_depth, &color_type, &interlace_type,NULL, NULL);
+       }
+
+       this->width=width;
+@@ -114,7 +114,7 @@
+       }
+
+       png_read_end(png_ptr, info_ptr);
+-      png_destroy_read_struct(&png_ptr, &info_ptr, png_infopp_NULL);
++      png_destroy_read_struct(&png_ptr, &info_ptr, NULL);
+       fclose(fp);
+ }
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to