diff options
-rw-r--r-- | misc/xtide/Makefile | 36 | ||||
-rw-r--r-- | misc/xtide/distinfo | 10 | ||||
-rw-r--r-- | misc/xtide/files/xtide.conf | 1 | ||||
-rw-r--r-- | misc/xtide/patches/patch-aa | 20 | ||||
-rw-r--r-- | misc/xtide/patches/patch-ab | 19 | ||||
-rw-r--r-- | misc/xtide/patches/patch-ac | 13 | ||||
-rw-r--r-- | misc/xtide/pkg/DESCR | 24 | ||||
-rw-r--r-- | misc/xtide/pkg/MESSAGE | 3 | ||||
-rw-r--r-- | misc/xtide/pkg/PLIST | 11 |
9 files changed, 137 insertions, 0 deletions
diff --git a/misc/xtide/Makefile b/misc/xtide/Makefile new file mode 100644 index 00000000000..79e10dcae8a --- /dev/null +++ b/misc/xtide/Makefile @@ -0,0 +1,36 @@ +# $NetBSD: Makefile,v 1.1.1.1 2001/05/31 15:48:05 agc Exp $ + +DISTNAME= xtide-2.4 +PKGNAME= ${DISTNAME} +CATEGORIES= misc x11 +MASTER_SITES= ftp://ftp.flaterco.com/xtide/ +DISTFILES= ${XTIDE_SRC} harmonics.txt.gz offsets.xml.gz + +MAINTAINER= paul@whooppee.com +HOMEPAGE= http://www.flaterco.com/ +COMMENT= X11 tide predictor + +DEPENDS+= png>0.96:../../graphics/png + +EXTRACT_ONLY= ${XTIDE_SRC} +XTIDE_SRC= ${DISTNAME}${EXTRACT_SUFX} + +GNU_CONFIGURE= yes +USE_X11= yes + +post-patch: + @cd ${WRKSRC}/DOCUMENTATION; \ + for f in *; do \ + ${MV} $$f $$f.bak; \ + ${SED} -e 's|/usr/local|${PREFIX}|g' < $$f.bak > $$f; \ + done + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/xtide + ${GZCAT} ${DISTDIR}/harmonics.txt.gz > ${WRKDIR}/harmonics.txt + ${GZCAT} ${DISTDIR}/offsets.xml.gz > ${WRKDIR}/offsets.xml + ${CP} ${FILESDIR}/xtide.conf ${PREFIX}/share/examples/xtide.conf + ${CP} ${WRKDIR}/harmonics.txt ${PREFIX}/share/xtide + ${CP} ${WRKDIR}/offsets.xml ${PREFIX}/share/xtide + +.include "../../mk/bsd.pkg.mk" diff --git a/misc/xtide/distinfo b/misc/xtide/distinfo new file mode 100644 index 00000000000..d1f2d06c0bd --- /dev/null +++ b/misc/xtide/distinfo @@ -0,0 +1,10 @@ + +SHA1 (xtide-2.4.tar.gz) = bbd97d1b11ea75bfb09df1c9ddd3e0bc5d3f3a35 +Size (xtide-2.4.tar.gz) = 429295 bytes +SHA1 (harmonics.txt.gz) = c603f47326ae4362fa4209db533bd53fb281f9ac +Size (harmonics.txt.gz) = 990208 bytes +SHA1 (offsets.xml.gz) = 2cc596373b631e7a0146bac2b66a7754334ab5b7 +Size (offsets.xml.gz) = 150845 bytes +SHA1 (patch-aa) = 48b0c37ba2f664f14508c2096184e75784958205 +SHA1 (patch-ab) = eb7a432bb0f2aef65b1c1f885df942b37ad4c7c3 +SHA1 (patch-ac) = f2732dc8c948a7c3ce0ee46689a7403bc9c3aae3 diff --git a/misc/xtide/files/xtide.conf b/misc/xtide/files/xtide.conf new file mode 100644 index 00000000000..bd3a9e1b349 --- /dev/null +++ b/misc/xtide/files/xtide.conf @@ -0,0 +1 @@ +/usr/pkg/share/xtide/harmonics.txt:/usr/pkg/share/xtide/offsets.xml 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 diff --git a/misc/xtide/pkg/DESCR b/misc/xtide/pkg/DESCR new file mode 100644 index 00000000000..eb0fa009b0b --- /dev/null +++ b/misc/xtide/pkg/DESCR @@ -0,0 +1,24 @@ +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. diff --git a/misc/xtide/pkg/MESSAGE b/misc/xtide/pkg/MESSAGE new file mode 100644 index 00000000000..a2c1a821524 --- /dev/null +++ b/misc/xtide/pkg/MESSAGE @@ -0,0 +1,3 @@ +You should copy the example xtide configuration file from +${PREFIX}/share/examples/xtide.conf to ${PREFIX}/etc/xtide.conf, and +edit it to conform to your spacifications. diff --git a/misc/xtide/pkg/PLIST b/misc/xtide/pkg/PLIST new file mode 100644 index 00000000000..ad8996f450d --- /dev/null +++ b/misc/xtide/pkg/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2001/05/31 15:48:05 agc Exp $ +bin/xtide +bin/tide +sbin/xttpd +man/man1/xtide.1 +man/man1/tide.1 +man/man8/xttpd.8 +share/xtide/harmonics.txt +share/xtide/offsets.xml +share/examples/xtide.conf +@dirrm share/xtide |