From 570d74a3f97bcd08feff4ff51dc33b1d111c0851 Mon Sep 17 00:00:00 2001 From: amdmi3 Date: Wed, 3 Feb 2010 00:45:11 +0000 Subject: - Fix on 64bit platforms --- games/reminiscence/Makefile | 10 ++-------- games/reminiscence/files/patch-sys.h | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 games/reminiscence/files/patch-sys.h (limited to 'games') diff --git a/games/reminiscence/Makefile b/games/reminiscence/Makefile index 010d3321d9b5..c1165062494f 100644 --- a/games/reminiscence/Makefile +++ b/games/reminiscence/Makefile @@ -7,7 +7,7 @@ PORTNAME= REminiscence PORTVERSION= 0.1.9 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= games MASTER_SITES= http://cyxdown.free.fr/reminiscence/ \ http://mirror.amdmi3.ru/distfiles/ @@ -45,10 +45,4 @@ post-install: .endif @${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD} -.include - -.if ${ARCH} != i386 -IGNORE= Doesn't work on !i386 (ERROR: Bad CRC for bank data 38!) -.endif - -.include +.include diff --git a/games/reminiscence/files/patch-sys.h b/games/reminiscence/files/patch-sys.h new file mode 100644 index 000000000000..d013c65590bf --- /dev/null +++ b/games/reminiscence/files/patch-sys.h @@ -0,0 +1,23 @@ +--- sys.h.orig 2007-03-17 00:45:52.000000000 +0300 ++++ sys.h 2010-02-02 20:23:49.000000000 +0300 +@@ -19,12 +19,14 @@ + #ifndef __SYS_H__ + #define __SYS_H__ + +-typedef unsigned char uint8; +-typedef signed char int8; +-typedef unsigned short uint16; +-typedef signed short int16; +-typedef unsigned long uint32; +-typedef signed long int32; ++#include ++ ++typedef uint8_t uint8; ++typedef int8_t int8; ++typedef uint16_t uint16; ++typedef int16_t int16; ++typedef uint32_t uint32; ++typedef int32_t int32; + + inline uint16 READ_BE_UINT16(const void *ptr) { + const uint8 *b = (const uint8 *)ptr; -- cgit