mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Update to 0.12.0.
Submitted by: Frank W. Josellis <frank dynamical-systems org> PR: ports/102119
This commit is contained in:
parent
f030a858de
commit
d1385d97b1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=170949
@ -7,25 +7,30 @@
|
||||
#
|
||||
|
||||
PORTNAME= libnova
|
||||
PORTVERSION= 0.11.0
|
||||
PORTREVISION= 2
|
||||
PORTVERSION= 0.12.0
|
||||
CATEGORIES= astro
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}-1
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
COMMENT= Astronomical Calculation Library
|
||||
|
||||
USE_GNOME= gnometarget lthack
|
||||
GNU_CONFIGURE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} < 503000
|
||||
IGNORE= requires FreeBSD 5.3 or higher
|
||||
.endif
|
||||
|
||||
post-extract:
|
||||
@${TAR} xf ${WRKDIR}/${PORTNAME}/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} -C ${WRKDIR}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|^CFLAGS=|#CFLAGS=|g' ${WRKSRC}/configure
|
||||
|
||||
|
@ -1,3 +1,3 @@
|
||||
MD5 (libnova-0.11.0.tar.gz) = 3ebe93b4ba772860d1dcd06e17e759f7
|
||||
SHA256 (libnova-0.11.0.tar.gz) = 94f3bc29c98692606cb8a62e138f02a1f040d121c5d684cca7e28c2c1b045ae2
|
||||
SIZE (libnova-0.11.0.tar.gz) = 1529667
|
||||
MD5 (libnova_0.12.0-1.tar.gz) = cca5972306b032b58413ee30b64e18a4
|
||||
SHA256 (libnova_0.12.0-1.tar.gz) = d7d0a00bf3fd0fc6819277d3854b80c4c1bd0905b3d9f1d8f296455e42c9fde3
|
||||
SIZE (libnova_0.12.0-1.tar.gz) = 3033093
|
||||
|
58
astro/libnova/files/patch-src_precession.c
Normal file
58
astro/libnova/files/patch-src_precession.c
Normal file
@ -0,0 +1,58 @@
|
||||
--- src/precession.c.orig Tue Jan 10 23:35:08 2006
|
||||
+++ src/precession.c Tue Aug 15 18:03:50 2006
|
||||
@@ -56,21 +56,21 @@
|
||||
theta = ln_deg_to_rad (theta);
|
||||
|
||||
/* calc A,B,C equ 20.4 */
|
||||
- A = cosl (mean_dec) * sinl (mean_ra + zeta);
|
||||
- B = cosl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) - sinl (theta) * sinl (mean_dec);
|
||||
- C = sinl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) + cosl (theta) * sinl (mean_dec);
|
||||
+ A = cos (mean_dec) * sin (mean_ra + zeta);
|
||||
+ B = cos (theta) * cos (mean_dec) * cos (mean_ra + zeta) - sin (theta) * sin (mean_dec);
|
||||
+ C = sin (theta) * cos (mean_dec) * cos (mean_ra + zeta) + cos (theta) * sin (mean_dec);
|
||||
|
||||
- ra = atan2l (A,B) + eta;
|
||||
+ ra = atan2 (A,B) + eta;
|
||||
|
||||
/* check for object near celestial pole */
|
||||
if (mean_dec > (0.4 * M_PI) || mean_dec < (-0.4 * M_PI)) {
|
||||
/* close to pole */
|
||||
- dec = acosl (sqrt(A * A + B * B));
|
||||
+ dec = acos (sqrt(A * A + B * B));
|
||||
if (mean_dec < 0.)
|
||||
dec *= -1; /* 0 <= acos() <= PI */
|
||||
} else {
|
||||
/* not close to pole */
|
||||
- dec = asinl (C);
|
||||
+ dec = asin (C);
|
||||
}
|
||||
|
||||
/* change to degrees */
|
||||
@@ -114,21 +114,21 @@
|
||||
theta = ln_deg_to_rad (theta);
|
||||
|
||||
/* calc A,B,C equ 20.4 */
|
||||
- A = cosl (mean_dec) * sinl (mean_ra + zeta);
|
||||
- B = cosl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) - sinl (theta) * sinl (mean_dec);
|
||||
- C = sinl (theta) * cosl (mean_dec) * cosl (mean_ra + zeta) + cosl (theta) * sinl (mean_dec);
|
||||
+ A = cos (mean_dec) * sin (mean_ra + zeta);
|
||||
+ B = cos (theta) * cos (mean_dec) * cos (mean_ra + zeta) - sin (theta) * sin (mean_dec);
|
||||
+ C = sin (theta) * cos (mean_dec) * cos (mean_ra + zeta) + cos (theta) * sin (mean_dec);
|
||||
|
||||
- ra = atan2l (A,B) + eta;
|
||||
+ ra = atan2 (A,B) + eta;
|
||||
|
||||
/* check for object near celestial pole */
|
||||
if (mean_dec > (0.4 * M_PI) || mean_dec < (-0.4 * M_PI)) {
|
||||
/* close to pole */
|
||||
- dec = acosl (sqrt(A * A + B * B));
|
||||
+ dec = acos (sqrt(A * A + B * B));
|
||||
if (mean_dec < 0.)
|
||||
dec *= -1; /* 0 <= acos() <= PI */
|
||||
} else {
|
||||
/* not close to pole */
|
||||
- dec = asinl (C);
|
||||
+ dec = asin (C);
|
||||
}
|
||||
|
||||
/* change to degrees */
|
@ -1,38 +1,40 @@
|
||||
bin/libnovaconfig
|
||||
include/libnova/julian_day.h
|
||||
include/libnova/dynamical_time.h
|
||||
include/libnova/sidereal_time.h
|
||||
include/libnova/transform.h
|
||||
include/libnova/nutation.h
|
||||
include/libnova/libnova.h
|
||||
include/libnova/aberration.h
|
||||
include/libnova/airmass.h
|
||||
include/libnova/angular_separation.h
|
||||
include/libnova/apparent_position.h
|
||||
include/libnova/solar.h
|
||||
include/libnova/precession.h
|
||||
include/libnova/proper_motion.h
|
||||
include/libnova/mercury.h
|
||||
include/libnova/venus.h
|
||||
include/libnova/earth.h
|
||||
include/libnova/mars.h
|
||||
include/libnova/jupiter.h
|
||||
include/libnova/saturn.h
|
||||
include/libnova/uranus.h
|
||||
include/libnova/neptune.h
|
||||
include/libnova/pluto.h
|
||||
include/libnova/vsop87.h
|
||||
include/libnova/lunar.h
|
||||
include/libnova/elliptic_motion.h
|
||||
include/libnova/asteroid.h
|
||||
include/libnova/comet.h
|
||||
include/libnova/dynamical_time.h
|
||||
include/libnova/earth.h
|
||||
include/libnova/elliptic_motion.h
|
||||
include/libnova/hyperbolic_motion.h
|
||||
include/libnova/julian_day.h
|
||||
include/libnova/jupiter.h
|
||||
include/libnova/libnova.h
|
||||
include/libnova/ln_types.h
|
||||
include/libnova/lunar.h
|
||||
include/libnova/mars.h
|
||||
include/libnova/mercury.h
|
||||
include/libnova/neptune.h
|
||||
include/libnova/nutation.h
|
||||
include/libnova/parabolic_motion.h
|
||||
include/libnova/parallax.h
|
||||
include/libnova/pluto.h
|
||||
include/libnova/precession.h
|
||||
include/libnova/proper_motion.h
|
||||
include/libnova/refraction.h
|
||||
include/libnova/rise_set.h
|
||||
include/libnova/angular_separation.h
|
||||
include/libnova/ln_types.h
|
||||
include/libnova/saturn.h
|
||||
include/libnova/sidereal_time.h
|
||||
include/libnova/solar.h
|
||||
include/libnova/transform.h
|
||||
include/libnova/uranus.h
|
||||
include/libnova/utility.h
|
||||
include/libnova/hyperbolic_motion.h
|
||||
lib/libnova-0.11.so
|
||||
lib/libnova-0.11.so.0
|
||||
include/libnova/venus.h
|
||||
include/libnova/vsop87.h
|
||||
lib/libnova-0.12.so
|
||||
lib/libnova-0.12.so.0
|
||||
lib/libnova.a
|
||||
lib/libnova.la
|
||||
lib/libnova.so
|
||||
|
Loading…
Reference in New Issue
Block a user