Fixing gcc 3.3 compile failures -- fix for math/surf
Simon Barner
barner at in.tum.de
Wed Jul 23 05:55:44 PDT 2003
--- Makefile.orig Tue Jul 22 17:13:04 2003
+++ Makefile Tue Jul 22 17:13:15 2003
@@ -7,7 +7,7 @@
#
PORTNAME= surf
-PORTVERSION= 1.0.3
+PORTVERSION= 1.0.4
CATEGORIES= math
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -27,9 +27,5 @@
MAN1= surf.1
.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 500113
-BROKEN= "Does not compile (bad C++ code)"
-.endif
.include <bsd.port.post.mk>
-------------- next part --------------
--- distinfo.orig Mon Apr 23 18:52:21 2001
+++ distinfo Tue Jul 22 16:03:51 2003
@@ -1 +1 @@
-MD5 (surf-1.0.3.tar.gz) = 4d0cea15d9e771e60920dbb25979d1f3
+MD5 (surf-1.0.4.tar.gz) = 4880ecf3d4207ab0a4f2a2f017383b65
-------------- next part --------------
--- gtkgui/MainWindowController.cc.orig Tue Jul 22 16:23:20 2003
+++ gtkgui/MainWindowController.cc Tue Jul 22 16:23:30 2003
@@ -28,7 +28,7 @@
#include <gtk/gtkitemfactory.h>
-#include <strstream.h>
+#include <strstream>
// #define DEBUG
#include "debug.h"
-------------- next part --------------
--- gtkgui/Requester.cc.orig Tue Jul 22 16:23:45 2003
+++ gtkgui/Requester.cc Tue Jul 22 16:24:01 2003
@@ -25,7 +25,7 @@
#include <assert.h>
#include <iostream.h>
-#include <strstream.h>
+#include <strstream>
#include <gtk/gtk.h>
-------------- next part --------------
--- gtkgui/SaveImageDialog.cc.orig Tue Jul 22 16:24:13 2003
+++ gtkgui/SaveImageDialog.cc Tue Jul 22 16:26:31 2003
@@ -23,9 +23,11 @@
*/
-#include <strstream.h>
+#include <strstream>
#include "SaveImageDialog.h"
+
+using std::ostrstream;
void SaveImageDialog::toggled_dither_method (GtkWidget *w, gpointer data)
{
-------------- next part --------------
--- gtkgui/mycolor.cc.orig Tue Jul 22 16:22:12 2003
+++ gtkgui/mycolor.cc Tue Jul 22 16:22:26 2003
@@ -26,7 +26,7 @@
#include <assert.h>
#include <iostream.h>
#include <stdlib.h>
-#include <strstream.h>
+#include <strstream>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
-------------- next part --------------
--- misc/Misc.h.orig Tue Jul 22 16:14:35 2003
+++ misc/Misc.h Tue Jul 22 16:14:59 2003
@@ -26,7 +26,9 @@
#ifndef MISC_H
#define MISC_H
-#include <strstream.h>
+#include <strstream>
+
+using std::ostrstream;
class Misc
{
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20030723/d8ba32fb/attachment.bin
More information about the freebsd-ports
mailing list