aboutsummaryrefslogtreecommitdiff
path: root/astro
diff options
context:
space:
mode:
authorMarcus Alves Grando <mnag@FreeBSD.org>2006-02-18 21:25:14 +0000
committerMarcus Alves Grando <mnag@FreeBSD.org>2006-02-18 21:25:14 +0000
commitdb8ed14dafbe423ce24a2a67cb0de4ceca5a8e79 (patch)
tree4f1d658aaf57339729cb74e2152ec645321e765d /astro
parent46095567897cb956c6eccf55a074aecef12a78e7 (diff)
downloadports-db8ed14dafbe423ce24a2a67cb0de4ceca5a8e79.tar.gz
ports-db8ed14dafbe423ce24a2a67cb0de4ceca5a8e79.zip
Notes
Diffstat (limited to 'astro')
-rw-r--r--astro/libnova/Makefile7
-rw-r--r--astro/libnova/files/patch-src_hyperbolic_motion.c17
2 files changed, 20 insertions, 4 deletions
diff --git a/astro/libnova/Makefile b/astro/libnova/Makefile
index 7d6fc138718b..df4ffa9649db 100644
--- a/astro/libnova/Makefile
+++ b/astro/libnova/Makefile
@@ -8,6 +8,7 @@
PORTNAME= libnova
PORTVERSION= 0.11.0
+PORTREVISION= 1
CATEGORIES= astro
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -16,15 +17,13 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Astronomical Calculation Library
USE_GNOME= gnometarget lthack
-USE_REINPLACE= yes
USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes
-USE_GCC= 3.3
.include <bsd.port.pre.mk>
-.if ${OSVERSION}<503000
-IGNORE= Requires FreeBSD 5.3 or higher
+.if ${OSVERSION} < 503000
+IGNORE= requires FreeBSD 5.3 or higher
.endif
post-patch:
diff --git a/astro/libnova/files/patch-src_hyperbolic_motion.c b/astro/libnova/files/patch-src_hyperbolic_motion.c
new file mode 100644
index 000000000000..f5af5ce7154c
--- /dev/null
+++ b/astro/libnova/files/patch-src_hyperbolic_motion.c
@@ -0,0 +1,17 @@
+--- src/hyperbolic_motion.c.orig Tue Jul 5 11:09:22 2005
++++ src/hyperbolic_motion.c Sat Feb 18 02:17:12 2006
+@@ -69,12 +69,12 @@
+ F = Z1 * G1;
+ Q3 = Q3 + F;
+ if (Z > 100 || fabs(F) > 10000)
+- return nan("0");
++ return strtod("NAN(0)", NULL);
+ if (fabs(F) > PREC)
+ goto next_z;
+ L++;
+ if (L > 100)
+- return nan("0");
++ return strtod("NAN(0)", NULL);
+ do
+ {
+ S1 = S;