mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
An interactive terminal-based ephemeris program. The source tarball is
in LOCAL_PORTS because those out on the 'net can't agree on the right size and include DOS executables and such. PR: 3407 Submitted by: Slaven Rezic <eserte@cs.tu-berlin.de>
This commit is contained in:
parent
b991ef1dc2
commit
7a50961592
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=6694
33
astro/ephem/Makefile
Normal file
33
astro/ephem/Makefile
Normal file
@ -0,0 +1,33 @@
|
||||
# New ports collection makefile for: ephem
|
||||
# Version required: 4.28
|
||||
# Date created: 3 April 1997
|
||||
# Whom: eserte
|
||||
#
|
||||
# $Id: $
|
||||
#
|
||||
|
||||
DISTNAME= ephem_4.28_unix
|
||||
PKGNAME= ephem-4.28
|
||||
CATEGORIES= astro
|
||||
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
||||
|
||||
MAINTAINER= eserte@cs.tu-berlin.de
|
||||
|
||||
NO_WRKSUBDIR= yes
|
||||
NO_CONFIGURE= yes
|
||||
ALL_TARGET=
|
||||
|
||||
CFLAGS+= -Wno-implicit
|
||||
|
||||
do-install:
|
||||
-cd ${WRKSRC}; \
|
||||
${INSTALL_PROGRAM} ephem ${PREFIX}/bin; \
|
||||
${MKDIR} ${PREFIX}/share/ephem; \
|
||||
${INSTALL_DATA} Man.txt ${PREFIX}/share/ephem/; \
|
||||
[ ! -f ${PREFIX}/share/ephem/ephem.db ] && ${INSTALL_DATA} ephem.db ${PREFIX}/share/ephem/; \
|
||||
[ ! -f ${PREFIX}/share/ephem/ephem.cfg ] && ${INSTALL_DATA} ephem.cfg ${PREFIX}/share/ephem/
|
||||
|
||||
post-install:
|
||||
@echo Don\'t forget to edit ${PREFIX}/share/ephem/ephem.cfg!
|
||||
|
||||
.include <bsd.port.mk>
|
1
astro/ephem/distinfo
Normal file
1
astro/ephem/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (ephem_4.28_unix.tar.gz) = ee6905075036f3894a8c93bac114bfb5
|
18
astro/ephem/files/patch-aa
Normal file
18
astro/ephem/files/patch-aa
Normal file
@ -0,0 +1,18 @@
|
||||
*** Makefile.orig Sat Mar 14 23:21:45 1992
|
||||
--- Makefile Fri Apr 25 12:30:57 1997
|
||||
***************
|
||||
*** 1,6 ****
|
||||
# Makefile for ephem, v 4.28
|
||||
|
||||
! CFLAGS = -O
|
||||
|
||||
EPHEM= aa_hadec.o altj.o altmenus.o anomaly.o cal_mjd.o circum.o comet.o \
|
||||
compiler.o constel.o eq_ecl.o flog.o formats.o io.o listing.o main.o \
|
||||
--- 1,7 ----
|
||||
# Makefile for ephem, v 4.28
|
||||
|
||||
! #CFLAGS = -O
|
||||
! CFLAGS+= -DPREFIX=\"${PREFIX}\"
|
||||
|
||||
EPHEM= aa_hadec.o altj.o altmenus.o anomaly.o cal_mjd.o circum.o comet.o \
|
||||
compiler.o constel.o eq_ecl.o flog.o formats.o io.o listing.o main.o \
|
19
astro/ephem/files/patch-ab
Normal file
19
astro/ephem/files/patch-ab
Normal file
@ -0,0 +1,19 @@
|
||||
*** compiler.c.orig Tue Apr 15 01:07:37 1997
|
||||
--- compiler.c Tue Apr 15 01:33:14 1997
|
||||
***************
|
||||
*** 9,15 ****
|
||||
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
! #ifdef VMS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "screen.h"
|
||||
--- 9,15 ----
|
||||
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
! #if defined(VMS) || defined(unix)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "screen.h"
|
19
astro/ephem/files/patch-ac
Normal file
19
astro/ephem/files/patch-ac
Normal file
@ -0,0 +1,19 @@
|
||||
*** formats.c.orig Tue Apr 15 01:07:37 1997
|
||||
--- formats.c Tue Apr 15 01:33:15 1997
|
||||
***************
|
||||
*** 5,11 ****
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
! #ifdef VMS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "astro.h"
|
||||
--- 5,11 ----
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
! #if defined(VMS) || defined(unix)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "astro.h"
|
70
astro/ephem/files/patch-ad
Normal file
70
astro/ephem/files/patch-ad
Normal file
@ -0,0 +1,70 @@
|
||||
*** io.c.orig Wed Apr 3 13:26:53 1996
|
||||
--- io.c Wed Apr 3 15:13:25 1996
|
||||
***************
|
||||
*** 35,50 ****
|
||||
/* then if you defined UNIX you must use one of these ways to do non-blocking
|
||||
* tty reads
|
||||
*/
|
||||
! #define USE_FIONREAD
|
||||
! /* #define USE_NDELAY */
|
||||
/* #define USE_ATTSELECT */
|
||||
/* #define USE_BSDSELECT */
|
||||
|
||||
/* and then if you defined UNIX you must also use one of these ways to control
|
||||
* the tty modes.
|
||||
*/
|
||||
! #define USE_TERMIO
|
||||
! /* #define USE_SGTTY */
|
||||
|
||||
/* if you defined TURBO_C you might want this too if screen io looks garbled */
|
||||
/* #define USE_ANSISYS */
|
||||
--- 35,50 ----
|
||||
/* then if you defined UNIX you must use one of these ways to do non-blocking
|
||||
* tty reads
|
||||
*/
|
||||
! /* #define USE_FIONREAD */
|
||||
! #define USE_NDELAY
|
||||
/* #define USE_ATTSELECT */
|
||||
/* #define USE_BSDSELECT */
|
||||
|
||||
/* and then if you defined UNIX you must also use one of these ways to control
|
||||
* the tty modes.
|
||||
*/
|
||||
! /* #define USE_TERMIO */
|
||||
! #define USE_SGTTY
|
||||
|
||||
/* if you defined TURBO_C you might want this too if screen io looks garbled */
|
||||
/* #define USE_ANSISYS */
|
||||
***************
|
||||
*** 199,209 ****
|
||||
seqa[0] = c;
|
||||
if (l > 1) {
|
||||
extern unsigned alarm();
|
||||
/* cautiously read rest of arrow sequence */
|
||||
got_alrm = 0;
|
||||
(void) signal (SIGALRM, on_alrm);
|
||||
alarm(2);
|
||||
! read (0, seqa+1, l-1);
|
||||
alarm(0);
|
||||
if (got_alrm)
|
||||
return (c);
|
||||
--- 199,217 ----
|
||||
seqa[0] = c;
|
||||
if (l > 1) {
|
||||
extern unsigned alarm();
|
||||
+ int ch_read, ch_expected, seqa_i;
|
||||
/* cautiously read rest of arrow sequence */
|
||||
got_alrm = 0;
|
||||
(void) signal (SIGALRM, on_alrm);
|
||||
alarm(2);
|
||||
! /* to make the arrow keys work with FreeBSD ... */
|
||||
! ch_expected = l-1;
|
||||
! seqa_i = 1;
|
||||
! while ((ch_read = read (0, seqa+seqa_i, ch_expected)) > 0 &&
|
||||
! ch_read < ch_expected) {
|
||||
! ch_expected -= ch_read;
|
||||
! seqa_i += ch_read;
|
||||
! }
|
||||
alarm(0);
|
||||
if (got_alrm)
|
||||
return (c);
|
36
astro/ephem/files/patch-ae
Normal file
36
astro/ephem/files/patch-ae
Normal file
@ -0,0 +1,36 @@
|
||||
*** listing.c.orig Tue Apr 15 01:07:37 1997
|
||||
--- listing.c Tue Apr 15 01:38:22 1997
|
||||
***************
|
||||
*** 12,22 ****
|
||||
|
||||
extern char *strcpy();
|
||||
|
||||
#ifdef VMS
|
||||
#include <perror.h>
|
||||
- #include <errno.h>
|
||||
#else
|
||||
extern char *sys_errlist[];
|
||||
extern errno;
|
||||
#endif
|
||||
|
||||
--- 12,31 ----
|
||||
|
||||
extern char *strcpy();
|
||||
|
||||
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
+ #if defined(VMS) || defined(unix)
|
||||
+ #include <errno.h>
|
||||
+ #endif
|
||||
+
|
||||
#ifdef VMS
|
||||
#include <perror.h>
|
||||
#else
|
||||
+ #ifndef BSD
|
||||
extern char *sys_errlist[];
|
||||
+ #endif
|
||||
extern errno;
|
||||
#endif
|
||||
|
33
astro/ephem/files/patch-af
Normal file
33
astro/ephem/files/patch-af
Normal file
@ -0,0 +1,33 @@
|
||||
*** main.c.orig Tue Apr 15 01:07:37 1997
|
||||
--- main.c Tue Apr 15 01:33:16 1997
|
||||
***************
|
||||
*** 16,22 ****
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <math.h>
|
||||
! #ifdef VMS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "astro.h"
|
||||
--- 16,22 ----
|
||||
#include <signal.h>
|
||||
#include <setjmp.h>
|
||||
#include <math.h>
|
||||
! #if defined(VMS) || defined(unix)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "astro.h"
|
||||
***************
|
||||
*** 51,57 ****
|
||||
--- 51,61 ----
|
||||
|
||||
static jmp_buf fpe_err_jmp; /* used to recover from SIGFPE */
|
||||
static char *cfgfile; /* !0 if -c used */
|
||||
+ #ifdef unix
|
||||
+ static char cfgdef[] = PREFIX "/share/ephem/ephem.cfg"; /* default configuration file name */
|
||||
+ #else
|
||||
static char cfgdef[] = "ephem.cfg"; /* default configuration file name */
|
||||
+ #endif
|
||||
static Now now; /* where when and how, right now */
|
||||
static double tminc; /* hrs to inc time by each loop; RTC means use clock */
|
||||
static int nstep; /* steps to go before stopping */
|
33
astro/ephem/files/patch-ag
Normal file
33
astro/ephem/files/patch-ag
Normal file
@ -0,0 +1,33 @@
|
||||
*** objx.c.orig Tue Apr 15 01:07:37 1997
|
||||
--- objx.c Tue Apr 15 01:33:17 1997
|
||||
***************
|
||||
*** 6,12 ****
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
! #ifdef VMS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "astro.h"
|
||||
--- 6,12 ----
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
#include <ctype.h>
|
||||
! #if defined(VMS) || defined(unix)
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
#include "astro.h"
|
||||
***************
|
||||
*** 16,22 ****
|
||||
--- 16,26 ----
|
||||
extern char *strcat(), *strcpy(), *strncpy(), *getenv();
|
||||
|
||||
static char *dbfile; /* !0 if set by -d option */
|
||||
+ #ifdef unix
|
||||
+ static char dbfdef[] = PREFIX "/share/ephem/ephem.db"; /* default database file name */
|
||||
+ #else
|
||||
static char dbfdef[] = "ephem.db"; /* default database file name */
|
||||
+ #endif
|
||||
|
||||
/* structures to describe objects of various types.
|
||||
*/
|
36
astro/ephem/files/patch-ah
Normal file
36
astro/ephem/files/patch-ah
Normal file
@ -0,0 +1,36 @@
|
||||
*** plot.c.orig Tue Apr 15 01:07:37 1997
|
||||
--- plot.c Tue Apr 15 02:42:45 1997
|
||||
***************
|
||||
*** 15,25 ****
|
||||
|
||||
extern char *strcpy();
|
||||
|
||||
#ifdef VMS
|
||||
#include <perror.h>
|
||||
- #include <errno.h>
|
||||
#else
|
||||
extern char *sys_errlist[];
|
||||
extern errno;
|
||||
#endif
|
||||
|
||||
--- 15,34 ----
|
||||
|
||||
extern char *strcpy();
|
||||
|
||||
+ #if (defined(__unix__) || defined(unix)) && !defined(USG)
|
||||
+ #include <sys/param.h>
|
||||
+ #endif
|
||||
+
|
||||
+ #if defined(VMS) || defined(unix)
|
||||
+ #include <errno.h>
|
||||
+ #endif
|
||||
+
|
||||
#ifdef VMS
|
||||
#include <perror.h>
|
||||
#else
|
||||
+ #ifndef BSD
|
||||
extern char *sys_errlist[];
|
||||
+ #endif
|
||||
extern errno;
|
||||
#endif
|
||||
|
28
astro/ephem/files/patch-ai
Normal file
28
astro/ephem/files/patch-ai
Normal file
@ -0,0 +1,28 @@
|
||||
*** time.c.orig Sat Mar 14 23:22:29 1992
|
||||
--- time.c Wed Apr 23 13:15:42 1997
|
||||
***************
|
||||
*** 13,20 ****
|
||||
* returning 0.
|
||||
*/
|
||||
|
||||
- #define TZB
|
||||
-
|
||||
#ifdef VMS
|
||||
#undef TZA
|
||||
#undef TZB
|
||||
--- 13,18 ----
|
||||
***************
|
||||
*** 62,68 ****
|
||||
--- 60,71 ----
|
||||
sex_dec (tp->tm_hour, tp->tm_min, tp->tm_sec, &hr);
|
||||
mjd = day + hr/24.0;
|
||||
tp = localtime (&c);
|
||||
+ #ifdef __FreeBSD__
|
||||
+ tz = -tp->tm_gmtoff/3600;
|
||||
+ strcpy(tznm, tp->tm_zone);
|
||||
+ #else
|
||||
settzstuff (tp->tm_isdst ? 1 : 0, np);
|
||||
+ #endif
|
||||
} else {
|
||||
/* if gmtime() doesn't work, we assume the timezone stuff won't
|
||||
* either, so we just use what it is and leave it alone. Some
|
19
astro/ephem/files/patch-aj
Normal file
19
astro/ephem/files/patch-aj
Normal file
@ -0,0 +1,19 @@
|
||||
*** version.c.orig Wed Apr 23 12:38:55 1997
|
||||
--- version.c Wed Apr 23 12:39:29 1997
|
||||
***************
|
||||
*** 214,220 ****
|
||||
"Jupiter's moons based on information in \"Astronomical Formulae for",
|
||||
"Calculators\" by Jean Meeus. Richmond, Va., U.S.A., Willmann-Bell, (c) 1982.",
|
||||
*/
|
||||
! "See the manual (Man.txt) for a list of references.",
|
||||
"",
|
||||
"type any key to continue..."
|
||||
};
|
||||
--- 214,220 ----
|
||||
"Jupiter's moons based on information in \"Astronomical Formulae for",
|
||||
"Calculators\" by Jean Meeus. Richmond, Va., U.S.A., Willmann-Bell, (c) 1982.",
|
||||
*/
|
||||
! "See the manual (" PREFIX "/share/ephem/Man.txt) for a list of references.",
|
||||
"",
|
||||
"type any key to continue..."
|
||||
};
|
1
astro/ephem/pkg-comment
Normal file
1
astro/ephem/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
an interactive terminal-based astronomical ephemeris program
|
6
astro/ephem/pkg-descr
Normal file
6
astro/ephem/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
Ephem is a program that displays ephemerides for all the planets plus any
|
||||
two additional objects. The additional objects may be fixed or specified
|
||||
via heliocentric elliptical, hyperbolic or parabolic orbital elements to
|
||||
accommodate solar system objects such as asteroids or comets.
|
||||
|
||||
Unlike xephem, ephem is working on a plain ascii terminal.
|
4
astro/ephem/pkg-plist
Normal file
4
astro/ephem/pkg-plist
Normal file
@ -0,0 +1,4 @@
|
||||
bin/ephem
|
||||
share/ephem/Man.txt
|
||||
share/ephem/ephem.cfg
|
||||
share/ephem/ephem.db
|
Loading…
Reference in New Issue
Block a user