1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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>
This commit is contained in:
Will Andrews 2000-12-19 13:36:31 +00:00
parent d7f33247bc
commit ae65d62fa3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=36122
6 changed files with 44 additions and 0 deletions

View File

@ -13,6 +13,7 @@
SUBDIR += sattrack
SUBDIR += seti_applet
SUBDIR += setiathome
SUBDIR += sscalc
SUBDIR += stars
SUBDIR += sunclock
SUBDIR += tkseti

28
astro/sscalc/Makefile Normal file
View File

@ -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>

1
astro/sscalc/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (sscalc-1.0.tar.gz) = e3777b9b3031af7215c514fc3c0665b3

1
astro/sscalc/pkg-comment Normal file
View File

@ -0,0 +1 @@
A sunrise/sunset time calculator

9
astro/sscalc/pkg-descr Normal file
View File

@ -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.

4
astro/sscalc/pkg-plist Normal file
View File

@ -0,0 +1,4 @@
bin/sscalc
share/doc/sscalc/cities.txt
share/doc/sscalc/README
@dirrm share/doc/sscalc