aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-09-17 01:51:55 +0800
committerijliao <ijliao@FreeBSD.org>2002-09-17 01:51:55 +0800
commit6fa11130244502db9b1523b0e6c2d75ec3df75b3 (patch)
tree88dcd4f6b84d56e74a84d3060f8d6622a4ca7b06
parenta6c711a81a9e42224fe2f840a4d4fb1cea096173 (diff)
downloadfreebsd-ports-graphics-6fa11130244502db9b1523b0e6c2d75ec3df75b3.tar.gz
freebsd-ports-graphics-6fa11130244502db9b1523b0e6c2d75ec3df75b3.tar.zst
freebsd-ports-graphics-6fa11130244502db9b1523b0e6c2d75ec3df75b3.zip
fix build on -current
PR: 42672 Submitted by: Craig Rodrigues <rodrigc@attbi.com>
-rw-r--r--math/newmat/files/patch-include.h14
-rw-r--r--math/newmat/files/patch-newmat9.cpp29
2 files changed, 43 insertions, 0 deletions
diff --git a/math/newmat/files/patch-include.h b/math/newmat/files/patch-include.h
new file mode 100644
index 00000000000..13305d139a5
--- /dev/null
+++ b/math/newmat/files/patch-include.h
@@ -0,0 +1,14 @@
+--- include.h.orig Sat Sep 7 00:26:44 2002
++++ include.h Fri Sep 6 23:59:21 2002
+@@ -30,8 +30,9 @@
+
+ #define bool_LIB 0
+
+-
+-//#define _STANDARD_ // using standard library
++#if defined __GNUG__ && __GNUG__ >= 3
++#define _STANDARD_ // using standard library
++#endif
+
+ //#define use_float_h // use float.h for precision data
+
diff --git a/math/newmat/files/patch-newmat9.cpp b/math/newmat/files/patch-newmat9.cpp
new file mode 100644
index 00000000000..a514f4292a9
--- /dev/null
+++ b/math/newmat/files/patch-newmat9.cpp
@@ -0,0 +1,29 @@
+--- newmat9.cpp.orig Fri Sep 6 23:36:13 2002
++++ newmat9.cpp Fri Sep 6 23:53:30 2002
+@@ -23,11 +23,6 @@
+ #define REPORT {}
+ #endif
+
+-// for G++ 3.01
+-#ifndef _Ios_Fmtflags
+-#define _Ios_Fmtflags long
+-#endif
+-
+ ostream& operator<<(ostream& s, const BaseMatrix& X)
+ {
+ GeneralMatrix* gm = ((BaseMatrix&)X).Evaluate(); operator<<(s, *gm);
+@@ -38,7 +33,13 @@
+ ostream& operator<<(ostream& s, const GeneralMatrix& X)
+ {
+ MatrixRow mr((GeneralMatrix*)&X, LoadOnEntry);
+- int w = s.width(); int nr = X.Nrows(); _Ios_Fmtflags f = s.flags();
++ int w = s.width(); int nr = X.Nrows();
++#if defined __GNUG__ && __GNUG__ < 3
++ _Ios_Fmtflags
++#else
++ ios_base::fmtflags
++#endif
++ f = s.flags();
+ s.setf(ios::fixed, ios::floatfield);
+ for (int i=1; i<=nr; i++)
+ {
1fb84f58'>Update to 0.72.1edwin2009-01-125-22/+22 * - Fix invocation of python and perl scripts by correcting path to env executableamdmi32009-01-121-0/+3 * - moved hobbit-* -> xymon-*dinoex2009-01-1218-1427/+0 * - rename hobbit-* -> xymon-*dinoex2009-01-121-2/+2 * - update to 4.2.2dinoex2009-01-1210-616/+43 * - set homedirdinoex2009-01-124-4/+4 * - Remove net-mgmt/bsnmpd, is part of base since FreeBSD 6.0pav2009-01-1115-298/+0 * Update to 4.02.2.tobez2009-01-093-5/+4 * Mark BROKEN on 8: does not build after the arp-v2 import.erwin2009-01-091-1/+7 * Mark BROKEN on 8: does not build after arp-v2 import.erwin2009-01-091-0/+4 * - USE_REINPLACE_CMD is nothing, removepav2009-01-091-1/+0 * - Remove conditional checks for FreeBSD 5.x and olderpav2009-01-079-52/+5 * Bump PORTREVISION's after OpenLDAP update.delphij2009-01-063-1/+3 * SBLIM (pronounced "sublime"), the Standards Based Linuxkuriyama2009-01-057-0/+74 * - Mark BROKEN: does not compilepav2008-12-281-0/+2 * CATEGORIES+= python for py- ports missing itpgollucci2008-12-281-1/+1 * - Modify rc.d script to allow administrator to change PID file locationmiwi2008-12-262-1/+5 * - Update to 1.0.3787miwi2008-12-262-5/+6 * - An rc.d script that actually works [1]pgollucci2008-12-252-7/+7 * Reset yinjieh@csie.nctu.edu.tw due to lack of time to work on portslinimon2008-12-252-3/+1 * Unbreak on HEAD after r186119 (L2/L3 table split).kuriyama2008-12-252-0/+28 * - Update to 0.4.12miwi2008-12-259-178/+88 * - Update to 1.3wxs2008-12-245-44/+36 * Update to 0.72.0edwin2008-12-232-5/+4 * - Update to 0.62miwi2008-12-232-5/+5 * - Set for expiration in one month: has been broken for more than 6 monthspav2008-12-201-0/+2 * Reset se@FreeBSD.org due to maintainer-timeouts and no response to email.linimon2008-12-184-4/+4 * Reset quakelee@cn.FreeBSD.org due to maintainer-timeouts and no responselinimon2008-12-161-1/+1 * - Update to 0.1.10miwi2008-12-132-4/+4 * Update to Nagios 3.0.6.wxs2008-12-102-4/+4 * - Update to 3.0.712beech2008-12-063-16/+9 * Upgrade to 3.4.4. Thanks to Roar Pettersen <roar.pettersen@it.uib.no> fordes2008-12-05