summaryrefslogtreecommitdiff
path: root/misc/xtide/patches
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2001-05-31 15:48:05 +0000
committeragc <agc@pkgsrc.org>2001-05-31 15:48:05 +0000
commitf8584542c728b1faefd4809c01a7f0e3fe682a4f (patch)
tree82e7b169998ac177c18b583fcd1e864be12fe22c /misc/xtide/patches
parent9707fee5de45701f6fc90aca09837f41593d6086 (diff)
downloadpkgsrc-f8584542c728b1faefd4809c01a7f0e3fe682a4f.tar.gz
Initial import of xtide-2.4 into the Packages Collection.
Provided in PR 13044 by Paul Goyette (paul@whooppee.com) XTide is a package that provides tide and current predictions in a wide variety of formats. Graphs, text listings, and calendars can be generated, or a tide clock can be provided on your desktop. XTide can work with X-windows, plain text terminals, or the web. This is accomplished with three separate programs: the interactive interface (xtide), the non-interactive or command line interface (tide), and the web interface (xttpd). The algorithm that XTide uses to predict tides is the one used by the National Ocean Service in the U.S. It is significantly more accurate than the simple tide clocks that can be bought in novelty stores. However, it takes more to predict tides accurately than just a spiffy algorithm -- you also need some special data for each and every location for which you want to predict tides. XTide reads this data from harmonics files. Ultimately, XTide's predictions can only be as good as the available harmonics data. Due to issues of data availability and of compatibility with non-U.S. tide systems, the predictions for U.S. locations tend to be a lot better on average than those for locations outside of the U.S. * Deviations of 1 minute from official predictions are typical for U.S. locations having the latest data. * Deviations of 20 minutes are typical for non-U.S. locations or U.S. locations that are using obsolete data. * Much longer deviations indicate a problem.
Diffstat (limited to 'misc/xtide/patches')
-rw-r--r--misc/xtide/patches/patch-aa20
-rw-r--r--misc/xtide/patches/patch-ab19
-rw-r--r--misc/xtide/patches/patch-ac13
3 files changed, 52 insertions, 0 deletions
diff --git a/misc/xtide/patches/patch-aa b/misc/xtide/patches/patch-aa
new file mode 100644
index 00000000000..e75aaddc2c5
--- /dev/null
+++ b/misc/xtide/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/05/31 15:48:05 agc Exp $
+
+--- errors.cc.orig Fri Mar 23 01:35:40 2001
++++ errors.cc Thu May 31 13:45:32 2001
+@@ -128,11 +128,11 @@
+ break;
+ case NO_HFILE_PATH:
+ errout += "NO_HFILE_PATH\n\
+-If /etc/xtide.conf is not provided, you must set the environment variable\n\
++If ${PREFIX}/etc/xtide.conf is not provided, you must set the environment variable\n\
+ HFILE_PATH to point to your harmonics files. Example:\n\
+- export HFILE_PATH=/usr/local/share/xtide/harmonics.txt:\\\n\
+- /usr/local/share/xtide/offsets.xml\n\
+-Please refer to the documentation for usage of /etc/xtide.conf.";
++ export HFILE_PATH=${PREFIX}/share/xtide/harmonics.txt:\\\n\
++ ${PREFIX}/share/xtide/offsets.xml\n\
++Please refer to the documentation for usage of ${PREFIX}/etc/xtide.conf.";
+ break;
+ case IMPOSSIBLE_CONVERSION:
+ errout += "IMPOSSIBLE_CONVERSION\n\
diff --git a/misc/xtide/patches/patch-ab b/misc/xtide/patches/patch-ab
new file mode 100644
index 00000000000..36fe8e4b565
--- /dev/null
+++ b/misc/xtide/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1.1.1 2001/05/31 15:48:05 agc Exp $
+
+--- TideContext.cc.orig Fri Mar 23 21:52:40 2001
++++ TideContext.cc Thu May 31 13:48:53 2001
+@@ -42,12 +42,12 @@
+ colors = in_colors;
+ settings = in_settings;
+
+- // Get HFILE_PATH from environment or /etc/xtide.conf and create
++ // Get HFILE_PATH from environment or ${PREFIX}/etc/xtide.conf and create
+ // persistent HarmonicsPath
+ Dstr hfile_path (getenv ("HFILE_PATH"));
+ if (hfile_path.isNull()) {
+ FILE *configfile;
+- if ((configfile = fopen ("/etc/xtide.conf", "r"))) {
++ if ((configfile = fopen (PREFIX "/etc/xtide.conf", "r"))) {
+ hfile_path.getline (configfile);
+ fclose (configfile);
+ }
diff --git a/misc/xtide/patches/patch-ac b/misc/xtide/patches/patch-ac
new file mode 100644
index 00000000000..e3a46da95cc
--- /dev/null
+++ b/misc/xtide/patches/patch-ac
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1.1.1 2001/05/31 15:48:05 agc Exp $
+
+--- Makefile.in 1999/11/07 16:39:32 1.6
++++ Makefile.in 2001/05/31 12:54:19
+@@ -14,7 +14,7 @@
+ # Compiler and flags
+ # DEFS should include -Dacceptarg3_t=int (replace with the correct data type)
+ CXX = @CXX@
+-CXXFLAGS = @extracxxflags@ @DEFS@ -O2 -I@includedir@ -I$(XROOT)/include -I/usr/local/include -I/usr/contrib/include -c
++CXXFLAGS = @extracxxflags@ @DEFS@ -O2 -I@includedir@ -I$(XROOT)/include -I/usr/local/include -I/usr/contrib/include -DPREFIX='"${prefix}"' -c
+ LDFLAGS = @extraldflags@ -L@libdir@ -L$(XROOT)/lib -L/usr/local/lib -L/usr/contrib/lib -s -o
+
+ # Extra switches and libs determined by configure.in