summaryrefslogtreecommitdiff
path: root/games/xrick/patches/patch-aa
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2003-01-06 19:48:08 +0000
committerwiz <wiz@pkgsrc.org>2003-01-06 19:48:08 +0000
commitb33629298c72e0b518075209af4597fc12a8ee6a (patch)
tree27791f577c4bd3173fbac3575ceb9a66d5c868d4 /games/xrick/patches/patch-aa
parent1c53e56262fb678e1c7ace749b10f50f7f708d47 (diff)
downloadpkgsrc-b33629298c72e0b518075209af4597fc12a8ee6a.tar.gz
Update to 021212.
The data file needed for sound is installed into ${PREFIX}/share/xrick/data.zip. Either copy it to your current dir, or start xrick with xrick -data ${PREFIX}/share/xrick/data.zip Changes: * Reworked the build system so xrick can easily be built on Unix boxes as well as on non-Unix boxes (do not rely on symbolic links, etc.). * Use function keys instead of numeric keys for various game controls, as some non-US keyboard require that SHIFT is pressed for numbers (A. Majorel). * Fixed a potential buffer overflow in command-line parameters handling (A. Majorel). * Joystick is (hopefully) OK now (S. Chauveau). * Implemented all sounds: music, effects, etc. * The sound was horrible on Windows due to a poorly dimensionned sound buffer. Fixed. * Re-ripped all sounds. This time I used STeem with debugger to save each sound as a WAV file, then Audacity to filter an annoying static noise produced by STeem, then SOX to re-sample.
Diffstat (limited to 'games/xrick/patches/patch-aa')
-rw-r--r--games/xrick/patches/patch-aa53
1 files changed, 13 insertions, 40 deletions
diff --git a/games/xrick/patches/patch-aa b/games/xrick/patches/patch-aa
index 3fe7d9bc225..6bb855df5b0 100644
--- a/games/xrick/patches/patch-aa
+++ b/games/xrick/patches/patch-aa
@@ -1,42 +1,15 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/05/12 00:02:16 wiz Exp $
+$NetBSD: patch-aa,v 1.2 2003/01/06 19:48:09 wiz Exp $
---- config.orig Mon Aug 6 21:06:13 2001
-+++ config
-@@ -57,20 +57,23 @@
- LDFLAGS="$LDFLAGS `sdl-config --libs`"
- fi
+--- include/unzip.h.orig Tue Dec 24 14:32:56 2002
++++ include/unzip.h
+@@ -49,6 +49,10 @@ extern "C" {
+ #include "zlib.h"
+ #endif
--POSDOT=`expr index $SDLVER '.'`
--POSDOTp=`expr $POSDOT - 1`
--POSDOTn=`expr $POSDOT + 1`
--SDL_MAJ=`expr substr $SDLVER 1 $POSDOTp`
--LEN=`expr length $SDLVER`
--LEN=`expr $LEN - $POSDOT`
--SDLVER=`expr substr $SDLVER $POSDOTn $LEN`
--POSDOT=`expr index $SDLVER '.'`
--POSDOTp=`expr $POSDOT - 1`
--POSDOTn=`expr $POSDOT + 1`
--SDL_MIN=`expr substr $SDLVER 1 $POSDOTp`
--LEN=`expr length $SDLVER`
--LEN=`expr $LEN - $POSDOT`
--SDL_MIC=`expr substr $SDLVER $POSDOTn $LEN`
-+#POSDOT=`expr index $SDLVER '.'`
-+#POSDOTp=`expr $POSDOT - 1`
-+#POSDOTn=`expr $POSDOT + 1`
-+#SDL_MAJ=`expr substr $SDLVER 1 $POSDOTp`
-+SDL_MAJ=`echo $SDLVER | sed -e 's/\([0-9]*\).*/\1/'`
-+#LEN=`expr length $SDLVER`
-+#LEN=`expr $LEN - $POSDOT`
-+#SDLVER=`expr substr $SDLVER $POSDOTn $LEN`
-+#POSDOT=`expr index $SDLVER '.'`
-+#POSDOTp=`expr $POSDOT - 1`
-+#POSDOTn=`expr $POSDOT + 1`
-+#SDL_MIN=`expr substr $SDLVER 1 $POSDOTp`
-+SDL_MIN=`echo $SDLVER | sed -e 's/[0-9]\.\([0-9]*\).*/\1/'`
-+#LEN=`expr length $SDLVER`
-+#LEN=`expr $LEN - $POSDOT`
-+#SDL_MIC=`expr substr $SDLVER $POSDOTn $LEN`
-+SDL_MIC=`echo $SDLVER | sed -e 's/[0-9]\.[0-9]\.\([0-9]*\).*/\1/'`
-
- case "$TARGET" in
- cygwin* | CYGWIN*)
++#ifndef OF
++#define OF(a) a
++#endif
++
+ #if defined(STRICTUNZIP) || defined(STRICTZIPUNZIP)
+ /* like the STRICT of WIN32, we define a pointer that cannot be converted
+ from (void*) without cast */