summaryrefslogtreecommitdiff
path: root/math/erfa
diff options
context:
space:
mode:
authormef <mef@pkgsrc.org>2020-12-17 22:12:06 +0000
committermef <mef@pkgsrc.org>2020-12-17 22:12:06 +0000
commit96c0cd20bc6747f710fd1e574518b2cf694ba434 (patch)
tree2378bcf26682bd4ccace8249924f583c9406d0ab /math/erfa
parente3dca3e4e38d9d165731fca333f4af45a0d6f739 (diff)
downloadpkgsrc-96c0cd20bc6747f710fd1e574518b2cf694ba434.tar.gz
math/erfa: import erfa-1.7.1 based on PR pkg/55858 by Daisuke Kinoshita
ERFA (Essential Routines for Fundamental Astronomy) is a C library for astronomy.
Diffstat (limited to 'math/erfa')
-rw-r--r--math/erfa/DESCR2
-rw-r--r--math/erfa/Makefile34
-rw-r--r--math/erfa/PLIST7
-rw-r--r--math/erfa/buildlink3.mk12
-rw-r--r--math/erfa/distinfo6
5 files changed, 61 insertions, 0 deletions
diff --git a/math/erfa/DESCR b/math/erfa/DESCR
new file mode 100644
index 00000000000..01579c44141
--- /dev/null
+++ b/math/erfa/DESCR
@@ -0,0 +1,2 @@
+ERFA (Essential Routines for Fundamental Astronomy) is a C library for
+astronomy.
diff --git a/math/erfa/Makefile b/math/erfa/Makefile
new file mode 100644
index 00000000000..2d7a1435a9f
--- /dev/null
+++ b/math/erfa/Makefile
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2020/12/17 22:12:06 mef Exp $
+
+DISTNAME= erfa-1.7.1
+CATEGORIES= math
+MASTER_SITES= ${MASTER_SITE_GITHUB:=liberfa/}
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+MAINTAINER= kinoshita@astro.ncu.edu.tw
+HOMEPAGE= https://github.com/liberfa/
+COMMENT= Essential Routines for Fundamental Astronomy
+LICENSE= modified-bsd
+
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= erfa.pc.in
+
+USE_LIBTOOL= yes
+
+GNU_CONFIGURE= yes
+
+AUTOCONF_REQD= 2.50
+AUTOMAKE_REQD= 1.7.1
+USE_TOOLS+= aclocal
+USE_TOOLS+= autoconf
+USE_TOOLS+= autoheader
+USE_TOOLS+= automake
+
+pre-configure:
+ set -e; cd ${WRKSRC}; \
+ ./bootstrap.sh; \
+ aclocal; autoheader; automake -a --foreign -i; autoconf
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/math/erfa/PLIST b/math/erfa/PLIST
new file mode 100644
index 00000000000..eee894aa822
--- /dev/null
+++ b/math/erfa/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2020/12/17 22:12:06 mef Exp $
+include/erfa.h
+include/erfadatextra.h
+include/erfaextra.h
+include/erfam.h
+lib/liberfa.la
+lib/pkgconfig/erfa.pc
diff --git a/math/erfa/buildlink3.mk b/math/erfa/buildlink3.mk
new file mode 100644
index 00000000000..6ba8d8aee38
--- /dev/null
+++ b/math/erfa/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/12/17 22:12:06 mef Exp $
+
+BUILDLINK_TREE+= erfa
+
+.if !defined(ERFA_BUILDLINK3_MK)
+ERFA_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.erfa+= erfa>=1.7.1
+BUILDLINK_PKGSRCDIR.erfa?= ../../math/erfa
+.endif # ERFA_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -erfa
diff --git a/math/erfa/distinfo b/math/erfa/distinfo
new file mode 100644
index 00000000000..dd4ffbc78f7
--- /dev/null
+++ b/math/erfa/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/12/17 22:12:06 mef Exp $
+
+SHA1 (erfa-1.7.1.tar.gz) = 0224281616f9cdbd7429c626493ee98b4533baa0
+RMD160 (erfa-1.7.1.tar.gz) = 98917ba7720ca47a12dea8ff6a666a6d2ed28d19
+SHA512 (erfa-1.7.1.tar.gz) = 353d7ffc0fb62768375c0514bc7a17fbefeca5d316e3c3efbd83a1060f19b084f9dda0af261f618f19b5f6d5642f1d4669af6a9e03cbe37959f8d0b8f1713b9a
+Size (erfa-1.7.1.tar.gz) = 334357 bytes