aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/etracer/APKBUILD42
-rw-r--r--testing/etracer/etracer-finite.patch11
-rw-r--r--testing/etracer/etracer-png.patch38
3 files changed, 91 insertions, 0 deletions
diff --git a/testing/etracer/APKBUILD b/testing/etracer/APKBUILD
new file mode 100644
index 0000000000..842cb113f3
--- /dev/null
+++ b/testing/etracer/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer: William Pitcock <nenolod@dereferenced.org>
+pkgname=etracer
+pkgver=0.4
+pkgrel=0
+pkgdesc="racing game where you race tux down a mountain"
+url="http://extremetuxracer.com/"
+arch="all"
+license="GPL"
+depends=
+makedepends="sdl-dev mesa-dev sdl_mixer-dev tcl-dev freetype-dev"
+install=""
+source="http://downloads.sourceforge.net/extremetuxracer/extremetuxracer-${pkgver}.tar.gz
+ etracer-finite.patch
+ etracer-png.patch"
+
+_builddir="${srcdir}/extremetuxracer-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="6830eb4e1ca7c5a541f286ded3853f9f extremetuxracer-0.4.tar.gz
+c915c433dee3d3ef8d4884560b55210b etracer-finite.patch
+c476c21cc82dcf67337d982f2ec3d64b etracer-png.patch"
diff --git a/testing/etracer/etracer-finite.patch b/testing/etracer/etracer-finite.patch
new file mode 100644
index 0000000000..ecfca4f260
--- /dev/null
+++ b/testing/etracer/etracer-finite.patch
@@ -0,0 +1,11 @@
+--- extremetuxracer-0.4.orig/src/etracer.h
++++ extremetuxracer-0.4/src/etracer.h
+@@ -142,7 +142,7 @@
+ #elif defined( HAVE__ISNAN )
+ # define FINITE(x) (!_isnan(x))
+ #else
+-# error "You don't have finite(), _finite(), isnan(), or _isnan() on your system!"
++# define FINITE(x) (isfinite(x))
+ #endif
+
+
diff --git a/testing/etracer/etracer-png.patch b/testing/etracer/etracer-png.patch
new file mode 100644
index 0000000000..4a3469cd1f
--- /dev/null
+++ b/testing/etracer/etracer-png.patch
@@ -0,0 +1,38 @@
+--- extremetuxracer-0.4.orig/src/ppgltk/images/png_reader.cpp
++++ extremetuxracer-0.4/src/ppgltk/images/png_reader.cpp
+@@ -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, (int *) NULL, (int *) 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, (int *) NULL, (int *) 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, (int *) NULL, (int *) 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);
+ }
+