parent
b9fa73c5b4
commit
2b374f9b83
3 changed files with 66 additions and 0 deletions
36
srcpkgs/freedroidClassic/patches/patch-SDL_rotozoom.c.diff
Normal file
36
srcpkgs/freedroidClassic/patches/patch-SDL_rotozoom.c.diff
Normal file
|
@ -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);
|
||||
}
|
11
srcpkgs/freedroidClassic/patches/patch-configure.ac.diff
Normal file
11
srcpkgs/freedroidClassic/patches/patch-configure.ac.diff
Normal file
|
@ -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
|
19
srcpkgs/freedroidClassic/template
Normal file
19
srcpkgs/freedroidClassic/template
Normal file
|
@ -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 <git@fractal.bz>"
|
||||
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
|
||||
}
|
Loading…
Reference in a new issue