diff options
author | fjoe <fjoe@FreeBSD.org> | 2007-01-12 02:16:27 +0800 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2007-01-12 02:16:27 +0800 |
commit | 9de4fe4aabcb02e09dae3cf3279acf63378f476f (patch) | |
tree | a04c2f043389f2b855066e244150318671bd4523 /astro | |
parent | c60aaac105b558978b8a64afb20ae1075d08b514 (diff) | |
download | freebsd-ports-gnome-9de4fe4aabcb02e09dae3cf3279acf63378f476f.tar.gz freebsd-ports-gnome-9de4fe4aabcb02e09dae3cf3279acf63378f476f.tar.zst freebsd-ports-gnome-9de4fe4aabcb02e09dae3cf3279acf63378f476f.zip |
Remove strict dependency on gcc version (USE_GCC=3.4+).
Approved by: MAINTAINER
Diffstat (limited to 'astro')
-rw-r--r-- | astro/gpstk/Makefile | 2 | ||||
-rw-r--r-- | astro/gpstk/files/patch-apps-ionosphere-VTECMap.hpp | 18 | ||||
-rw-r--r-- | astro/gpstk/files/patch-src-EpochClockModel.hpp | 20 | ||||
-rw-r--r-- | astro/gpstk/files/patch-src-MatrixImplementation.hpp | 24 | ||||
-rw-r--r-- | astro/gpstk/files/patch-src-MiscMath.hpp | 12 | ||||
-rw-r--r-- | astro/gpstk/files/patch-src-getopt.c | 11 |
6 files changed, 86 insertions, 1 deletions
diff --git a/astro/gpstk/Makefile b/astro/gpstk/Makefile index 6f90f0c21c6d..e7460251235d 100644 --- a/astro/gpstk/Makefile +++ b/astro/gpstk/Makefile @@ -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} diff --git a/astro/gpstk/files/patch-apps-ionosphere-VTECMap.hpp b/astro/gpstk/files/patch-apps-ionosphere-VTECMap.hpp new file mode 100644 index 000000000000..625622c89655 --- /dev/null +++ b/astro/gpstk/files/patch-apps-ionosphere-VTECMap.hpp @@ -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. diff --git a/astro/gpstk/files/patch-src-EpochClockModel.hpp b/astro/gpstk/files/patch-src-EpochClockModel.hpp new file mode 100644 index 000000000000..714308057750 --- /dev/null +++ b/astro/gpstk/files/patch-src-EpochClockModel.hpp @@ -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 diff --git a/astro/gpstk/files/patch-src-MatrixImplementation.hpp b/astro/gpstk/files/patch-src-MatrixImplementation.hpp new file mode 100644 index 000000000000..27cda0b1d923 --- /dev/null +++ b/astro/gpstk/files/patch-src-MatrixImplementation.hpp @@ -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) + {} diff --git a/astro/gpstk/files/patch-src-MiscMath.hpp b/astro/gpstk/files/patch-src-MiscMath.hpp new file mode 100644 index 000000000000..676594d022b3 --- /dev/null +++ b/astro/gpstk/files/patch-src-MiscMath.hpp @@ -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) diff --git a/astro/gpstk/files/patch-src-getopt.c b/astro/gpstk/files/patch-src-getopt.c new file mode 100644 index 000000000000..36e3f6b2354e --- /dev/null +++ b/astro/gpstk/files/patch-src-getopt.c @@ -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 + |