View | Details | Raw Unified | Return to bug 87269
Collapse All | Expand All

(-)/usr/ports/emulators/yape/Makefile (-3 / +2 lines)
Lines 6-13 Link Here
6
#
6
#
7
7
8
PORTNAME=	yape
8
PORTNAME=	yape
9
PORTVERSION=	0.32.3
9
PORTVERSION=	0.32.4
10
PORTREVISION=	2
11
CATEGORIES=	emulators
10
CATEGORIES=	emulators
12
MASTER_SITES=	http://yape.homeserver.hu/download/
11
MASTER_SITES=	http://yape.homeserver.hu/download/
13
DISTNAME=	yapeSDL-${PORTVERSION}
12
DISTNAME=	yapeSDL-${PORTVERSION}
Lines 30-36 Link Here
30
post-install:
29
post-install:
31
.ifndef(NOPORTDOCS)
30
.ifndef(NOPORTDOCS)
32
	@${MKDIR} ${DOCSDIR}
31
	@${MKDIR} ${DOCSDIR}
33
	${INSTALL_DATA} ${WRKSRC}/README.Linux ${DOCSDIR}
32
	${INSTALL_DATA} ${WRKSRC}/README.SDL ${DOCSDIR}
34
.endif
33
.endif
35
34
36
.include <bsd.port.mk>
35
.include <bsd.port.mk>
(-)/usr/ports/emulators/yape/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (yapeSDL-0.32.3.tar.gz) = 454c538dc29c78d3bd0c8523d04da137
1
MD5 (yapeSDL-0.32.4.tar.gz) = b2b7a180d2c7893805f820f80f59ad30
2
SIZE (yapeSDL-0.32.3.tar.gz) = 129145
2
SIZE (yapeSDL-0.32.4.tar.gz) = 127195
(-)/usr/ports/emulators/yape/files/patch-README.SDL (+14 lines)
Line 0 Link Here
1
2
$FreeBSD$
3
4
--- README.SDL.orig
5
+++ README.SDL
6
@@ -78,7 +78,7 @@
7
   LALT + W	: toggle between unlimited speed and 50 Hz frame rate (original speed)
8
   
9
   Internal disk LOAD/SAVE operations are supported to the current
10
-  file system directory, which is usually '/home/<username>/yape'.
11
+  file system directory, which is usually '/home/<username>/.yape'.
12
   Any PRG files you may wish to load, should go there.
13
    
14
   This means that an exact filename match will load
(-)/usr/ports/emulators/yape/files/patch-archdep.cpp (-26 / +38 lines)
Lines 1-29 Link Here
1
--- archdep.cpp.orig	Thu Oct 31 23:47:54 2002
1
2
+++ archdep.cpp	Thu Oct 31 23:48:53 2002
2
$FreeBSD$
3
4
--- archdep.cpp.orig
5
+++ archdep.cpp
6
@@ -49,7 +49,7 @@
7
 int ad_makedirs(char *path)
8
 {
9
   strcpy(temp,path);
10
-  strcat(temp, "/yape");
11
+  strcat(temp, "/.yape");
12
   CreateDirectory(temp, NULL);
13
 
14
   return 1;
3
@@ -108,7 +108,7 @@
15
@@ -108,7 +108,7 @@
4
 
16
 
5
   strcpy( homedir , getenv( "HOME" ));
17
   strcpy( homedir , getenv( "HOME" ));
6
   //strcpy( filter, filefilter);
18
   //strcpy( filter, filefilter);
7
-  strcat( homedir, "/yape" );
19
-  strcat( homedir, "/yape" );
8
+  strcat( homedir, "/.yape" );
20
+  strcat( homedir, "/.yape" );
9
   chdir ( homedir );
21
   chdir ( homedir );
10
   dirp = opendir( homedir );
22
   dirp = opendir( homedir );
11
   //fprintf( stderr, "reading from %s\n", homedir);
23
   //fprintf( stderr, "reading from %s\n", homedir);
12
@@ -136,7 +136,7 @@
24
@@ -136,7 +136,7 @@
13
 int ad_makedirs(char *path)
25
 int ad_makedirs(char *path)
14
 {
26
 {
15
   strcpy(temp,path);
27
   strcpy(temp,path);
16
-  strcat(temp, "/yape");
28
-  strcat(temp, "/yape");
17
+  strcat(temp, "/.yape");
29
+  strcat(temp, "/.yape");
18
   mkdir(temp, 0777);
30
   mkdir(temp, 0777);
19
 
31
 
20
   return 1;
32
   return 1;
21
@@ -146,7 +146,7 @@
33
@@ -146,7 +146,7 @@
22
 {
34
 {
23
 
35
 
24
 	strcpy( temp, tmpchr);
36
 	strcpy( temp, tmpchr);
25
-	strcat( temp, "/yape/yape.conf");
37
-	strcat( temp, "/yape/yape.conf");
26
+	strcat( temp, "/.yape/yape.conf");
38
+	strcat( temp, "/.yape/yape.conf");
27
 
39
 
28
 	return temp;
40
 	return temp;
29
 }
41
 }
(-)/usr/ports/emulators/yape/files/patch-interface.cpp (-10 / +13 lines)
Lines 1-11 Link Here
1
--- interface.cpp.orig	Thu Oct 31 23:43:08 2002
1
2
+++ interface.cpp	Thu Oct 31 23:43:35 2002
2
$FreeBSD$
3
4
--- interface.cpp.orig
5
+++ interface.cpp
3
@@ -10,7 +10,7 @@
6
@@ -10,7 +10,7 @@
4
 	(c) 2000, 2001 Attila Grósz
7
 	(c) 2000, 2001 Attila Grósz
5
 */
8
 */
6
 
9
 
7
-#include "SDL/SDL.h"
10
-#include "SDL/SDL.h"
8
+#include "SDL.h"
11
+#include "SDL.h"
9
 #include "tedmem.h"
12
 #include "tedmem.h"
10
 #include "interface.h"
13
 #include "interface.h"
11
 #include "archdep.h"
14
 #include "archdep.h"
(-)/usr/ports/emulators/yape/files/patch-main.cpp (+28 lines)
Line 0 Link Here
1
2
$FreeBSD$
3
4
--- main.cpp.orig
5
+++ main.cpp
6
@@ -12,6 +12,7 @@
7
 
8
 #include "main.h"
9
 #include "interface.h"
10
+#include <math.h>
11
 
12
 
13
 // SDL stuff
14
@@ -210,11 +211,11 @@
15
 			Yc = (luma[j+1] - 2.0)* 255.0 / (5.0 - 2.0); // 5V is the base voltage
16
 			// RED, GREEN and BLUE component
17
 			colorindex = (j)*16*3 + i*3;
18
-			col = (Uint8) max(min((Yc + 1.367 * Vc),255.0),0);
19
+			col = (Uint8) fmax(fmin((Yc + 1.367 * Vc),255.0),0);
20
 			p4col_calc[ colorindex ] = p4col_calc[ 384 + colorindex ] = col;
21
-			col = (Uint8) max(min((Yc - 0.336 * Uc - 0.698 * Vc ),255.0),0);
22
+			col = (Uint8) fmax(fmin((Yc - 0.336 * Uc - 0.698 * Vc ),255.0),0);
23
 			p4col_calc[ colorindex + 1] = p4col_calc[ 384 + colorindex + 1] = col;
24
-			col = (Uint8) max(min((Yc + 1.732 * Uc),255.0),0);
25
+			col = (Uint8) fmax(fmin((Yc + 1.732 * Uc),255.0),0);
26
 			p4col_calc[ colorindex + 2] = p4col_calc[ 384 + colorindex + 2] = col;
27
 		}
28
 
(-)/usr/ports/emulators/yape/files/patch-main.h (-2 / +5 lines)
Lines 1-5 Link Here
1
--- main.h.orig	Thu Oct 31 23:44:51 2002
1
2
+++ main.h	Thu Oct 31 23:45:12 2002
2
$FreeBSD$
3
4
--- main.h.orig
5
+++ main.h
3
@@ -17,7 +17,7 @@
6
@@ -17,7 +17,7 @@
4
 #include <string.h>
7
 #include <string.h>
5
 #include <ctype.h>
8
 #include <ctype.h>
(-)/usr/ports/emulators/yape/files/patch-sound.h (-2 / +5 lines)
Lines 1-5 Link Here
1
--- sound.h.orig	Thu Oct 31 23:44:15 2002
1
2
+++ sound.h	Thu Oct 31 23:44:25 2002
2
$FreeBSD$
3
4
--- sound.h.orig
5
+++ sound.h
3
@@ -1,7 +1,7 @@
6
@@ -1,7 +1,7 @@
4
 #ifndef _SOUND_H
7
 #ifndef _SOUND_H
5
 #define _SOUND_H
8
 #define _SOUND_H
(-)/usr/ports/emulators/yape/pkg-plist (-2 / +2 lines)
Lines 1-3 Link Here
1
bin/yape
1
bin/yape
2
%%PORTDOCS%%share/doc/yape/README.Linux
2
%%PORTDOCS%%%%DOCSDIR%%/README.SDL
3
%%PORTDOCS%%@dirrm share/doc/yape
3
%%PORTDOCS%%@dirrm %%DOCSDIR%%

Return to bug 87269