summaryrefslogtreecommitdiff
path: root/misc/kstars/patches
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2013-06-23 19:09:14 +0000
committerjperkin <jperkin@pkgsrc.org>2013-06-23 19:09:14 +0000
commit382cb53b215804632ddd8bb4a48fcee0cbc24a00 (patch)
tree4c1d45120e5df6a0cd92da5d655d61c0f050a5d1 /misc/kstars/patches
parent006516e53fdef4a3a0859a8a23adc7d7ebe0269d (diff)
downloadpkgsrc-382cb53b215804632ddd8bb4a48fcee0cbc24a00.tar.gz
SunOS build fixes.
Diffstat (limited to 'misc/kstars/patches')
-rw-r--r--misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp33
-rw-r--r--misc/kstars/patches/patch-kstars_skyobjects_satellite.cpp14
-rw-r--r--misc/kstars/patches/patch-kstars_tools_altvstime.cpp15
-rw-r--r--misc/kstars/patches/patch-kstars_widgets_moonphasecalendarwidget.h15
4 files changed, 77 insertions, 0 deletions
diff --git a/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp b/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp
new file mode 100644
index 00000000000..42b01950b2f
--- /dev/null
+++ b/misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp
@@ -0,0 +1,33 @@
+$NetBSD: patch-kstars_fitsviewer_fitsimage.cpp,v 1.1 2013/06/23 19:09:15 jperkin Exp $
+
+Avoid "ambiguous call to overloaded function" errors.
+
+--- kstars/fitsviewer/fitsimage.cpp.orig 2013-05-03 04:38:11.831303171 +0000
++++ kstars/fitsviewer/fitsimage.cpp
+@@ -474,7 +474,7 @@ bool FITSImage::checkCollision(Edge* s1,
+ int diff_x=s1->x - s2->x;
+ int diff_y=s1->y - s2->y;
+
+- dis = abs( sqrt( diff_x*diff_x + diff_y*diff_y));
++ dis = abs( sqrt((float)diff_x*diff_x + diff_y*diff_y));
+ dis -= s1->width/2;
+ dis -= s2->width/2;
+
+@@ -857,7 +857,7 @@ void FITSImage::applyFilter(FITSScale ty
+ break;
+
+ case FITS_LOG:
+- coeff = max / log(1 + max);
++ coeff = max / log((float)1 + max);
+
+ for (int i=0; i < height; i++)
+ for (int j=0; j < width; j++)
+@@ -873,7 +873,7 @@ void FITSImage::applyFilter(FITSScale ty
+ break;
+
+ case FITS_SQRT:
+- coeff = max / sqrt(max);
++ coeff = max / sqrt((float)max);
+
+ for (int i=0; i < height; i++)
+ for (int j=0; j < width; j++)
diff --git a/misc/kstars/patches/patch-kstars_skyobjects_satellite.cpp b/misc/kstars/patches/patch-kstars_skyobjects_satellite.cpp
new file mode 100644
index 00000000000..6b286efb272
--- /dev/null
+++ b/misc/kstars/patches/patch-kstars_skyobjects_satellite.cpp
@@ -0,0 +1,14 @@
+$NetBSD: patch-kstars_skyobjects_satellite.cpp,v 1.1 2013/06/23 19:09:15 jperkin Exp $
+
+Avoid "sun" conflict.
+
+--- kstars/skyobjects/satellite.cpp.orig 2013-05-03 04:38:11.876302746 +0000
++++ kstars/skyobjects/satellite.cpp
+@@ -58,6 +58,7 @@
+ #define F 3.35281066474748e-3 // Flattening factor
+ #define MFACTOR 7.292115e-5
+
++#undef sun
+
+ Satellite::Satellite( const QString name, const QString line1, const QString line2 )
+ {
diff --git a/misc/kstars/patches/patch-kstars_tools_altvstime.cpp b/misc/kstars/patches/patch-kstars_tools_altvstime.cpp
new file mode 100644
index 00000000000..9904777f951
--- /dev/null
+++ b/misc/kstars/patches/patch-kstars_tools_altvstime.cpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-kstars_tools_altvstime.cpp,v 1.1 2013/06/23 19:09:15 jperkin Exp $
+
+Avoid "sun" conflict.
+
+--- kstars/tools/altvstime.cpp.orig 2013-05-03 04:38:11.880302708 +0000
++++ kstars/tools/altvstime.cpp
+@@ -45,6 +45,8 @@
+ #include "avtplotwidget.h"
+ #include "ui_altvstime.h"
+
++#undef sun
++
+ AltVsTimeUI::AltVsTimeUI( QWidget *p ) :
+ QFrame( p )
+ {
diff --git a/misc/kstars/patches/patch-kstars_widgets_moonphasecalendarwidget.h b/misc/kstars/patches/patch-kstars_widgets_moonphasecalendarwidget.h
new file mode 100644
index 00000000000..dcdcbc19751
--- /dev/null
+++ b/misc/kstars/patches/patch-kstars_widgets_moonphasecalendarwidget.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-kstars_widgets_moonphasecalendarwidget.h,v 1.1 2013/06/23 19:09:15 jperkin Exp $
+
+Avoid "sun" conflict.
+
+--- kstars/widgets/moonphasecalendarwidget.h.orig 2013-05-03 04:38:11.897302548 +0000
++++ kstars/widgets/moonphasecalendarwidget.h
+@@ -21,6 +21,8 @@
+ #include <QWidget>
+ #include <KDateTable>
+
++#undef sun
++
+ class KSMoon;
+ class KSSun;
+ class KStarsDateTime;