diff --git a/srcpkgs/freedroidClassic/patches/patch-SDL_rotozoom.c.diff b/srcpkgs/freedroidClassic/patches/patch-SDL_rotozoom.c.diff new file mode 100644 index 00000000000..10f176536d5 --- /dev/null +++ b/srcpkgs/freedroidClassic/patches/patch-SDL_rotozoom.c.diff @@ -0,0 +1,36 @@ +--- src/SDL_rotozoom.c.orig 2003-08-07 19:01:16.000000000 +0200 ++++ src/SDL_rotozoom.c 2018-01-17 21:30:09.576536782 +0100 +@@ -11,6 +11,7 @@ + #endif + + #include "SDL_rotozoom.h" ++#include "proto.h" + + #define MAX(a,b) (((a) > (b)) ? (a) : (b)) + +@@ -49,10 +50,10 @@ + /* + * Allocate memory for row increments + */ +- if ((sax = (int *) MyMalloc((dst->w + 1) * sizeof(Uint32))) == NULL) { ++ if ((sax = (int *)(intptr_t) MyMalloc((dst->w + 1) * sizeof(Uint32))) == (void*)0) { + return (-1); + } +- if ((say = (int *) MyMalloc((dst->h + 1) * sizeof(Uint32))) == NULL) { ++ if ((say = (int *)(intptr_t) MyMalloc((dst->h + 1) * sizeof(Uint32))) == NULL) { + free(sax); + return (-1); + } +@@ -224,10 +225,10 @@ + /* + * Allocate memory for row increments + */ +- if ((sax = (Uint32 *) MyMalloc(dst->w * sizeof(Uint32))) == NULL) { ++ if ((sax = (Uint32 *)(uintptr_t) MyMalloc(dst->w * sizeof(Uint32))) == NULL) { + return (-1); + } +- if ((say = (Uint32 *) MyMalloc(dst->h * sizeof(Uint32))) == NULL) { ++ if ((say = (Uint32 *)(uintptr_t) MyMalloc(dst->h * sizeof(Uint32))) == NULL) { + if (sax != NULL) { + free(sax); + } diff --git a/srcpkgs/freedroidClassic/patches/patch-configure.ac.diff b/srcpkgs/freedroidClassic/patches/patch-configure.ac.diff new file mode 100644 index 00000000000..80045c5ec7f --- /dev/null +++ b/srcpkgs/freedroidClassic/patches/patch-configure.ac.diff @@ -0,0 +1,11 @@ +--- configure.ac.orig 2003-08-09 19:04:33.000000000 +0200 ++++ configure.ac 2018-01-17 20:56:10.468995248 +0100 +@@ -82,7 +82,7 @@ + --> compiling without sound support + --------------------------------------------------])) + +-AC_CHECK_LIB([vorbis], [ov_open],, AC_MSG_WARN([ ++AC_CHECK_LIB([vorbis], [vorbis_analysis_init],, AC_MSG_WARN([ + -------------------------------------------------- + libvorbis not found! + You need the Vorbis libs installed if you want diff --git a/srcpkgs/freedroidClassic/template b/srcpkgs/freedroidClassic/template new file mode 100644 index 00000000000..d36ffa94f89 --- /dev/null +++ b/srcpkgs/freedroidClassic/template @@ -0,0 +1,19 @@ +# Template file for 'freedroidClassic' +pkgname=freedroidClassic +version=1.0.2 +revision=1 +wrksrc=freedroid-${version} +build_style=gnu-configure +nopie=yes +hostmakedepends="automake" +makedepends="SDL_image-devel SDL_mixer-devel libjpeg-turbo-devel zlib-devel libpng-devel libvorbis-devel" +short_desc="A free Paradroid clone" +maintainer="Oliver Nacke " +license="GPL-2" +homepage="http://freedroid.org" +distfiles="http://sourceforge.net/projects/freedroid/files/${pkgname}/FreedroidClassic-${version}/freedroid-${version}.tar.gz" +checksum=0934bd29fb2ad0367ea3bdfdce47537179f9af6aa960cbcc897c40da2e1a0ee3 + +pre_configure() { + autoreconf -fi +}