diff --git a/astro/Makefile b/astro/Makefile index b3691282726a..91463556f205 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -1,135 +1,136 @@ COMMENT = Astronomical ports SUBDIR += R-cran-maptools SUBDIR += accrete SUBDIR += astrometry SUBDIR += boinc-astropulse SUBDIR += boinc-setiathome SUBDIR += celestia SUBDIR += celestia-gtk SUBDIR += cfitsio SUBDIR += fowsr SUBDIR += foxtrotgps SUBDIR += geographiclib SUBDIR += gkrellmoon2 SUBDIR += gnuastro SUBDIR += google-earth SUBDIR += gpsbabel SUBDIR += gpsbabel14 SUBDIR += gpscorrelate SUBDIR += gpsd SUBDIR += gpsman SUBDIR += gpsprune SUBDIR += gpstk SUBDIR += gpxloggerd SUBDIR += jday SUBDIR += josm SUBDIR += kosmindoormap SUBDIR += kosmorro SUBDIR += kstars SUBDIR += libgal SUBDIR += libnova SUBDIR += libosmium SUBDIR += libosmpbf SUBDIR += luna SUBDIR += marble SUBDIR += match SUBDIR += merkaartor SUBDIR += mkgmap SUBDIR += mkgmap-splitter SUBDIR += mymoon SUBDIR += nightfall SUBDIR += opencpn SUBDIR += openuniverse SUBDIR += oskar SUBDIR += osmosis SUBDIR += p5-Astro SUBDIR += p5-Astro-ADS SUBDIR += p5-Astro-App-Satpass2 SUBDIR += p5-Astro-Catalog SUBDIR += p5-Astro-Constants SUBDIR += p5-Astro-Coords SUBDIR += p5-Astro-DSS SUBDIR += p5-Astro-FITS-CFITSIO SUBDIR += p5-Astro-FITS-Header SUBDIR += p5-Astro-Flux SUBDIR += p5-Astro-Hipparcos SUBDIR += p5-Astro-MoonPhase SUBDIR += p5-Astro-PAL SUBDIR += p5-Astro-SIMBAD SUBDIR += p5-Astro-SIMBAD-Client SUBDIR += p5-Astro-SpaceTrack SUBDIR += p5-Astro-SunTime SUBDIR += p5-Astro-Sunrise SUBDIR += p5-Astro-Telescope SUBDIR += p5-Astro-WaveBand SUBDIR += p5-Astro-satpass SUBDIR += p5-GPS SUBDIR += p5-GPS-Babel SUBDIR += p5-GPS-OID SUBDIR += p5-GPS-Point SUBDIR += p5-Geo-METAR SUBDIR += p5-Misc-Quality SUBDIR += p5-Net-GPSD3 SUBDIR += p5-Starlink-AST SUBDIR += p5-Weather-Underground SUBDIR += phoon SUBDIR += pp3 SUBDIR += ptiger SUBDIR += py-astlib SUBDIR += py-astropy SUBDIR += py-astropy-helpers SUBDIR += py-ephem SUBDIR += py-horoscopegenerator SUBDIR += py-jplephem SUBDIR += py-metar SUBDIR += py-metpy SUBDIR += py-pykep SUBDIR += py-pymeeus SUBDIR += py-pymetar SUBDIR += py-pysofa SUBDIR += py-pywapi SUBDIR += py-ro SUBDIR += py-sgp4 SUBDIR += py-skyfield SUBDIR += py-skyfield-data SUBDIR += py-spacetrack SUBDIR += py-spktype01 SUBDIR += py-spktype21 SUBDIR += pykep SUBDIR += pyweather SUBDIR += qmapshack SUBDIR += readosm SUBDIR += rmap SUBDIR += routino SUBDIR += sextractor SUBDIR += siril SUBDIR += sofa SUBDIR += sscalc SUBDIR += stardates SUBDIR += starplot SUBDIR += stars SUBDIR += stellarium + SUBDIR += stellarsolver SUBDIR += sunclock SUBDIR += sunwait SUBDIR += swe SUBDIR += tclgeomap SUBDIR += tkgeomap SUBDIR += wcslib SUBDIR += weather SUBDIR += wmglobe SUBDIR += wmjupiter SUBDIR += wmmoonclock SUBDIR += wmsolar SUBDIR += wmspaceweather SUBDIR += wmsun SUBDIR += xearth SUBDIR += xeartk SUBDIR += xephem SUBDIR += xmoontool SUBDIR += xphoon SUBDIR += xplanet SUBDIR += xtide SUBDIR += xworld .include diff --git a/astro/stellarsolver/Makefile b/astro/stellarsolver/Makefile new file mode 100644 index 000000000000..492f1313eedf --- /dev/null +++ b/astro/stellarsolver/Makefile @@ -0,0 +1,21 @@ +PORTNAME= stellarsolver +DISTVERSION= 1.5 +CATEGORIES= astro + +MAINTAINER= acm@FreeBSD.org +COMMENT= Astrometric Plate Solver built on Astrometry.net and SEP + +LICENSE= GPLv3 + +LIB_DEPENDS= libcfitsio.so:astro/cfitsio \ + libgsl.so:math/gsl \ + libwcs.so:astro/wcslib + +USES= cmake iconv ninja qt:5 pkgconfig +USE_QT= buildtools concurrent core gui qmake_build network widgets +USE_GITHUB= yes +GH_ACCOUNT= rlancaste + +USE_LDCONFIG= yes + +.include diff --git a/astro/stellarsolver/distinfo b/astro/stellarsolver/distinfo new file mode 100644 index 000000000000..2ae017938f58 --- /dev/null +++ b/astro/stellarsolver/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1621530559 +SHA256 (rlancaste-stellarsolver-1.5_GH0.tar.gz) = 62ce99c066a205c9f7c5cbace1678504750ceeb99cb12bacd4e4a329c4f512bc +SIZE (rlancaste-stellarsolver-1.5_GH0.tar.gz) = 9113711 diff --git a/astro/stellarsolver/files/patch-stellarsolver_stellarsolver.cpp b/astro/stellarsolver/files/patch-stellarsolver_stellarsolver.cpp new file mode 100644 index 000000000000..0516e3bb9e6c --- /dev/null +++ b/astro/stellarsolver/files/patch-stellarsolver_stellarsolver.cpp @@ -0,0 +1,26 @@ +--- stellarsolver/stellarsolver.cpp.orig 2020-11-15 04:11:58 UTC ++++ stellarsolver/stellarsolver.cpp +@@ -7,6 +7,9 @@ + */ + #if defined(__APPLE__) + #include ++#elif defined(__FreeBSD__) ++#include ++#include + #elif defined(_WIN32) + #include "windows.h" + #else //Linux +@@ -799,8 +802,12 @@ bool StellarSolver::appendStarsRAandDEC(QList