aboutsummaryrefslogtreecommitdiff
path: root/emulators/yape/files
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2005-10-13 14:44:05 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2005-10-13 14:44:05 +0000
commitc9d9748b760882612e4184b5376f3d2093fc42d6 (patch)
tree3d42ef961824f11d1f89f0f5b130b7366379d97d /emulators/yape/files
parent365f0cee10777de35482a84e563726b7c6727a50 (diff)
Notes
Diffstat (limited to 'emulators/yape/files')
-rw-r--r--emulators/yape/files/patch-Makefile16
-rw-r--r--emulators/yape/files/patch-README.SDL14
-rw-r--r--emulators/yape/files/patch-archdep.cpp16
-rw-r--r--emulators/yape/files/patch-interface.cpp7
-rw-r--r--emulators/yape/files/patch-main.cpp28
-rw-r--r--emulators/yape/files/patch-main.h7
-rw-r--r--emulators/yape/files/patch-sound.h7
7 files changed, 87 insertions, 8 deletions
diff --git a/emulators/yape/files/patch-Makefile b/emulators/yape/files/patch-Makefile
new file mode 100644
index 000000000000..8824aa979bc5
--- /dev/null
+++ b/emulators/yape/files/patch-Makefile
@@ -0,0 +1,16 @@
+
+$FreeBSD$
+
+--- Makefile.orig Thu Oct 13 00:09:50 2005
++++ Makefile Thu Oct 13 00:10:03 2005
+@@ -12,8 +12,8 @@
+
+ headers = $(objects:.o=.h)
+
+-CC = g++
+-cflags = -O3 -finline -frerun-loop-opt -Winline `sdl-config --cflags`
++CC = $(CXX)
++cflags = $(CFLAGS) -finline -frerun-loop-opt -Winline `sdl-config --cflags`
+ libs = `sdl-config --libs`
+
+ #SDL_CFLAGS := $(shell sdl-config --cflags)
diff --git a/emulators/yape/files/patch-README.SDL b/emulators/yape/files/patch-README.SDL
new file mode 100644
index 000000000000..17b5b49ed87f
--- /dev/null
+++ b/emulators/yape/files/patch-README.SDL
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- README.SDL.orig
++++ README.SDL
+@@ -78,7 +78,7 @@
+ LALT + W : toggle between unlimited speed and 50 Hz frame rate (original speed)
+
+ Internal disk LOAD/SAVE operations are supported to the current
+- file system directory, which is usually '/home/<username>/yape'.
++ file system directory, which is usually '/home/<username>/.yape'.
+ Any PRG files you may wish to load, should go there.
+
+ This means that an exact filename match will load
diff --git a/emulators/yape/files/patch-archdep.cpp b/emulators/yape/files/patch-archdep.cpp
index dd22b3ad3a9a..739221b2fc8e 100644
--- a/emulators/yape/files/patch-archdep.cpp
+++ b/emulators/yape/files/patch-archdep.cpp
@@ -1,5 +1,17 @@
---- archdep.cpp.orig Thu Oct 31 23:47:54 2002
-+++ archdep.cpp Thu Oct 31 23:48:53 2002
+
+$FreeBSD$
+
+--- archdep.cpp.orig
++++ archdep.cpp
+@@ -49,7 +49,7 @@
+ int ad_makedirs(char *path)
+ {
+ strcpy(temp,path);
+- strcat(temp, "/yape");
++ strcat(temp, "/.yape");
+ CreateDirectory(temp, NULL);
+
+ return 1;
@@ -108,7 +108,7 @@
strcpy( homedir , getenv( "HOME" ));
diff --git a/emulators/yape/files/patch-interface.cpp b/emulators/yape/files/patch-interface.cpp
index 3e2e1501dae7..5178295f3ee7 100644
--- a/emulators/yape/files/patch-interface.cpp
+++ b/emulators/yape/files/patch-interface.cpp
@@ -1,5 +1,8 @@
---- interface.cpp.orig Thu Oct 31 23:43:08 2002
-+++ interface.cpp Thu Oct 31 23:43:35 2002
+
+$FreeBSD$
+
+--- interface.cpp.orig
++++ interface.cpp
@@ -10,7 +10,7 @@
(c) 2000, 2001 Attila Grósz
*/
diff --git a/emulators/yape/files/patch-main.cpp b/emulators/yape/files/patch-main.cpp
new file mode 100644
index 000000000000..3c087e3b71b2
--- /dev/null
+++ b/emulators/yape/files/patch-main.cpp
@@ -0,0 +1,28 @@
+
+$FreeBSD$
+
+--- main.cpp.orig
++++ main.cpp
+@@ -12,6 +12,7 @@
+
+ #include "main.h"
+ #include "interface.h"
++#include <math.h>
+
+
+ // SDL stuff
+@@ -210,11 +211,11 @@
+ Yc = (luma[j+1] - 2.0)* 255.0 / (5.0 - 2.0); // 5V is the base voltage
+ // RED, GREEN and BLUE component
+ colorindex = (j)*16*3 + i*3;
+- col = (Uint8) max(min((Yc + 1.367 * Vc),255.0),0);
++ col = (Uint8) fmax(fmin((Yc + 1.367 * Vc),255.0),0);
+ p4col_calc[ colorindex ] = p4col_calc[ 384 + colorindex ] = col;
+- col = (Uint8) max(min((Yc - 0.336 * Uc - 0.698 * Vc ),255.0),0);
++ col = (Uint8) fmax(fmin((Yc - 0.336 * Uc - 0.698 * Vc ),255.0),0);
+ p4col_calc[ colorindex + 1] = p4col_calc[ 384 + colorindex + 1] = col;
+- col = (Uint8) max(min((Yc + 1.732 * Uc),255.0),0);
++ col = (Uint8) fmax(fmin((Yc + 1.732 * Uc),255.0),0);
+ p4col_calc[ colorindex + 2] = p4col_calc[ 384 + colorindex + 2] = col;
+ }
+
diff --git a/emulators/yape/files/patch-main.h b/emulators/yape/files/patch-main.h
index f75fcff2aaef..9b375a3fb67f 100644
--- a/emulators/yape/files/patch-main.h
+++ b/emulators/yape/files/patch-main.h
@@ -1,5 +1,8 @@
---- main.h.orig Thu Oct 31 23:44:51 2002
-+++ main.h Thu Oct 31 23:45:12 2002
+
+$FreeBSD$
+
+--- main.h.orig
++++ main.h
@@ -17,7 +17,7 @@
#include <string.h>
#include <ctype.h>
diff --git a/emulators/yape/files/patch-sound.h b/emulators/yape/files/patch-sound.h
index 1b33377f7f49..136b745ece51 100644
--- a/emulators/yape/files/patch-sound.h
+++ b/emulators/yape/files/patch-sound.h
@@ -1,5 +1,8 @@
---- sound.h.orig Thu Oct 31 23:44:15 2002
-+++ sound.h Thu Oct 31 23:44:25 2002
+
+$FreeBSD$
+
+--- sound.h.orig
++++ sound.h
@@ -1,7 +1,7 @@
#ifndef _SOUND_H
#define _SOUND_H