ports/72317: Update port: emulators/stella

KATO Tsuguru tkato432 at yahoo.com
Mon Oct 4 17:10:39 UTC 2004


>Number:         72317
>Category:       ports
>Synopsis:       Update port: emulators/stella
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 04 17:10:30 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.10-RELEASE-p3 i386
>Organization:
>Environment:
>Description:
- Fix build on 4-stable with system compiler

New file:
files/patch-src::common::Snapshot.cxx
files/patch-src::common::mainSDL.cxx

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/emulators/stella/Makefile emulators/stella/Makefile
--- /usr/ports/emulators/stella/Makefile	Fri Oct  1 02:05:44 2004
+++ emulators/stella/Makefile	Fri Oct  1 02:10:59 2004
@@ -20,7 +20,6 @@
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 BUILD_WRKSRC=	${WRKSRC}/src/build
 
-USE_GCC=	3.4
 USE_GNOME=	pkgconfig
 USE_SDL=	sdl
 USE_GMAKE=	yes
diff -urN /usr/ports/emulators/stella/files/patch-src::common::Snapshot.cxx emulators/stella/files/patch-src::common::Snapshot.cxx
--- /usr/ports/emulators/stella/files/patch-src::common::Snapshot.cxx	Thu Jan  1 09:00:00 1970
+++ emulators/stella/files/patch-src::common::Snapshot.cxx	Thu Sep 30 21:02:07 2004
@@ -0,0 +1,14 @@
+--- src/common/Snapshot.cxx.orig	Wed Jun 23 09:15:32 2004
++++ src/common/Snapshot.cxx	Thu Sep 30 21:01:54 2004
+@@ -73,7 +73,11 @@
+   uInt32 width  = myFrameBuffer.imageWidth();
+   uInt32 height = myFrameBuffer.imageHeight();
+ 
++#if defined(__GNUC__) && __GNUC__ < 3
++  ofstream* out = new ofstream(filename.c_str(), ios::binary);
++#else
+   ofstream* out = new ofstream(filename.c_str(), ios_base::binary);
++#endif
+   if(!out)
+     return "Couldn't create snapshot file";
+ 
diff -urN /usr/ports/emulators/stella/files/patch-src::common::mainSDL.cxx emulators/stella/files/patch-src::common::mainSDL.cxx
--- /usr/ports/emulators/stella/files/patch-src::common::mainSDL.cxx	Thu Jan  1 09:00:00 1970
+++ emulators/stella/files/patch-src::common::mainSDL.cxx	Thu Sep 30 21:23:28 2004
@@ -0,0 +1,14 @@
+--- src/common/mainSDL.cxx.orig	Fri Aug  6 10:51:15 2004
++++ src/common/mainSDL.cxx	Thu Sep 30 21:00:45 2004
+@@ -822,7 +822,11 @@
+   const char* file = argv[argc - 1];
+ 
+   // Open the cartridge image and read it in
++#if defined(__GNUC__) && __GNUC__ < 3
++  ifstream in(file, ios::binary);
++#else
+   ifstream in(file, ios_base::binary);
++#endif
+   if(!in)
+   {
+     cerr << "ERROR: Couldn't open " << file << "..." << endl;
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list