Update to 14Aug2014
This commit is contained in:
parent
7ce0541e5a
commit
eecf78ee8f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=471445
@ -2,10 +2,10 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= phoon
|
||||
PORTVERSION= 2005
|
||||
PORTVERSION= 2014
|
||||
CATEGORIES= astro
|
||||
MASTER_SITES= http://www.acme.com/software/phoon/
|
||||
PKGNAMESUFFIX= _29jun
|
||||
PKGNAMESUFFIX= _14Aug
|
||||
DISTNAME= ${PORTNAME}${PKGNAMESUFFIX}${PORTVERSION}
|
||||
|
||||
MAINTAINER= xride@FreeBSD.org
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (phoon_29jun2005.tar.gz) = 3578bc3e7d364500eb39dfe135ce63c3ead41dcc67a22d19ba13037e107c5ace
|
||||
SIZE (phoon_29jun2005.tar.gz) = 17450
|
||||
TIMESTAMP = 1527981336
|
||||
SHA256 (phoon_14Aug2014.tar.gz) = bad9b5e37ccaf76a10391cc1fa4aff9654e54814be652b443853706db18ad7c1
|
||||
SIZE (phoon_14Aug2014.tar.gz) = 17693
|
||||
|
@ -1,6 +1,6 @@
|
||||
--- Makefile.orig 2003-01-21 03:04:36 UTC
|
||||
--- Makefile.orig 2014-08-11 19:14:07 UTC
|
||||
+++ Makefile
|
||||
@@ -1,15 +1,15 @@
|
||||
@@ -1,17 +1,14 @@
|
||||
# Makefile for phoon
|
||||
|
||||
-BINDIR = /usr/local/bin
|
||||
@ -11,17 +11,18 @@
|
||||
DEFINES = -DOS_BSD
|
||||
#DEFINES = -DOS_SYSV
|
||||
|
||||
-CC = gcc
|
||||
-CFLAGS = -O $(DEFINES)
|
||||
+CC ?= gcc
|
||||
+CFLAGS += $(DEFINES)
|
||||
-CC = cc
|
||||
-CFLAGS = -O $(DEFINES) -ansi -pedantic -U__STRICT_ANSI__ -Wall -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wno-long-long
|
||||
+CC ?= cc
|
||||
+CFLAGS += $(DEFINES) -ansi -pedantic -Wall -Wno-long-long -Wmissing-prototypes -Wstrict-prototypes
|
||||
|
||||
-LDFLAGS = -s
|
||||
+#LDFLAGS = -s
|
||||
|
||||
|
||||
-
|
||||
-
|
||||
all: phoon
|
||||
@@ -24,7 +24,7 @@ date_parse.o: date_parse.h
|
||||
|
||||
phoon: phoon.o date_parse.o astro.o
|
||||
@@ -24,7 +21,7 @@ date_parse.o: date_parse.h
|
||||
astro.o: astro.h
|
||||
|
||||
install: all
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- astro.h.orig 2003-01-28 00:55:32 UTC
|
||||
+++ astro.h
|
||||
@@ -43,4 +43,4 @@ extern void phasehunt2( double sdate, do
|
||||
*/
|
||||
extern double phase( double pdate, double* pphase, double* mage, double* dist, double* angdia, double* sudist, double* suangdia );
|
||||
|
||||
-#endif _ASTRO_H_
|
||||
+#endif
|
@ -1,11 +1,11 @@
|
||||
--- phoon.c.orig 2005-05-20 19:10:24 UTC
|
||||
--- phoon.c.orig 2014-06-29 23:07:16 UTC
|
||||
+++ phoon.c
|
||||
@@ -354,7 +354,7 @@ putmoon( time_t t, int numlines, char* a
|
||||
struct tm* tmP;
|
||||
double jd, pctphase, angphase, cphase, aom, cdist, cangdia, csund, csuang;
|
||||
double phases[2], which[2];
|
||||
- long clocknow;
|
||||
+ time_t clocknow;
|
||||
int atflrlen, atflridx, numcols, lin, col, midlin;
|
||||
double mcap, yrad, xrad, y, xright, xleft;
|
||||
int colright, colleft;
|
||||
@@ -534,7 +534,7 @@ main( int argc, char** argv )
|
||||
if ( argc - argn == 0 )
|
||||
{
|
||||
/* No arguments present - use the current date and time. */
|
||||
- t = time( (time_t) 0 );
|
||||
+ t = time( NULL );
|
||||
}
|
||||
else if ( argc - argn == 1 || argc - argn == 2 || argc - argn == 3 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user