From db8ed14dafbe423ce24a2a67cb0de4ceca5a8e79 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Sat, 18 Feb 2006 21:25:14 +0000 Subject: [PATCH] - 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 --- astro/libnova/Makefile | 7 +++---- .../libnova/files/patch-src_hyperbolic_motion.c | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 astro/libnova/files/patch-src_hyperbolic_motion.c 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 -.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;