summaryrefslogtreecommitdiffstats
path: root/astro/libnova
diff options
context:
space:
mode:
authormnag <mnag@FreeBSD.org>2006-02-18 21:25:14 +0000
committermnag <mnag@FreeBSD.org>2006-02-18 21:25:14 +0000
commitaac5214afb95e17b83ef7f1d68d07e6f3f0f962c (patch)
tree12f9fbf070fa01d93040e2af51b30cc5783a2c80 /astro/libnova
parentf252bdbd4ac1b7646c3440080adb4363327440a8 (diff)
downloadFreeBSD-ports-aac5214afb95e17b83ef7f1d68d07e6f3f0f962c.zip
FreeBSD-ports-aac5214afb95e17b83ef7f1d68d07e6f3f0f962c.tar.gz
- Change nan("chars") to strtod("NAN(chars)", NULL) and remove dependency of gcc 3.3
- Bump PORTREVISION - portlint(1) PR: 93520 Submitted by: Frank W. Josellis <frank@dynamical-systems.org>
Diffstat (limited to 'astro/libnova')
-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 7d6fc13..df4ffa9 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 0000000..f5af5ce
--- /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;
OpenPOWER on IntegriCloud