Added Extreme Tux Racer, based on Arch Linux PKGBUILD, and by request of...

Added Extreme Tux Racer, based on Arch Linux PKGBUILD, and by request of 'rajitsingh' through Identi.ca.
parent 3911b226
#
# Games Packages for Chakra, part of chakra-project.org
#
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
pkgname=extremetuxracer
pkgver=0.4
pkgrel=1
pkgdesc="Downhill racing game starring Tux."
arch=('i686' 'x86_64')
url="http://www.extremetuxracer.com"
license=('GPL')
depends=('sdl_mixer' 'tcl>=8.5.0' 'mesa' 'libpng>=1.4.0' 'freetype2' 'libxi' 'libxmu')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
libpng14.patch)
md5sums=('6830eb4e1ca7c5a541f286ded3853f9f'
'0c16eb309df6413397cd886f63361fcc')
build() {
cd $srcdir/$pkgname-$pkgver
patch -Np1 -i $srcdir/libpng14.patch
sed -i -e 's/libpng12/libpng14/g' configure
./configure \
--prefix=/usr
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}
diff -Nur extremetuxracer-0.4.orig/src/ppgltk/images/png_reader.cpp extremetuxracer-0.4/src/ppgltk/images/png_reader.cpp
--- extremetuxracer-0.4.orig/src/ppgltk/images/png_reader.cpp 2007-09-01 19:38:12.000000000 +0300
+++ extremetuxracer-0.4/src/ppgltk/images/png_reader.cpp 2010-01-25 03:47:21.000000000 +0200
@@ -53,7 +53,7 @@
if (!info_ptr)
{
png_destroy_read_struct(&png_ptr,
- (png_infopp)NULL, (png_infopp)NULL);
+ NULL, NULL);
fclose(fp);
return;
}
@@ -62,7 +62,7 @@
if (!end_info)
{
png_destroy_read_struct(&png_ptr, &info_ptr,
- (png_infopp)NULL);
+ NULL);
fclose(fp);
return;
}
@@ -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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment