diff options
author | mnag <mnag@FreeBSD.org> | 2005-10-13 22:44:05 +0800 |
---|---|---|
committer | mnag <mnag@FreeBSD.org> | 2005-10-13 22:44:05 +0800 |
commit | bdf889fc45fc98b31ff36d82acfab756b15e14dd (patch) | |
tree | 9d0910256438126908ff1a2c8b45ce223afe3877 /emulators/yape/files | |
parent | 74b311f4648c844164ce5ef8de9e9f46a952ac4c (diff) | |
download | freebsd-ports-graphics-bdf889fc45fc98b31ff36d82acfab756b15e14dd.tar.gz freebsd-ports-graphics-bdf889fc45fc98b31ff36d82acfab756b15e14dd.tar.zst freebsd-ports-graphics-bdf889fc45fc98b31ff36d82acfab756b15e14dd.zip |
Update to 0.32.4 [1]
Mark IGNORE when system < 5.3 (don't have fmin(3) and fmax(3) functions)
PR: 87269 [1]
Submitted by: Janos Mohacsi <janos.mohacsi@niif.hu> (maintainer)
Diffstat (limited to 'emulators/yape/files')
-rw-r--r-- | emulators/yape/files/patch-Makefile | 16 | ||||
-rw-r--r-- | emulators/yape/files/patch-README.SDL | 14 | ||||
-rw-r--r-- | emulators/yape/files/patch-archdep.cpp | 16 | ||||
-rw-r--r-- | emulators/yape/files/patch-interface.cpp | 7 | ||||
-rw-r--r-- | emulators/yape/files/patch-main.cpp | 28 | ||||
-rw-r--r-- | emulators/yape/files/patch-main.h | 7 | ||||
-rw-r--r-- | emulators/yape/files/patch-sound.h | 7 |
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 00000000000..8824aa979bc --- /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 00000000000..17b5b49ed87 --- /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 dd22b3ad3a9..739221b2fc8 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 3e2e1501dae..5178295f3ee 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 00000000000..3c087e3b71b --- /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 f75fcff2aae..9b375a3fb67 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 1b33377f7f4..136b745ece5 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 |