summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorplunky <plunky@pkgsrc.org>2020-01-10 16:57:24 +0000
committerplunky <plunky@pkgsrc.org>2020-01-10 16:57:24 +0000
commit625736c1611e711495b9d2a4d424e48bc24f10f1 (patch)
treea6f4717549c2b7759853582b7edee29de9169122 /databases
parenta12cd52a711cf6b7641564f04c47caa6e4390596 (diff)
downloadpkgsrc-625736c1611e711495b9d2a4d424e48bc24f10f1.tar.gz
add libtcd version 2.2.7-r2:
libtcd provides a software API for reading and writing Tide Constituent Database (TCD) files. The TCD file format and schema are used by XTide to retrieve constituent definitions (speeds, equilibrium arguments, and node factors), harmonic constants, subordinate station offsets and associated metadata for use in generating tide predictions. The TCD file format and schema were originally designed by Jan Depner to improve the performance of XTide and to meet additional requirements of the U.S. Naval Oceanographic Office (NAVO). They are now maintained primarily by David Flater. The design goals for TCD included: Available without installing heavy external packages. Efficient for indexing and loading of stations. Compact file format. Translatable without loss from legacy XTide .txt and .xml files. Exportable to legacy .txt and .xml formats. Modifiable by end user using tideEditor. Able to detect tampering (usually, misguided attempts to edit the database in a word processor).
Diffstat (limited to 'databases')
-rw-r--r--databases/libtcd/DESCR23
-rw-r--r--databases/libtcd/Makefile21
-rw-r--r--databases/libtcd/PLIST3
-rw-r--r--databases/libtcd/buildlink3.mk13
-rw-r--r--databases/libtcd/distinfo7
-rw-r--r--databases/libtcd/patches/patch-configure111
6 files changed, 178 insertions, 0 deletions
diff --git a/databases/libtcd/DESCR b/databases/libtcd/DESCR
new file mode 100644
index 00000000000..2fd4b126593
--- /dev/null
+++ b/databases/libtcd/DESCR
@@ -0,0 +1,23 @@
+libtcd provides a software API for reading and writing Tide Constituent
+Database (TCD) files.
+
+The TCD file format and schema are used by XTide to retrieve constituent
+definitions (speeds, equilibrium arguments, and node factors), harmonic
+constants, subordinate station offsets and associated metadata for use
+in generating tide predictions.
+
+The TCD file format and schema were originally designed by Jan Depner
+to improve the performance of XTide and to meet additional requirements
+of the U.S. Naval Oceanographic Office (NAVO). They are now maintained
+primarily by David Flater.
+
+The design goals for TCD included:
+
+ Available without installing heavy external packages.
+ Efficient for indexing and loading of stations.
+ Compact file format.
+ Translatable without loss from legacy XTide .txt and .xml files.
+ Exportable to legacy .txt and .xml formats.
+ Modifiable by end user using tideEditor.
+ Able to detect tampering (usually, misguided attempts to edit the
+ database in a word processor).
diff --git a/databases/libtcd/Makefile b/databases/libtcd/Makefile
new file mode 100644
index 00000000000..6247b286552
--- /dev/null
+++ b/databases/libtcd/Makefile
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile,v 1.1 2020/01/10 16:57:24 plunky Exp $
+
+DISTNAME= libtcd-2.2.7-r2
+PKGNAME= ${DISTNAME:S/-r/r/}
+CATEGORIES= databases
+MASTER_SITES= https://flaterco.com/files/xtide/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://flaterco.com/
+COMMENT= API for reading and writing Tide Constituent Database (TCD) files
+LICENSE= public-domain
+
+WRKSRC= ${WRKDIR}/${DISTNAME:C/-r.*//}
+
+GNU_CONFIGURE= yes
+USE_TOOLS= bash gmake gsed
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/libtcd/PLIST b/databases/libtcd/PLIST
new file mode 100644
index 00000000000..5bdc8a9e47f
--- /dev/null
+++ b/databases/libtcd/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1 2020/01/10 16:57:24 plunky Exp $
+include/tcd.h
+lib/libtcd.la
diff --git a/databases/libtcd/buildlink3.mk b/databases/libtcd/buildlink3.mk
new file mode 100644
index 00000000000..b843fbc06dc
--- /dev/null
+++ b/databases/libtcd/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/01/10 16:57:24 plunky Exp $
+
+BUILDLINK_TREE+= libtcd
+
+.if !defined(LIBTCD_BUILDLINK3_MK)
+LIBTCD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libtcd+= libtcd>=2.2.7
+BUILDLINK_PKGSRCDIR.libtcd?= ../../databases/libtcd
+
+.endif # LIBTCD_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libtcd
diff --git a/databases/libtcd/distinfo b/databases/libtcd/distinfo
new file mode 100644
index 00000000000..64d45aad77a
--- /dev/null
+++ b/databases/libtcd/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2020/01/10 16:57:24 plunky Exp $
+
+SHA1 (libtcd-2.2.7-r2.tar.bz2) = 800cec12db681f60670a060cc69a9f44f46be4cf
+RMD160 (libtcd-2.2.7-r2.tar.bz2) = 0160b9af26aa22e2cbf74fc5ae05493238cd2eb6
+SHA512 (libtcd-2.2.7-r2.tar.bz2) = b67e5b3d43cc51cf7405db5d71bec0a33f884d1a5654b01d7cddf54e7614d3b8d05fafec133e2299ca4687ee9a74295dbd0281c2ddff36906c77cc930bad9ed4
+Size (libtcd-2.2.7-r2.tar.bz2) = 308959 bytes
+SHA1 (patch-configure) = 2209673c29636fd83026cf33fd7afe9bfaeaa67d
diff --git a/databases/libtcd/patches/patch-configure b/databases/libtcd/patches/patch-configure
new file mode 100644
index 00000000000..dac93b4ab90
--- /dev/null
+++ b/databases/libtcd/patches/patch-configure
@@ -0,0 +1,111 @@
+$NetBSD: patch-configure,v 1.1 2020/01/10 16:57:25 plunky Exp $
+
+fix non-portable tests
+
+--- configure.orig 2016-01-25 17:29:39.000000000 +0000
++++ configure
+@@ -2373,7 +2373,7 @@ ver_COMPAT114=""
+ # Check whether --enable-COMPAT114 was given.
+ if test "${enable_COMPAT114+set}" = set; then :
+ enableval=$enable_COMPAT114;
+- if test "$enable_COMPAT114" == yes; then :
++ if test "$enable_COMPAT114" = yes; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: COMPAT114 is enabled!" >&5
+ $as_echo "$as_me: WARNING: COMPAT114 is enabled!" >&2;}
+@@ -2400,7 +2400,7 @@ fi
+ # Check whether --enable-lm_hard was given.
+ if test "${enable_lm_hard+set}" = set; then :
+ enableval=$enable_lm_hard;
+- if test "$enable_lm_hard" == yes; then :
++ if test "$enable_lm_hard" = yes; then :
+
+ { $as_echo "$as_me:${as_lineno-$LINENO}: Linking with libm_hard instead of libm." >&5
+ $as_echo "$as_me: Linking with libm_hard instead of libm." >&6;}
+@@ -11760,17 +11760,17 @@ _ACEOF
+ # header file that will work outside of autoconf. Evil: relying on
+ # internals of autoconf macro definitions.
+
+-if test "$ac_cv_header_sys_types_h" == yes; then :
++if test "$ac_cv_header_sys_types_h" = yes; then :
+ sub_systypes="#include <sys/types.h>"
+
+ else
+ sub_systypes=""
+
+ fi
+-if test "$ac_cv_header_inttypes_h" == yes; then :
++if test "$ac_cv_header_inttypes_h" = yes; then :
+ sub_inttypes="#include <inttypes.h>"
+
+-elif test "$ac_cv_header_stdint_h" == yes; then :
++elif test "$ac_cv_header_stdint_h" = yes; then :
+ sub_inttypes="#include <stdint.h>"
+
+ else
+@@ -11778,28 +11778,28 @@ else
+
+ fi
+
+-if test "$ac_cv_c_int8_t" == yes; then :
++if test "$ac_cv_c_int8_t" = yes; then :
+ sub_int8_t="int8_t"
+
+ else
+ sub_int8_t="$ac_cv_c_int8_t"
+
+ fi
+-if test "$ac_cv_c_int16_t" == yes; then :
++if test "$ac_cv_c_int16_t" = yes; then :
+ sub_int16_t="int16_t"
+
+ else
+ sub_int16_t="$ac_cv_c_int16_t"
+
+ fi
+-if test "$ac_cv_c_int32_t" == yes; then :
++if test "$ac_cv_c_int32_t" = yes; then :
+ sub_int32_t="int32_t"
+
+ else
+ sub_int32_t="$ac_cv_c_int32_t"
+
+ fi
+-if test "$ac_cv_c_int64_t" == yes; then :
++if test "$ac_cv_c_int64_t" = yes; then :
+ sub_int64_t="int64_t"
+
+ else
+@@ -11807,28 +11807,28 @@ else
+
+ fi
+
+-if test "$ac_cv_c_uint8_t" == yes; then :
++if test "$ac_cv_c_uint8_t" = yes; then :
+ sub_uint8_t="uint8_t"
+
+ else
+ sub_uint8_t="$ac_cv_c_uint8_t"
+
+ fi
+-if test "$ac_cv_c_uint16_t" == yes; then :
++if test "$ac_cv_c_uint16_t" = yes; then :
+ sub_uint16_t="uint16_t"
+
+ else
+ sub_uint16_t="$ac_cv_c_uint16_t"
+
+ fi
+-if test "$ac_cv_c_uint32_t" == yes; then :
++if test "$ac_cv_c_uint32_t" = yes; then :
+ sub_uint32_t="uint32_t"
+
+ else
+ sub_uint32_t="$ac_cv_c_uint32_t"
+
+ fi
+-if test "$ac_cv_c_uint64_t" == yes; then :
++if test "$ac_cv_c_uint64_t" = yes; then :
+ sub_uint64_t="uint64_t"
+
+ else