aboutsummaryrefslogtreecommitdiff
path: root/astro/wmsolar
diff options
context:
space:
mode:
authorPatrick Li <pat@FreeBSD.org>2002-11-26 23:45:08 +0000
committerPatrick Li <pat@FreeBSD.org>2002-11-26 23:45:08 +0000
commit8f402d572e55cf65d0460c8bffaaf212ec85bfce (patch)
tree8c20e6d8c9ef06af87db8f03bed1cfdc401ca0a9 /astro/wmsolar
parent6ae40244a046ea1fa81928f8eb8cbebd66ae2c79 (diff)
downloadports-8f402d572e55cf65d0460c8bffaaf212ec85bfce.tar.gz
ports-8f402d572e55cf65d0460c8bffaaf212ec85bfce.zip
Notes
Diffstat (limited to 'astro/wmsolar')
-rw-r--r--astro/wmsolar/Makefile3
-rw-r--r--astro/wmsolar/files/patch-Vsop.h10
2 files changed, 12 insertions, 1 deletions
diff --git a/astro/wmsolar/Makefile b/astro/wmsolar/Makefile
index 2ca16e642381..31179392056b 100644
--- a/astro/wmsolar/Makefile
+++ b/astro/wmsolar/Makefile
@@ -16,9 +16,10 @@ WRKSRC= ${WRKDIR}/wmSolar
USE_X_PREFIX= yes
USE_XPM= yes
USE_GMAKE= yes
+USE_REINPLACE= yes
pre-patch:
- @${PERL} -pi.orig -e 's|values.h|float.h|; s|MAXDOUBLE|DBL_MAX|g' \
+ @${REINPLACE_CMD} -e 's|values.h|float.h|; s|MAXDOUBLE|DBL_MAX|g' \
${WRKSRC}/wmSolar.c
do-install:
diff --git a/astro/wmsolar/files/patch-Vsop.h b/astro/wmsolar/files/patch-Vsop.h
new file mode 100644
index 000000000000..517afb91984b
--- /dev/null
+++ b/astro/wmsolar/files/patch-Vsop.h
@@ -0,0 +1,10 @@
+--- Vsop.h.orig Tue Nov 26 15:41:59 2002
++++ Vsop.h Tue Nov 26 15:42:13 2002
+@@ -12,6 +12,7 @@
+ #define VSOP__H
+
+ #include "PlanetData.h" // for enum Planet
++#include <math.h>
+
+ // * * * * * simple support structs * * * * *
+