summaryrefslogtreecommitdiffstats
path: root/astro/sscalc
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-12-19 13:36:31 +0000
committerwill <will@FreeBSD.org>2000-12-19 13:36:31 +0000
commit8b42c7c8838773665a83cf11dff920afe99b037b (patch)
treec9fc00d581ad3c8c0cc145ea7919cefe2edc4475 /astro/sscalc
parent33c1e25c8431af4902364703e39f9d16b05261cb (diff)
downloadFreeBSD-ports-8b42c7c8838773665a83cf11dff920afe99b037b.zip
FreeBSD-ports-8b42c7c8838773665a83cf11dff920afe99b037b.tar.gz
Add sscalc 1.0, a sunrise/sunset time calculator ported to C from
Javascript (uh, yeah). Too bad you have to hardcode your long/lat into the program, perhaps some kind soul will inflict getopt() on this prog. PR: 23245 Submitted by: Keith Walker <kew@icehouse.net>
Diffstat (limited to 'astro/sscalc')
-rw-r--r--astro/sscalc/Makefile28
-rw-r--r--astro/sscalc/distinfo1
-rw-r--r--astro/sscalc/pkg-comment1
-rw-r--r--astro/sscalc/pkg-descr9
-rw-r--r--astro/sscalc/pkg-plist4
5 files changed, 43 insertions, 0 deletions
diff --git a/astro/sscalc/Makefile b/astro/sscalc/Makefile
new file mode 100644
index 0000000..40c633d
--- /dev/null
+++ b/astro/sscalc/Makefile
@@ -0,0 +1,28 @@
+# New ports collection makefile for: sscalc
+# Date created: Wed Nov 29 15:08:00 PST 2000
+# Whom: Keith Walker <kew@icehouse.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= sscalc
+PORTVERSION= 1.0
+CATEGORIES= astro
+MASTER_SITES= http://www.icehouse.net/kew/
+
+MAINTAINER= kew@icehouse.net
+
+pre-fetch:
+.if !defined(LAT)
+ @${ECHO_MSG} "Type \"make LAT=<nnn.nn> LON=<nnn.nn>\" to hardwire your site"
+.else
+ @${ECHO_MSG} "Compiling in lat/longs"
+.endif
+
+post-install:
+ @strip ${PREFIX}/bin/sscalc
+ @${MKDIR} ${PREFIX}/share/doc/sscalc
+ ${INSTALL_DATA} ${WRKSRC}/cities.txt ${PREFIX}/share/doc/sscalc
+ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/sscalc
+
+.include <bsd.port.mk>
diff --git a/astro/sscalc/distinfo b/astro/sscalc/distinfo
new file mode 100644
index 0000000..3ba8967
--- /dev/null
+++ b/astro/sscalc/distinfo
@@ -0,0 +1 @@
+MD5 (sscalc-1.0.tar.gz) = e3777b9b3031af7215c514fc3c0665b3
diff --git a/astro/sscalc/pkg-comment b/astro/sscalc/pkg-comment
new file mode 100644
index 0000000..0338ad9
--- /dev/null
+++ b/astro/sscalc/pkg-comment
@@ -0,0 +1 @@
+A sunrise/sunset time calculator
diff --git a/astro/sscalc/pkg-descr b/astro/sscalc/pkg-descr
new file mode 100644
index 0000000..4edd1a4
--- /dev/null
+++ b/astro/sscalc/pkg-descr
@@ -0,0 +1,9 @@
+This is sscalc, a sunrise/sunset time calculator, ported to C.
+You can find the sunrise and sunset times for anywhere in the world
+as long as you know the latitude and longitude of the location.
+
+The program is a port of the Javascript program located at
+http://www.srrb.noaa.gov/highlights/sunrise/gen.html
+
+The page was written by Aaron Horiuchi, Chris Lehman and Chris
+Cornwall.
diff --git a/astro/sscalc/pkg-plist b/astro/sscalc/pkg-plist
new file mode 100644
index 0000000..4570016
--- /dev/null
+++ b/astro/sscalc/pkg-plist
@@ -0,0 +1,4 @@
+bin/sscalc
+share/doc/sscalc/cities.txt
+share/doc/sscalc/README
+@dirrm share/doc/sscalc
OpenPOWER on IntegriCloud