diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1997-06-03 09:14:13 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1997-06-03 09:14:13 +0000 |
commit | 7a509615924c7b68a2eb763e0c1d0c12195097c6 (patch) | |
tree | 9fbd0279c1ccc383dcc519a1ddda5bee97930105 /astro | |
parent | b991ef1dc23b7318a86c62cb7530faff2f4da3cd (diff) | |
download | ports-7a509615924c7b68a2eb763e0c1d0c12195097c6.tar.gz ports-7a509615924c7b68a2eb763e0c1d0c12195097c6.zip |
Notes
Diffstat (limited to 'astro')
-rw-r--r-- | astro/ephem/Makefile | 33 | ||||
-rw-r--r-- | astro/ephem/distinfo | 1 | ||||
-rw-r--r-- | astro/ephem/files/patch-aa | 18 | ||||
-rw-r--r-- | astro/ephem/files/patch-ab | 19 | ||||
-rw-r--r-- | astro/ephem/files/patch-ac | 19 | ||||
-rw-r--r-- | astro/ephem/files/patch-ad | 70 | ||||
-rw-r--r-- | astro/ephem/files/patch-ae | 36 | ||||
-rw-r--r-- | astro/ephem/files/patch-af | 33 | ||||
-rw-r--r-- | astro/ephem/files/patch-ag | 33 | ||||
-rw-r--r-- | astro/ephem/files/patch-ah | 36 | ||||
-rw-r--r-- | astro/ephem/files/patch-ai | 28 | ||||
-rw-r--r-- | astro/ephem/files/patch-aj | 19 | ||||
-rw-r--r-- | astro/ephem/pkg-comment | 1 | ||||
-rw-r--r-- | astro/ephem/pkg-descr | 6 | ||||
-rw-r--r-- | astro/ephem/pkg-plist | 4 |
15 files changed, 356 insertions, 0 deletions
diff --git a/astro/ephem/Makefile b/astro/ephem/Makefile new file mode 100644 index 000000000000..c5e916f6e1a8 --- /dev/null +++ b/astro/ephem/Makefile @@ -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> diff --git a/astro/ephem/distinfo b/astro/ephem/distinfo new file mode 100644 index 000000000000..1d336b1f5658 --- /dev/null +++ b/astro/ephem/distinfo @@ -0,0 +1 @@ +MD5 (ephem_4.28_unix.tar.gz) = ee6905075036f3894a8c93bac114bfb5 diff --git a/astro/ephem/files/patch-aa b/astro/ephem/files/patch-aa new file mode 100644 index 000000000000..fc428282aad2 --- /dev/null +++ b/astro/ephem/files/patch-aa @@ -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 \ diff --git a/astro/ephem/files/patch-ab b/astro/ephem/files/patch-ab new file mode 100644 index 000000000000..10d6dd212b7c --- /dev/null +++ b/astro/ephem/files/patch-ab @@ -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" diff --git a/astro/ephem/files/patch-ac b/astro/ephem/files/patch-ac new file mode 100644 index 000000000000..da8e096589ce --- /dev/null +++ b/astro/ephem/files/patch-ac @@ -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" diff --git a/astro/ephem/files/patch-ad b/astro/ephem/files/patch-ad new file mode 100644 index 000000000000..586cc5fcb7c4 --- /dev/null +++ b/astro/ephem/files/patch-ad @@ -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); diff --git a/astro/ephem/files/patch-ae b/astro/ephem/files/patch-ae new file mode 100644 index 000000000000..34eb5ed9f66b --- /dev/null +++ b/astro/ephem/files/patch-ae @@ -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 + diff --git a/astro/ephem/files/patch-af b/astro/ephem/files/patch-af new file mode 100644 index 000000000000..bd080446ff49 --- /dev/null +++ b/astro/ephem/files/patch-af @@ -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 */ diff --git a/astro/ephem/files/patch-ag b/astro/ephem/files/patch-ag new file mode 100644 index 000000000000..c96262ff59e9 --- /dev/null +++ b/astro/ephem/files/patch-ag @@ -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. + */ diff --git a/astro/ephem/files/patch-ah b/astro/ephem/files/patch-ah new file mode 100644 index 000000000000..aace63ed1915 --- /dev/null +++ b/astro/ephem/files/patch-ah @@ -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 + diff --git a/astro/ephem/files/patch-ai b/astro/ephem/files/patch-ai new file mode 100644 index 000000000000..4e21c91b8bd6 --- /dev/null +++ b/astro/ephem/files/patch-ai @@ -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 diff --git a/astro/ephem/files/patch-aj b/astro/ephem/files/patch-aj new file mode 100644 index 000000000000..6737bfb06113 --- /dev/null +++ b/astro/ephem/files/patch-aj @@ -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..." + }; diff --git a/astro/ephem/pkg-comment b/astro/ephem/pkg-comment new file mode 100644 index 000000000000..954a3b9b8224 --- /dev/null +++ b/astro/ephem/pkg-comment @@ -0,0 +1 @@ +an interactive terminal-based astronomical ephemeris program diff --git a/astro/ephem/pkg-descr b/astro/ephem/pkg-descr new file mode 100644 index 000000000000..5fa74feab28e --- /dev/null +++ b/astro/ephem/pkg-descr @@ -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. diff --git a/astro/ephem/pkg-plist b/astro/ephem/pkg-plist new file mode 100644 index 000000000000..f7e093da041d --- /dev/null +++ b/astro/ephem/pkg-plist @@ -0,0 +1,4 @@ +bin/ephem +share/ephem/Man.txt +share/ephem/ephem.cfg +share/ephem/ephem.db |