[arch-commits] Commit in xmoto/trunk (PKGBUILD libpng-1.4.patch)

Eric Bélanger eric at archlinux.org
Fri Jan 22 03:19:27 EST 2010


    Date: Friday, January 22, 2010 @ 03:19:26
  Author: eric
Revision: 64796

upgpkg: xmoto 0.5.2-3
    Rebuilt for libpng 1.4 and libjpeg 8

Added:
  xmoto/trunk/libpng-1.4.patch
Modified:
  xmoto/trunk/PKGBUILD

------------------+
 PKGBUILD         |    8 +++++---
 libpng-1.4.patch |   12 ++++++++++++
 2 files changed, 17 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-01-22 07:59:45 UTC (rev 64795)
+++ PKGBUILD	2010-01-22 08:19:26 UTC (rev 64796)
@@ -5,7 +5,7 @@
 
 pkgname=xmoto
 pkgver=0.5.2
-pkgrel=2
+pkgrel=3
 pkgdesc="A challenging 2D motocross platform game, where physics play an important role."
 arch=('i686' 'x86_64')
 url="http://xmoto.tuxfamily.org"
@@ -13,14 +13,16 @@
 depends=('bzip2' 'libjpeg' 'libpng' 'lua' 'sdl_mixer' 'ode=0.11.1' 'curl>=7.16.2' 
 	 'mesa' 'sqlite3' 'sdl_ttf' 'desktop-file-utils' 'sdl_net')
 install=xmoto.install
-source=(http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz)
-md5sums=('1e3678ebceca21d61844efb53c140227')
+source=(http://download.tuxfamily.org/${pkgname}/${pkgname}/${pkgver}/${pkgname}-${pkgver}-src.tar.gz libpng-1.4.patch)
+md5sums=('1e3678ebceca21d61844efb53c140227' 'ddf2e68295a00b69fb733f8b8a305db9')
+sha1sums=('aa819872f06beb114025c490cea8e229cd85135d' '44f6b18a8d03054fd8975b82373f422d72f51347')
 
 build() {
   cd ${srcdir}/${pkgname}-${pkgver}
 
   # upstream fix compilation issue
   sed -i 's|v_replay << m_Chunks.size();|v_replay << (unsigned int) m_Chunks.size();|' src/Replay.cpp || return 1
+  patch -p1 < ../libpng-1.4.patch || return 1
 
   # build and install 
   ./configure LDFLAGS="-L/usr/lib" --prefix=/usr --disable-sdltest

Added: libpng-1.4.patch
===================================================================
--- libpng-1.4.patch	                        (rev 0)
+++ libpng-1.4.patch	2010-01-22 08:19:26 UTC (rev 64796)
@@ -0,0 +1,12 @@
+diff -Naur xmoto-0.5.2-orig/src/image/tim_png.cpp xmoto-0.5.2/src/image/tim_png.cpp
+--- xmoto-0.5.2-orig/src/image/tim_png.cpp	2010-01-22 02:50:26.000000000 -0500
++++ xmoto-0.5.2/src/image/tim_png.cpp	2010-01-22 02:52:04.000000000 -0500
+@@ -166,7 +166,7 @@
+ 			png_set_palette_to_rgb(PngPtr);
+ 			
+ 		if(nColorType==PNG_COLOR_TYPE_GRAY && nBitDepth<8)
+-			png_set_gray_1_2_4_to_8(PngPtr);
++			png_set_expand_gray_1_2_4_to_8(PngPtr);
+ 
+ 		if(png_get_valid(PngPtr,InfoPtr,PNG_INFO_tRNS))
+ 			png_set_tRNS_to_alpha(PngPtr);



More information about the arch-commits mailing list