diff options
author | jperkin <jperkin> | 2013-06-23 19:09:14 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2013-06-23 19:09:14 +0000 |
commit | 2da18389355a44b2d067c3a947b78f7cfdaa06fb (patch) | |
tree | 4c1d45120e5df6a0cd92da5d655d61c0f050a5d1 | |
parent | 0fdcfcdfe698a83638d7d3126dd3d0d5cd599d2c (diff) | |
download | pkgsrc-2da18389355a44b2d067c3a947b78f7cfdaa06fb.tar.gz |
SunOS build fixes.
-rw-r--r-- | misc/kstars/distinfo | 6 | ||||
-rw-r--r-- | misc/kstars/patches/patch-kstars_fitsviewer_fitsimage.cpp | 33 | ||||
-rw-r--r-- | misc/kstars/patches/patch-kstars_skyobjects_satellite.cpp | 14 | ||||
-rw-r--r-- | misc/kstars/patches/patch-kstars_tools_altvstime.cpp | 15 | ||||
-rw-r--r-- | misc/kstars/patches/patch-kstars_widgets_moonphasecalendarwidget.h | 15 |
5 files changed, 82 insertions, 1 deletions
diff --git a/misc/kstars/distinfo b/misc/kstars/distinfo index 1ed8ffbd662..48069c8f738 100644 --- a/misc/kstars/distinfo +++ b/misc/kstars/distinfo @@ -1,6 +1,10 @@ -$NetBSD: distinfo,v 1.8 2013/05/21 12:49:35 markd Exp $ +$NetBSD: distinfo,v 1.9 2013/06/23 19:09:14 jperkin Exp $ SHA1 (kstars-4.10.3.tar.xz) = 32490b846b468dc9a8393c0a70cb0d0e805163a8 RMD160 (kstars-4.10.3.tar.xz) = bc37f90cb0590b87126b7b8a55ec922de00ee59e Size (kstars-4.10.3.tar.xz) = 12490412 bytes +SHA1 (patch-kstars_fitsviewer_fitsimage.cpp) = f18ceecfa2267d0957f7f5d3b6e609a2d861b375 SHA1 (patch-kstars_skyobjects_ksmoon.cpp) = 23d31289ca18075afb38324b72ca41a1287aa9b3 +SHA1 (patch-kstars_skyobjects_satellite.cpp) = a30cd6139fff8e5968d704b901dd2a059548d527 +SHA1 (patch-kstars_tools_altvstime.cpp) = 24b8d4c31216fd08353e29825c6213349cfa6287 +SHA1 (patch-kstars_widgets_moonphasecalendarwidget.h) = c3c507447ea4586b2d1224e49cb4c44ba0a13918 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; |