summaryrefslogtreecommitdiffstats
path: root/sysutils/anteater
diff options
context:
space:
mode:
authornaddy <naddy@FreeBSD.org>2002-11-05 12:32:05 +0000
committernaddy <naddy@FreeBSD.org>2002-11-05 12:32:05 +0000
commit479522855396664e1a5814f7288ef87d8af8fc6b (patch)
tree20d018d56fc7eb77618c4de2311a0c9cd9f8008c /sysutils/anteater
parentd2a35a262da06cb5c47e2a499b723ae90b4cc9bb (diff)
downloadFreeBSD-ports-479522855396664e1a5814f7288ef87d8af8fc6b.zip
FreeBSD-ports-479522855396664e1a5814f7288ef87d8af8fc6b.tar.gz
C++ fixes for -CURRENT/GCC3.
PR: 44463 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
Diffstat (limited to 'sysutils/anteater')
-rw-r--r--sysutils/anteater/Makefile9
-rw-r--r--sysutils/anteater/files/patch-anteater_asciireport.cpp31
-rw-r--r--sysutils/anteater/files/patch-anteater_clp.cpp14
-rw-r--r--sysutils/anteater/files/patch-anteater_htmlreport.cpp14
-rw-r--r--sysutils/anteater/files/patch-anteater_report.cpp14
5 files changed, 81 insertions, 1 deletions
diff --git a/sysutils/anteater/Makefile b/sysutils/anteater/Makefile
index 74e0c97..6530ead 100644
--- a/sysutils/anteater/Makefile
+++ b/sysutils/anteater/Makefile
@@ -14,6 +14,13 @@ MASTER_SITES= ftp://ftp.profzone.ch/drzoom/anteater/
MAINTAINER= ports@FreeBSD.org
GNU_CONFIGURE= yes
+
+.include <bsd.port.pre.mk>
+
+# You will still get configure errors on -STABLE
+# if you set CXX to a GCC3 incarnation!
+.if ${OSVERSION} < 500035
CONFIGURE_ARGS= --enable-strstream
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/anteater/files/patch-anteater_asciireport.cpp b/sysutils/anteater/files/patch-anteater_asciireport.cpp
new file mode 100644
index 0000000..861baf9
--- /dev/null
+++ b/sysutils/anteater/files/patch-anteater_asciireport.cpp
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+--- anteater/asciireport.cpp.orig Thu May 24 19:35:02 2001
++++ anteater/asciireport.cpp Tue Nov 5 13:20:12 2002
+@@ -297,7 +297,7 @@
+ if( !nextField() ) printSpace();
+ }
+
+-void asciiReport::skipField( const bool realline = true )
++void asciiReport::skipField( const bool realline)
+ {
+ if( col_list.size() == 0 ) return; // Fehler.
+ if( realline ) checkAutoField();
+@@ -366,14 +366,14 @@
+ }
+
+ /** Gibt width anzahl spaces aus. */
+-void asciiReport::printSpace( const int width = 1 )
++void asciiReport::printSpace( const int width)
+ {
+ int i;
+ for( i = 0; i < width; i++ ) (*os).put( ' ' );
+ }
+
+ /** Zeichnet eine Linie über die gesammte Breite mit zeichen ch. */
+-void asciiReport::printLine( const char ch = '-', const int size = -1 )
++void asciiReport::printLine( const char ch, const int size)
+ {
+ int i;
+ for( i = 0; i < ( size == -1 ? ScreenWidth : size ) ; i++ ) (*os).put( ch );
diff --git a/sysutils/anteater/files/patch-anteater_clp.cpp b/sysutils/anteater/files/patch-anteater_clp.cpp
new file mode 100644
index 0000000..4dada43
--- /dev/null
+++ b/sysutils/anteater/files/patch-anteater_clp.cpp
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- anteater/clp.cpp.orig Thu May 24 19:28:50 2001
++++ anteater/clp.cpp Tue Nov 5 13:20:12 2002
+@@ -502,7 +502,7 @@
+ return true;
+ };
+
+-bool clp::parseError( const std::string &wrong, const long line = 0 )
++bool clp::parseError( const std::string &wrong, const long line)
+ {
+ std::cerr << "Ooops! I don't understand your parameter \"" << wrong << "\"..." << std::endl;
+ std::cerr << "Please check the syntax or read the manual." << std::endl << std::endl;
diff --git a/sysutils/anteater/files/patch-anteater_htmlreport.cpp b/sysutils/anteater/files/patch-anteater_htmlreport.cpp
new file mode 100644
index 0000000..3952953
--- /dev/null
+++ b/sysutils/anteater/files/patch-anteater_htmlreport.cpp
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- anteater/htmlreport.cpp.orig Thu May 24 19:14:00 2001
++++ anteater/htmlreport.cpp Tue Nov 5 13:20:12 2002
+@@ -244,7 +244,7 @@
+ nextField();
+ }
+
+-void htmlReport::skipField( const bool realline = true )
++void htmlReport::skipField( const bool realline)
+ {
+ if( col_list.size() == 0 ) return; // Fehler.
+ if( realline ) checkAutoField();
diff --git a/sysutils/anteater/files/patch-anteater_report.cpp b/sysutils/anteater/files/patch-anteater_report.cpp
new file mode 100644
index 0000000..b919024
--- /dev/null
+++ b/sysutils/anteater/files/patch-anteater_report.cpp
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- anteater/report.cpp.orig Thu May 24 19:43:41 2001
++++ anteater/report.cpp Tue Nov 5 13:20:12 2002
+@@ -132,7 +132,7 @@
+ }
+
+ void Report::addCol( const int colSize, const colTyp_e colTyp, const colAlign_e colAlign,
+- const std::string &colTitle, const colStyle_e colStyle, const unsigned long colFlags = 0 )
++ const std::string &colTitle, const colStyle_e colStyle, const unsigned long colFlags)
+ {
+ if( Type == TABLE )
+ {
OpenPOWER on IntegriCloud