diff options
author | ryoon <ryoon@pkgsrc.org> | 2018-02-13 12:45:02 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2018-02-13 12:45:02 +0000 |
commit | 5bc18d129f27be73d10e5bdb12a442c598e39a6f (patch) | |
tree | 026534245105c20f21602a665c3347fe3a061f92 /x11/xplanet | |
parent | ac583b52fa653f81d87ba635a4e7eabdf277ec4a (diff) | |
download | pkgsrc-5bc18d129f27be73d10e5bdb12a442c598e39a6f.tar.gz |
Update to 1.3.0
* Fix build with GCC 6 with patches from Debian
Changelog:
Version 1.3.0 (released 18 Feb 2012)
* add "outlined" keyword to marker files
* update JPL ephemeris code for 64 bit machines
* add bump_shade config file parameter
* add opacity keyword for markers
* implement Rayleigh scattering
Diffstat (limited to 'x11/xplanet')
-rw-r--r-- | x11/xplanet/Makefile | 5 | ||||
-rw-r--r-- | x11/xplanet/PLIST | 4 | ||||
-rw-r--r-- | x11/xplanet/distinfo | 16 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_libannotate_addArcs.cpp | 40 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_libannotate_addMarkers.cpp | 43 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_libannotate_addSatellites.cpp | 50 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_libmultiple_RayleighScattering.cpp | 46 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_libmultiple_drawStars.cpp | 18 | ||||
-rw-r--r-- | x11/xplanet/patches/patch-src_readConfig.cpp | 20 |
9 files changed, 233 insertions, 9 deletions
diff --git a/x11/xplanet/Makefile b/x11/xplanet/Makefile index c2c6054397e..b6f5c2c3724 100644 --- a/x11/xplanet/Makefile +++ b/x11/xplanet/Makefile @@ -1,7 +1,6 @@ -# $NetBSD: Makefile,v 1.80 2017/02/12 06:26:17 ryoon Exp $ +# $NetBSD: Makefile,v 1.81 2018/02/13 12:45:02 ryoon Exp $ -DISTNAME= xplanet-1.2.2 -PKGREVISION= 27 +DISTNAME= xplanet-1.3.0 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xplanet/} diff --git a/x11/xplanet/PLIST b/x11/xplanet/PLIST index d6079b2a940..c12cd3b2110 100644 --- a/x11/xplanet/PLIST +++ b/x11/xplanet/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.9 2011/04/04 11:41:28 adam Exp $ +@comment $NetBSD: PLIST,v 1.10 2018/02/13 12:45:02 ryoon Exp $ bin/xplanet man/man1/xplanet.1 share/xplanet/arcs/README @@ -35,6 +35,8 @@ share/xplanet/rgb.txt share/xplanet/satellites/README share/xplanet/satellites/iss share/xplanet/satellites/iss.tle +share/xplanet/scattering/README +share/xplanet/scattering/earthRayleigh share/xplanet/spice/README share/xplanet/spice/asteroids share/xplanet/spice/asteroids.krn diff --git a/x11/xplanet/distinfo b/x11/xplanet/distinfo index e8c98b9741d..67f25055a24 100644 --- a/x11/xplanet/distinfo +++ b/x11/xplanet/distinfo @@ -1,7 +1,13 @@ -$NetBSD: distinfo,v 1.20 2015/11/04 03:29:10 agc Exp $ +$NetBSD: distinfo,v 1.21 2018/02/13 12:45:02 ryoon Exp $ -SHA1 (xplanet-1.2.2.tar.gz) = 3c9cc4be7cd87121884162204eff376af2fc03e3 -RMD160 (xplanet-1.2.2.tar.gz) = 431c9223b2b122599a8c4bdca18c17fea0dcd5ab -SHA512 (xplanet-1.2.2.tar.gz) = 1a5dbad62b79adce28239615e3a2fd00300fca085f9400f2735c5dc015f06c63e182ed0d78399324bf6049374f2c034e6026a4054f26c34e11024b956695a53f -Size (xplanet-1.2.2.tar.gz) = 1217169 bytes +SHA1 (xplanet-1.3.0.tar.gz) = 7c5208b501b441a0184cbb334a5658d0309d7dac +RMD160 (xplanet-1.3.0.tar.gz) = b5ba6239019669668aeb7f63391aa850cc3dd8b7 +SHA512 (xplanet-1.3.0.tar.gz) = c9f0db21c457d0702f8b1fb6d632838f45e80ea45b9cade80d6ab0ae956fdca03cfeed9582548c69b349a354afc27308309656d7e06ac46bc416c3e1038f8efd +Size (xplanet-1.3.0.tar.gz) = 1227385 bytes +SHA1 (patch-src_libannotate_addArcs.cpp) = 5d2ba7c0df6989e0b0b838fccbc73fe7a17ba91c +SHA1 (patch-src_libannotate_addMarkers.cpp) = 9c05d3b308b6a957b8af7f8a05ba49a608f5120e +SHA1 (patch-src_libannotate_addSatellites.cpp) = 7c8976a3e88ebac7e4d9b59a38f98f87b9d04f57 SHA1 (patch-src_libimage_gif.c) = 6c107bd1f733fe82f2b88af8ad778e0fe5aea5bd +SHA1 (patch-src_libmultiple_RayleighScattering.cpp) = 3a64033dc0c6915c9cd2eed2e506dd4c802138c9 +SHA1 (patch-src_libmultiple_drawStars.cpp) = b6a3f3995f4f1ac77660fdad64524ef6a48c4d50 +SHA1 (patch-src_readConfig.cpp) = c1a46209dfcbb6a37b6c7ff90f633a6450fbd5d9 diff --git a/x11/xplanet/patches/patch-src_libannotate_addArcs.cpp b/x11/xplanet/patches/patch-src_libannotate_addArcs.cpp new file mode 100644 index 00000000000..00c5e3134ee --- /dev/null +++ b/x11/xplanet/patches/patch-src_libannotate_addArcs.cpp @@ -0,0 +1,40 @@ +$NetBSD: patch-src_libannotate_addArcs.cpp,v 1.1 2018/02/13 12:45:02 ryoon Exp $ + +--- src/libannotate/addArcs.cpp.orig 2008-11-13 23:43:42.000000000 +0000 ++++ src/libannotate/addArcs.cpp +@@ -258,10 +258,14 @@ addArcs(PlanetProperties *planetProperti + { + ifstream inFile(arcFile.c_str()); + char *line = new char[MAX_LINE_LENGTH]; +- while (inFile.getline (line, MAX_LINE_LENGTH, '\n') != NULL) +- readArcFile(line, planet, view, projection, +- planetProperties, annotationMap); +- ++ while (1) ++ { ++ inFile.getline (line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ readArcFile(line, planet, view, projection, ++ planetProperties, annotationMap); ++ } + inFile.close(); + delete [] line; + } +@@ -292,9 +296,13 @@ addArcs(View *view, multimap<double, Ann + { + ifstream inFile(arcFile.c_str()); + char *line = new char[256]; +- while (inFile.getline (line, 256, '\n') != NULL) +- readArcFile(line, NULL, view, NULL, NULL, annotationMap); +- ++ while (1) ++ { ++ inFile.getline (line, 256, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ readArcFile(line, NULL, view, NULL, NULL, annotationMap); ++ } + inFile.close(); + delete [] line; + } diff --git a/x11/xplanet/patches/patch-src_libannotate_addMarkers.cpp b/x11/xplanet/patches/patch-src_libannotate_addMarkers.cpp new file mode 100644 index 00000000000..23826c63f29 --- /dev/null +++ b/x11/xplanet/patches/patch-src_libannotate_addMarkers.cpp @@ -0,0 +1,43 @@ +$NetBSD: patch-src_libannotate_addMarkers.cpp,v 1.1 2018/02/13 12:45:02 ryoon Exp $ + +--- src/libannotate/addMarkers.cpp.orig 2011-11-15 01:44:24.000000000 +0000 ++++ src/libannotate/addMarkers.cpp +@@ -423,13 +423,16 @@ addMarkers(PlanetProperties *planetPrope + { + ifstream inFile(markerFile.c_str()); + char *line = new char[MAX_LINE_LENGTH]; +- while (inFile.getline (line, MAX_LINE_LENGTH, '\n') != NULL) ++ while (1) + { + unsigned char color[3]; + memcpy(color, planetProperties->MarkerColor(), 3); + string font(planetProperties->MarkerFont()); + int fontSize(planetProperties->MarkerFontSize()); + ++ inFile.getline (line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; + readMarkerFile(line, planet, pixel_radius, X, Y, Z, + view, projection, width, height, + color, font, fontSize, +@@ -469,13 +472,18 @@ addMarkers(View *view, const int width, + { + ifstream inFile(markerFile.c_str()); + char *line = new char[MAX_LINE_LENGTH]; +- while (inFile.getline (line, MAX_LINE_LENGTH, '\n') != NULL) +- { ++ while (1) ++ { ++ inFile.getline (line, MAX_LINE_LENGTH, '\n'); ++ + unsigned char color[3]; + memcpy(color, options->Color(), 3); + string font(options->Font()); + int fontSize(options->FontSize()); + ++ if (inFile.eof() || inFile.fail()) ++ break; ++ + readMarkerFile(line, NULL, 0, 0, 0, 0, + view, NULL, width, height, + color, font, fontSize, 1.0, diff --git a/x11/xplanet/patches/patch-src_libannotate_addSatellites.cpp b/x11/xplanet/patches/patch-src_libannotate_addSatellites.cpp new file mode 100644 index 00000000000..0daaa073237 --- /dev/null +++ b/x11/xplanet/patches/patch-src_libannotate_addSatellites.cpp @@ -0,0 +1,50 @@ +$NetBSD: patch-src_libannotate_addSatellites.cpp,v 1.1 2018/02/13 12:45:02 ryoon Exp $ + +--- src/libannotate/addSatellites.cpp.orig 2010-07-30 21:49:06.000000000 +0000 ++++ src/libannotate/addSatellites.cpp +@@ -488,11 +488,23 @@ loadSatelliteVector(PlanetProperties *pl + { + ifstream inFile(tleFile.c_str()); + char lines[3][80]; +- while (inFile.getline(lines[0], 80) != NULL) +- { +- if ((inFile.getline(lines[1], 80) == NULL) +- || (inFile.getline(lines[2], 80) == NULL)) +- { ++ bool malformed_file = false; ++ while (1) ++ { ++ inFile.getline(lines[0], 80); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ inFile.getline(lines[1], 80); ++ if (inFile.eof() || inFile.fail()) ++ malformed_file = true; ++ else ++ { ++ inFile.getline(lines[2], 80); ++ if (inFile.eof() || inFile.fail()) ++ malformed_file = true; ++ } ++ if (malformed_file) ++ { + ostringstream errStr; + errStr << "Malformed TLE file (" << tleFile << ")?\n"; + xpWarn(errStr.str(), __FILE__, __LINE__); +@@ -542,10 +554,14 @@ addSatellites(PlanetProperties *planetPr + { + ifstream inFile(satFile.c_str()); + char *line = new char[MAX_LINE_LENGTH]; +- while (inFile.getline (line, MAX_LINE_LENGTH, '\n') != NULL) ++ while (1) ++ { ++ inFile.getline (line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; + readSatelliteFile(line, planet, view, projection, + planetProperties, annotationMap); +- ++ } + inFile.close(); + delete [] line; + } diff --git a/x11/xplanet/patches/patch-src_libmultiple_RayleighScattering.cpp b/x11/xplanet/patches/patch-src_libmultiple_RayleighScattering.cpp new file mode 100644 index 00000000000..fd62737f306 --- /dev/null +++ b/x11/xplanet/patches/patch-src_libmultiple_RayleighScattering.cpp @@ -0,0 +1,46 @@ +$NetBSD: patch-src_libmultiple_RayleighScattering.cpp,v 1.1 2018/02/13 12:45:02 ryoon Exp $ + +--- src/libmultiple/RayleighScattering.cpp.orig 2012-02-25 16:32:59.000000000 +0000 ++++ src/libmultiple/RayleighScattering.cpp +@@ -369,8 +369,12 @@ RayleighScattering::readConfigFile(strin + + diskTemplate_.clear(); + limbTemplate_.clear(); +- while (inFile.getline(line, MAX_LINE_LENGTH, '\n') != NULL) ++ while (1) + { ++ inFile.getline(line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ + int i = 0; + while (isDelimiter(line[i])) + { +@@ -439,8 +443,12 @@ RayleighScattering::readBlock(ifstream & + values.clear(); + + char line[MAX_LINE_LENGTH]; +- while (inFile.getline(line, MAX_LINE_LENGTH, '\n') != NULL) ++ while (1) + { ++ inFile.getline(line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ + int i = 0; + while (isDelimiter(line[i])) + { +@@ -470,8 +478,12 @@ RayleighScattering::readValue(ifstream & + double &value) + { + char line[MAX_LINE_LENGTH]; +- while (inFile.getline(line, MAX_LINE_LENGTH, '\n') != NULL) ++ while (1) + { ++ inFile.getline(line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ + int i = 0; + while (isDelimiter(line[i])) + { diff --git a/x11/xplanet/patches/patch-src_libmultiple_drawStars.cpp b/x11/xplanet/patches/patch-src_libmultiple_drawStars.cpp new file mode 100644 index 00000000000..41f5427535a --- /dev/null +++ b/x11/xplanet/patches/patch-src_libmultiple_drawStars.cpp @@ -0,0 +1,18 @@ +$NetBSD: patch-src_libmultiple_drawStars.cpp,v 1.1 2018/02/13 12:45:02 ryoon Exp $ + +--- src/libmultiple/drawStars.cpp.orig 2006-03-26 04:55:59.000000000 +0000 ++++ src/libmultiple/drawStars.cpp +@@ -41,8 +41,12 @@ drawStars(DisplayBase *display, View *vi + ifstream inFile(starMap.c_str()); + + char line[MAX_LINE_LENGTH]; +- while (inFile.getline(line, MAX_LINE_LENGTH, '\n') != NULL) ++ while (1) + { ++ inFile.getline(line, MAX_LINE_LENGTH, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; ++ + if (line[0] == '#') continue; + + double Vmag, RA, Dec; diff --git a/x11/xplanet/patches/patch-src_readConfig.cpp b/x11/xplanet/patches/patch-src_readConfig.cpp new file mode 100644 index 00000000000..d6c8b11f209 --- /dev/null +++ b/x11/xplanet/patches/patch-src_readConfig.cpp @@ -0,0 +1,20 @@ +$NetBSD: patch-src_readConfig.cpp,v 1.1 2018/02/13 12:45:02 ryoon Exp $ + +--- src/readConfig.cpp.orig 2012-03-03 03:20:05.000000000 +0000 ++++ src/readConfig.cpp +@@ -550,9 +550,13 @@ readConfigFile(string configFile, Planet + + ifstream inFile(configFile.c_str()); + char *line = new char[256]; +- while (inFile.getline(line, 256, '\n') != NULL) ++ while (1) ++ { ++ inFile.getline(line, 256, '\n'); ++ if (inFile.eof() || inFile.fail()) ++ break; + readConfig(line, planetProperties); +- ++ } + // This condition will only be true if [default] is the only + // section in the config file. In this case, set all planet + // properties to the default values. |