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

(-)emulators/stella/Makefile (-1 lines)
Lines 20-26 Link Here
20
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
20
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
21
BUILD_WRKSRC=	${WRKSRC}/src/build
21
BUILD_WRKSRC=	${WRKSRC}/src/build
22
22
23
USE_GCC=	3.4
24
USE_GNOME=	pkgconfig
23
USE_GNOME=	pkgconfig
25
USE_SDL=	sdl
24
USE_SDL=	sdl
26
USE_GMAKE=	yes
25
USE_GMAKE=	yes
(-)emulators/stella/files/patch-src::common::Snapshot.cxx (+14 lines)
Line 0 Link Here
1
--- src/common/Snapshot.cxx.orig	Wed Jun 23 09:15:32 2004
2
+++ src/common/Snapshot.cxx	Thu Sep 30 21:01:54 2004
3
@@ -73,7 +73,11 @@
4
   uInt32 width  = myFrameBuffer.imageWidth();
5
   uInt32 height = myFrameBuffer.imageHeight();
6
 
7
+#if defined(__GNUC__) && __GNUC__ < 3
8
+  ofstream* out = new ofstream(filename.c_str(), ios::binary);
9
+#else
10
   ofstream* out = new ofstream(filename.c_str(), ios_base::binary);
11
+#endif
12
   if(!out)
13
     return "Couldn't create snapshot file";
14
 
(-)emulators/stella/files/patch-src::common::mainSDL.cxx (+14 lines)
Line 0 Link Here
1
--- src/common/mainSDL.cxx.orig	Fri Aug  6 10:51:15 2004
2
+++ src/common/mainSDL.cxx	Thu Sep 30 21:00:45 2004
3
@@ -822,7 +822,11 @@
4
   const char* file = argv[argc - 1];
5
 
6
   // Open the cartridge image and read it in
7
+#if defined(__GNUC__) && __GNUC__ < 3
8
+  ifstream in(file, ios::binary);
9
+#else
10
   ifstream in(file, ios_base::binary);
11
+#endif
12
   if(!in)
13
   {
14
     cerr << "ERROR: Couldn't open " << file << "..." << endl;

Return to bug 72317