diff --git a/astro/Makefile b/astro/Makefile index ccf65dd974e9..19d7971cd25b 100644 --- a/astro/Makefile +++ b/astro/Makefile @@ -1,149 +1,150 @@ COMMENT = Astronomical ports SUBDIR += R-cran-maptools SUBDIR += accrete SUBDIR += astrometry + SUBDIR += astroterm SUBDIR += calcmysky SUBDIR += celestia SUBDIR += celestia-gtk SUBDIR += cfitsio SUBDIR += erfa SUBDIR += fowsr SUBDIR += foxtrotgps SUBDIR += geographiclib SUBDIR += gkrellmoon2 SUBDIR += gnuastro SUBDIR += google-earth-pro SUBDIR += gpsbabel SUBDIR += gpsbabel14 SUBDIR += gpscorrelate SUBDIR += gpsd SUBDIR += gpsman SUBDIR += gpsprune SUBDIR += gpstk SUBDIR += gpxloggerd SUBDIR += indiwebmanagerapp 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 += mepo SUBDIR += merkaartor SUBDIR += mkgmap SUBDIR += mkgmap-splitter SUBDIR += mymoon SUBDIR += nightfall SUBDIR += opencpn SUBDIR += openuniverse SUBDIR += oskar SUBDIR += osmium-tool 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 += pal SUBDIR += phd2 SUBDIR += phoon SUBDIR += pngphoon SUBDIR += pp3 SUBDIR += py-astlib SUBDIR += py-astral SUBDIR += py-astroML SUBDIR += py-astropy SUBDIR += py-astropy-helpers SUBDIR += py-astropy-iers-data SUBDIR += py-ephem SUBDIR += py-extension-helpers SUBDIR += py-fitsio SUBDIR += py-horoscopegenerator SUBDIR += py-indiweb SUBDIR += py-jplephem SUBDIR += py-kosmorrolib SUBDIR += py-metar SUBDIR += py-metpy SUBDIR += py-pyerfa 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 += py-sunpy SUBDIR += pykep SUBDIR += pyweather SUBDIR += qmapshack SUBDIR += readosm SUBDIR += rmap SUBDIR += routino SUBDIR += sextractor SUBDIR += siril SUBDIR += sofa SUBDIR += sscalc SUBDIR += stardates SUBDIR += starfetch SUBDIR += starplot SUBDIR += stars SUBDIR += stellarium SUBDIR += stellarsolver SUBDIR += sunclock SUBDIR += sunwait SUBDIR += swe SUBDIR += viking SUBDIR += wcslib SUBDIR += weather SUBDIR += wmglobe SUBDIR += wmjupiter SUBDIR += wmmoonclock SUBDIR += wmsolar SUBDIR += wmspaceweather SUBDIR += wmsun SUBDIR += xearth SUBDIR += xephem SUBDIR += xmoontool SUBDIR += xphoon SUBDIR += xplanet SUBDIR += xtide SUBDIR += xworld .include diff --git a/astro/astroterm/Makefile b/astro/astroterm/Makefile new file mode 100644 index 000000000000..1b4c6959a950 --- /dev/null +++ b/astro/astroterm/Makefile @@ -0,0 +1,30 @@ +PORTNAME= astroterm +DISTVERSIONPREFIX= v +DISTVERSION= 1.0.7 +CATEGORIES= astro +MASTER_SITES= https://web.archive.org/web/20231007085824if_/http://tdc-www.harvard.edu/catalogs/:DATA +DISTFILES= BSC5:DATA +DIST_SUBDIR= ${PORTNAME}-${DISTVERSION} +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} + +MAINTAINER= nxjoseph@protonmail.com +COMMENT= Explore stars, planets, constellations, and more in your terminal! +WWW= https://github.com/da-luce/astroterm + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= xxd:sysutils/xxd +LIB_DEPENDS= libargtable2.so:devel/argtable + +USES= compiler meson ncurses ninja pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= da-luce + +PLIST_FILES= bin/${PORTNAME} + +post-extract: + ${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/BSC5 \ + ${WRKSRC}/data/bsc5 + +.include diff --git a/astro/astroterm/distinfo b/astro/astroterm/distinfo new file mode 100644 index 000000000000..7dd77a8b1d08 --- /dev/null +++ b/astro/astroterm/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1739416073 +SHA256 (astroterm-1.0.7/BSC5) = e471d02eaf4eecb61c12f879a1cb6432ba9d7b68a9a8c5654a1eb42a0c8cc340 +SIZE (astroterm-1.0.7/BSC5) = 291548 +SHA256 (astroterm-1.0.7/da-luce-astroterm-v1.0.7_GH0.tar.gz) = 3b8b1597afb31d1cb8ad54030b5766652b4d3f42f0a3d510bbc3191c0c6a4aa5 +SIZE (astroterm-1.0.7/da-luce-astroterm-v1.0.7_GH0.tar.gz) = 20463291 diff --git a/astro/astroterm/files/patch-src_stopwatch.c b/astro/astroterm/files/patch-src_stopwatch.c new file mode 100644 index 000000000000..3097f52da4de --- /dev/null +++ b/astro/astroterm/files/patch-src_stopwatch.c @@ -0,0 +1,20 @@ +--- src/stopwatch.c.orig 2025-02-09 19:38:25 UTC ++++ src/stopwatch.c +@@ -34,7 +34,7 @@ int sw_gettime(struct SwTimestamp *stamp) + #elif defined(__APPLE__) && defined(__MACH__) + // Apple OSX and iOS (Darwin) + +- unsigned long long tick = clock_gettime_nsec_np(CLOCK_MONOTONIC_RAW); ++ unsigned long long tick = clock_gettime_nsec_np(CLOCK_MONOTONIC); + if (tick == 0) + { + return -1; +@@ -47,7 +47,7 @@ int sw_gettime(struct SwTimestamp *stamp) + // Available on some POSIX systems (preferable to gettimeofday() below) + + struct timespec tick; +- int check = clock_gettime(CLOCK_MONOTONIC_RAW, &tick); ++ int check = clock_gettime(CLOCK_MONOTONIC, &tick); + if (check == -1) + { + return -1; diff --git a/astro/astroterm/pkg-descr b/astro/astroterm/pkg-descr new file mode 100644 index 000000000000..5cfc98268b34 --- /dev/null +++ b/astro/astroterm/pkg-descr @@ -0,0 +1,4 @@ +astroterm is a terminal-based star map written in C. It displays the real-time +positions of stars, planets, constellations, and more, all within your terminal +and no telescope required! Configure sky views by date, time, and location with +precise ASCII-rendered visuals.