Remove strict dependency on gcc version (USE_GCC=3.4+).

Approved by:	MAINTAINER
This commit is contained in:
Max Khon 2007-01-11 18:16:27 +00:00
parent 48617e032a
commit 5498a056d3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=182115
6 changed files with 86 additions and 1 deletions

View File

@ -17,7 +17,7 @@ COMMENT= Toolkit for developing GPS applications
BUILD_DEPENDS= ${LOCALBASE}/bin/jam:${PORTSDIR}/devel/jam
USE_GCC= 3.4
USE_GCC= 3.4+
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${PORTNAME}

View File

@ -0,0 +1,18 @@
--- apps/ionosphere/VTECMap.hpp.orig Thu Jan 11 21:38:35 2007
+++ apps/ionosphere/VTECMap.hpp Thu Jan 11 21:38:51 2007
@@ -193,13 +193,13 @@
/// Compute the obliquity at a given elevation
/// @param el elevation in degrees
/// @return obliquity factor
- double VTECMap::Obliquity(double el);
+ double Obliquity(double el);
protected:
/// Allocate the grid array and fill it.
/// @param refStation reference station
/// @param factor : 1 for VTEC maps, 2 for MUF maps
- void VTECMap::reallyMakeGrid(Station& refStation, int factor)
+ void reallyMakeGrid(Station& refStation, int factor)
throw(Exception);
/// Compute one grid value, using all the data. Called by ComputeMap.

View File

@ -0,0 +1,20 @@
--- src/EpochClockModel.hpp.orig Thu Jan 11 21:39:06 2007
+++ src/EpochClockModel.hpp Thu Jan 11 21:39:26 2007
@@ -67,7 +67,7 @@
PRNMode mode = ALWAYS)
:ObsClockModel(sigma, elmask, mode){}
- virtual double EpochClockModel::getOffset(const gpstk::DayTime& t) const
+ virtual double getOffset(const gpstk::DayTime& t) const
throw(gpstk::InvalidArgumentException)
{
if (t!=time)
@@ -92,7 +92,7 @@
// An unchecked accessor for programs that don't need the generic
// interface
- double EpochClockModel::getOffset() const
+ double getOffset() const
throw() {return clkc;};
bool isOffsetValid() const

View File

@ -0,0 +1,24 @@
--- src/MatrixImplementation.hpp.orig Thu Jan 11 21:31:51 2007
+++ src/MatrixImplementation.hpp Thu Jan 11 21:33:18 2007
@@ -37,18 +37,18 @@
//@{
template <class T>
- Matrix<T>::Matrix<T>()
+ Matrix<T>::Matrix()
: v((size_t)0), r(0), c(0), s(0)
{}
template <class T>
- Matrix<T>::Matrix<T>(size_t rows, size_t cols)
+ Matrix<T>::Matrix(size_t rows, size_t cols)
: v(rows * cols), r(rows), c(cols), s(rows * cols)
{}
template <class T>
- Matrix<T>::Matrix<T>(size_t rows, size_t cols,
+ Matrix<T>::Matrix(size_t rows, size_t cols,
T initialValue)
: v(rows * cols, initialValue), r(rows), c(cols), s(rows * cols)
{}

View File

@ -0,0 +1,12 @@
--- src/MiscMath.hpp.orig Thu Jan 11 21:29:49 2007
+++ src/MiscMath.hpp Thu Jan 11 21:30:37 2007
@@ -145,6 +145,9 @@
}
} // end void LagrangeInterpolation(vector, vector, const T, T&, T&)
+ template <class T>
+ T RSS (T aa, T bb, T cc);
+
/// Perform the root sum square of aa, bb
template <class T>
T RSS (T aa, T bb)

View File

@ -0,0 +1,11 @@
--- src/getopt.c.orig Thu Jan 11 21:34:50 2007
+++ src/getopt.c Thu Jan 11 21:36:24 2007
@@ -31,7 +31,7 @@
# include <config.h>
#endif
-#if defined(WIN32) || defined(_WIN32)
+#if defined(WIN32) || defined(_WIN32) || defined(__FreeBSD__)
#define HAVE_STRING_H 1
#endif