diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-10-12 10:28:11 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-10-12 10:28:11 +0000 |
commit | 562e23fa8e6a76e809fd656464b6f50755984329 (patch) | |
tree | fe54394ae58f4b88e388553928c7a5f3742708a8 /emulators | |
parent | 4a50cf78acfc598508fce3c1806a90eca26036a1 (diff) | |
download | ports-562e23fa8e6a76e809fd656464b6f50755984329.tar.gz ports-562e23fa8e6a76e809fd656464b6f50755984329.zip |
Notes
Diffstat (limited to 'emulators')
-rw-r--r-- | emulators/stella/Makefile | 1 | ||||
-rw-r--r-- | emulators/stella/files/patch-src::common::Snapshot.cxx | 14 | ||||
-rw-r--r-- | emulators/stella/files/patch-src::common::mainSDL.cxx | 14 |
3 files changed, 28 insertions, 1 deletions
diff --git a/emulators/stella/Makefile b/emulators/stella/Makefile index 6d6cf5347178..1cbcc80d9172 100644 --- a/emulators/stella/Makefile +++ b/emulators/stella/Makefile @@ -20,7 +20,6 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} BUILD_WRKSRC= ${WRKSRC}/src/build -USE_GCC= 3.4 USE_GNOME= pkgconfig USE_SDL= sdl USE_GMAKE= yes diff --git a/emulators/stella/files/patch-src::common::Snapshot.cxx b/emulators/stella/files/patch-src::common::Snapshot.cxx new file mode 100644 index 000000000000..1fba5e21b94f --- /dev/null +++ b/emulators/stella/files/patch-src::common::Snapshot.cxx @@ -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 --git a/emulators/stella/files/patch-src::common::mainSDL.cxx b/emulators/stella/files/patch-src::common::mainSDL.cxx new file mode 100644 index 000000000000..f6a8539d7c6f --- /dev/null +++ b/emulators/stella/files/patch-src::common::mainSDL.cxx @@ -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; |