ports/87269: [MAINTAINER] emulators/yape: update to 0.32.4
Janos Mohacsi
janos.mohacsi at niif.hu
Tue Oct 11 17:10:25 UTC 2005
>Number: 87269
>Category: ports
>Synopsis: [MAINTAINER] emulators/yape: update to 0.32.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: maintainer-update
>Submitter-Id: current-users
>Arrival-Date: Tue Oct 11 17:10:18 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Janos Mohacsi
>Release: FreeBSD 6.0-BETA3 i386
>Organization:
NIIF/HUNGARNET
>Environment:
System: FreeBSD scone.ki.iif.hu 6.0-BETA3 FreeBSD 6.0-BETA3 #5: Tue Aug 23 23:06:40 CEST 2005
>Description:
Maintainer Update to emulators/yape to version 0.32.4
Added file(s):
- files/patch-README.SDL
- files/patch-main.cpp
Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:
--- yape-0.32.4.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/emulators/yape.orig/Makefile /usr/ports/emulators/yape/Makefile
--- /usr/ports/emulators/yape.orig/Makefile Tue Mar 16 05:23:37 2004
+++ /usr/ports/emulators/yape/Makefile Tue Oct 11 18:15:07 2005
@@ -6,8 +6,7 @@
#
PORTNAME= yape
-PORTVERSION= 0.32.3
-PORTREVISION= 2
+PORTVERSION= 0.32.4
CATEGORIES= emulators
MASTER_SITES= http://yape.homeserver.hu/download/
DISTNAME= yapeSDL-${PORTVERSION}
@@ -30,7 +29,7 @@
post-install:
.ifndef(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README.Linux ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.SDL ${DOCSDIR}
.endif
.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/emulators/yape.orig/distinfo /usr/ports/emulators/yape/distinfo
--- /usr/ports/emulators/yape.orig/distinfo Wed Mar 31 05:07:44 2004
+++ /usr/ports/emulators/yape/distinfo Tue Oct 11 17:24:19 2005
@@ -1,2 +1,2 @@
-MD5 (yapeSDL-0.32.3.tar.gz) = 454c538dc29c78d3bd0c8523d04da137
-SIZE (yapeSDL-0.32.3.tar.gz) = 129145
+MD5 (yapeSDL-0.32.4.tar.gz) = b2b7a180d2c7893805f820f80f59ad30
+SIZE (yapeSDL-0.32.4.tar.gz) = 127195
diff -ruN --exclude=CVS /usr/ports/emulators/yape.orig/files/patch-README.SDL /usr/ports/emulators/yape/files/patch-README.SDL
--- /usr/ports/emulators/yape.orig/files/patch-README.SDL Thu Jan 1 01:00:00 1970
+++ /usr/ports/emulators/yape/files/patch-README.SDL Tue Oct 11 18:16:24 2005
@@ -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 -ruN --exclude=CVS /usr/ports/emulators/yape.orig/files/patch-archdep.cpp /usr/ports/emulators/yape/files/patch-archdep.cpp
--- /usr/ports/emulators/yape.orig/files/patch-archdep.cpp Tue Nov 19 15:39:00 2002
+++ /usr/ports/emulators/yape/files/patch-archdep.cpp Tue Oct 11 17:42:08 2005
@@ -1,29 +1,41 @@
---- 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" ));
- //strcpy( filter, filefilter);
-- strcat( homedir, "/yape" );
-+ strcat( homedir, "/.yape" );
- chdir ( homedir );
- dirp = opendir( homedir );
- //fprintf( stderr, "reading from %s\n", homedir);
+
+ strcpy( homedir , getenv( "HOME" ));
+ //strcpy( filter, filefilter);
+- strcat( homedir, "/yape" );
++ strcat( homedir, "/.yape" );
+ chdir ( homedir );
+ dirp = opendir( homedir );
+ //fprintf( stderr, "reading from %s\n", homedir);
@@ -136,7 +136,7 @@
- int ad_makedirs(char *path)
- {
- strcpy(temp,path);
-- strcat(temp, "/yape");
-+ strcat(temp, "/.yape");
- mkdir(temp, 0777);
-
- return 1;
+ int ad_makedirs(char *path)
+ {
+ strcpy(temp,path);
+- strcat(temp, "/yape");
++ strcat(temp, "/.yape");
+ mkdir(temp, 0777);
+
+ return 1;
@@ -146,7 +146,7 @@
- {
-
- strcpy( temp, tmpchr);
-- strcat( temp, "/yape/yape.conf");
-+ strcat( temp, "/.yape/yape.conf");
-
- return temp;
- }
+ {
+
+ strcpy( temp, tmpchr);
+- strcat( temp, "/yape/yape.conf");
++ strcat( temp, "/.yape/yape.conf");
+
+ return temp;
+ }
diff -ruN --exclude=CVS /usr/ports/emulators/yape.orig/files/patch-interface.cpp /usr/ports/emulators/yape/files/patch-interface.cpp
--- /usr/ports/emulators/yape.orig/files/patch-interface.cpp Tue Nov 19 15:39:00 2002
+++ /usr/ports/emulators/yape/files/patch-interface.cpp Tue Oct 11 17:42:48 2005
@@ -1,11 +1,14 @@
---- 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
- */
-
--#include "SDL/SDL.h"
-+#include "SDL.h"
- #include "tedmem.h"
- #include "interface.h"
- #include "archdep.h"
+ (c) 2000, 2001 Attila Grósz
+ */
+
+-#include "SDL/SDL.h"
++#include "SDL.h"
+ #include "tedmem.h"
+ #include "interface.h"
+ #include "archdep.h"
diff -ruN --exclude=CVS /usr/ports/emulators/yape.orig/files/patch-main.cpp /usr/ports/emulators/yape/files/patch-main.cpp
--- /usr/ports/emulators/yape.orig/files/patch-main.cpp Thu Jan 1 01:00:00 1970
+++ /usr/ports/emulators/yape/files/patch-main.cpp Tue Oct 11 18:13:35 2005
@@ -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 -ruN --exclude=CVS /usr/ports/emulators/yape.orig/files/patch-main.h /usr/ports/emulators/yape/files/patch-main.h
--- /usr/ports/emulators/yape.orig/files/patch-main.h Tue Nov 19 15:39:00 2002
+++ /usr/ports/emulators/yape/files/patch-main.h Tue Oct 11 17:43:46 2005
@@ -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 -ruN --exclude=CVS /usr/ports/emulators/yape.orig/files/patch-sound.h /usr/ports/emulators/yape/files/patch-sound.h
--- /usr/ports/emulators/yape.orig/files/patch-sound.h Tue Nov 19 15:39:00 2002
+++ /usr/ports/emulators/yape/files/patch-sound.h Tue Oct 11 17:44:21 2005
@@ -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
diff -ruN --exclude=CVS /usr/ports/emulators/yape.orig/pkg-plist /usr/ports/emulators/yape/pkg-plist
--- /usr/ports/emulators/yape.orig/pkg-plist Tue Nov 19 15:39:00 2002
+++ /usr/ports/emulators/yape/pkg-plist Tue Oct 11 18:19:09 2005
@@ -1,3 +1,3 @@
bin/yape
-%%PORTDOCS%%share/doc/yape/README.Linux
-%%PORTDOCS%%@dirrm share/doc/yape
+%%PORTDOCS%%%%DOCSDIR%%/README.SDL
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
--- yape-0.32.4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list