pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/misc



Module Name:    pkgsrc
Committed By:   markd
Date:           Tue Feb 17 18:41:02 UTC 2026

Modified Files:
        pkgsrc/misc: Makefile
Added Files:
        pkgsrc/misc/stellarsolver: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/misc/stellarsolver/patches: patch-CMakeLists.txt
            patch-stellarsolver_stellarsolver.cpp

Log Message:
stellarsolver: Add version 2.7

- An Astrometric Plate Solver for Mac, Linux, and Windows, built on
  Astrometry.net and SEP (sextractor)
- Meant to be an internal library for use in a program like KStars for internal
  plate solving on all supported operating systems
- Python is not required for the library
- Netpbm is not required for the library
- Internal Library, so calls to external programs are not required
- No Astrometry.cfg file is needed, the settings are internal to the program
- Directly loads the image data into SEP and then takes the generated xy-list
  internally from Sextractor into astrometry.net, so there is no need to save
  any files.
- No temporary files need to be created for solving and no WCS file needs to be
  created to read the solved information. Although astrometry.net does monitor
  for the creation of 2 files indicating that a field is solved or a cancel was
  made, so these are created for now.
- The Index Files are still required for solving images, but the program or the
  user can specify the folder locations rather than putting them in the config
  file.


To generate a diff of this commit:
cvs rdiff -u -r1.673 -r1.674 pkgsrc/misc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/stellarsolver/DESCR \
    pkgsrc/misc/stellarsolver/Makefile pkgsrc/misc/stellarsolver/PLIST \
    pkgsrc/misc/stellarsolver/buildlink3.mk \
    pkgsrc/misc/stellarsolver/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/misc/stellarsolver/patches/patch-CMakeLists.txt \
    pkgsrc/misc/stellarsolver/patches/patch-stellarsolver_stellarsolver.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/misc/Makefile
diff -u pkgsrc/misc/Makefile:1.673 pkgsrc/misc/Makefile:1.674
--- pkgsrc/misc/Makefile:1.673  Sun Jan 18 04:02:48 2026
+++ pkgsrc/misc/Makefile        Tue Feb 17 18:41:01 2026
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.673 2026/01/18 04:02:48 taca Exp $
+# $NetBSD: Makefile,v 1.674 2026/02/17 18:41:01 markd Exp $
 #
 
 COMMENT=       Miscellaneous utilities
@@ -362,6 +362,7 @@ SUBDIR+=    sleepto
 SUBDIR+=       splitvt
 SUBDIR+=       starplot
 SUBDIR+=       stellarium
+SUBDIR+=       stellarsolver
 SUBDIR+=       step
 SUBDIR+=       sunwait
 SUBDIR+=       sweeper

Added files:

Index: pkgsrc/misc/stellarsolver/DESCR
diff -u /dev/null pkgsrc/misc/stellarsolver/DESCR:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/DESCR     Tue Feb 17 18:41:01 2026
@@ -0,0 +1,18 @@
+- An Astrometric Plate Solver for Mac, Linux, and Windows, built on
+  Astrometry.net and SEP (sextractor)
+- Meant to be an internal library for use in a program like KStars for internal
+  plate solving on all supported operating systems
+- Python is not required for the library
+- Netpbm is not required for the library
+- Internal Library, so calls to external programs are not required
+- No Astrometry.cfg file is needed, the settings are internal to the program
+- Directly loads the image data into SEP and then takes the generated xy-list
+  internally from Sextractor into astrometry.net, so there is no need to save
+  any files.
+- No temporary files need to be created for solving and no WCS file needs to be
+  created to read the solved information. Although astrometry.net does monitor
+  for the creation of 2 files indicating that a field is solved or a cancel was
+  made, so these are created for now.
+- The Index Files are still required for solving images, but the program or the
+  user can specify the folder locations rather than putting them in the config
+  file.
Index: pkgsrc/misc/stellarsolver/Makefile
diff -u /dev/null pkgsrc/misc/stellarsolver/Makefile:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/Makefile  Tue Feb 17 18:41:01 2026
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1 2026/02/17 18:41:01 markd Exp $
+
+DISTNAME=      stellarsolver-2.7
+CATEGORIES=    misc
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=rlancaste/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/rlancaste/stellarsolver/
+COMMENT=       Astrometric Plate Solver built on Astrometry.net and SEP
+LICENSE=       gnu-gpl-v3
+
+USE_LANGUAGES= c c++
+
+USE_TOOLS+=    pkg-config
+
+CMAKE_CONFIGURE_ARGS+= -DUSE_QT5=OFF
+
+SUBST_CLASSES+=                bl3
+SUBST_SED.bl3+=                -e "s,${BUILDLINK_DIR},${PREFIX},g"
+SUBST_FILES.bl3+=      ${CMAKE_BUILD_DIR}/CMakeFiles/Export/*/*.cmake
+SUBST_STAGE.bl3=       post-build
+SUBST_MESSAGE.bl3=     Fix paths to buildlink directories in installed files.
+
+PKGCONFIG_OVERRIDE+=   stellarsolver.pc.cmake
+
+.include "../../devel/cmake/build.mk"
+
+.include "../../devel/cfitsio/buildlink3.mk"
+.include "../../graphics/wcslib/buildlink3.mk"
+.include "../../math/gsl/buildlink3.mk"
+.include "../../x11/qt6-qtbase/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/misc/stellarsolver/PLIST
diff -u /dev/null pkgsrc/misc/stellarsolver/PLIST:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/PLIST     Tue Feb 17 18:41:01 2026
@@ -0,0 +1,76 @@
+@comment $NetBSD: PLIST,v 1.1 2026/02/17 18:41:01 markd Exp $
+include/libstellarsolver/astrometry/an-bool.h
+include/libstellarsolver/astrometry/anqfits.h
+include/libstellarsolver/astrometry/bl-nl.h
+include/libstellarsolver/astrometry/bl-nl.inc
+include/libstellarsolver/astrometry/bl-nl.ph
+include/libstellarsolver/astrometry/bl-sort.h
+include/libstellarsolver/astrometry/bl.h
+include/libstellarsolver/astrometry/bl.inc
+include/libstellarsolver/astrometry/bl.ph
+include/libstellarsolver/astrometry/blind.h
+include/libstellarsolver/astrometry/codefile.h
+include/libstellarsolver/astrometry/codekd.h
+include/libstellarsolver/astrometry/datalog.h
+include/libstellarsolver/astrometry/engine.h
+include/libstellarsolver/astrometry/errors.h
+include/libstellarsolver/astrometry/fit-wcs.h
+include/libstellarsolver/astrometry/fitsbin.h
+include/libstellarsolver/astrometry/fitsfile.h
+include/libstellarsolver/astrometry/fitsioutils.h
+include/libstellarsolver/astrometry/fitstable.h
+include/libstellarsolver/astrometry/gslutils.h
+include/libstellarsolver/astrometry/healpix.h
+include/libstellarsolver/astrometry/index.h
+include/libstellarsolver/astrometry/ioutils.h
+include/libstellarsolver/astrometry/kdtree.h
+include/libstellarsolver/astrometry/kdtree_fits_io.h
+include/libstellarsolver/astrometry/keywords.h
+include/libstellarsolver/astrometry/log.h
+include/libstellarsolver/astrometry/matchobj.h
+include/libstellarsolver/astrometry/mathutil.h
+include/libstellarsolver/astrometry/mathutil.inc
+include/libstellarsolver/astrometry/os-features-config.h
+include/libstellarsolver/astrometry/os-features.h
+include/libstellarsolver/astrometry/permutedsort.h
+include/libstellarsolver/astrometry/qfits_byteswap.h
+include/libstellarsolver/astrometry/qfits_card.h
+include/libstellarsolver/astrometry/qfits_config.h
+include/libstellarsolver/astrometry/qfits_convert.h
+include/libstellarsolver/astrometry/qfits_error.h
+include/libstellarsolver/astrometry/qfits_float.h
+include/libstellarsolver/astrometry/qfits_header.h
+include/libstellarsolver/astrometry/qfits_image.h
+include/libstellarsolver/astrometry/qfits_keywords.h
+include/libstellarsolver/astrometry/qfits_md5.h
+include/libstellarsolver/astrometry/qfits_memory.h
+include/libstellarsolver/astrometry/qfits_rw.h
+include/libstellarsolver/astrometry/qfits_std.h
+include/libstellarsolver/astrometry/qfits_table.h
+include/libstellarsolver/astrometry/qfits_time.h
+include/libstellarsolver/astrometry/qfits_tools.h
+include/libstellarsolver/astrometry/quad-utils.h
+include/libstellarsolver/astrometry/quadfile.h
+include/libstellarsolver/astrometry/sip-utils.h
+include/libstellarsolver/astrometry/sip.h
+include/libstellarsolver/astrometry/solver.h
+include/libstellarsolver/astrometry/starkd.h
+include/libstellarsolver/astrometry/starutil.h
+include/libstellarsolver/astrometry/starutil.inc
+include/libstellarsolver/astrometry/starxy.h
+include/libstellarsolver/astrometry/tic.h
+include/libstellarsolver/astrometry/tweak2.h
+include/libstellarsolver/astrometry/verify.h
+include/libstellarsolver/extractorsolver.h
+include/libstellarsolver/parameters.h
+include/libstellarsolver/stellarsolver.h
+include/libstellarsolver/structuredefinitions.h
+include/libstellarsolver/version.h
+include/libstellarsolver/wcsdata.h
+lib/cmake/StellarSolver/StellarSolverConfig-noconfig.cmake
+lib/cmake/StellarSolver/StellarSolverConfig.cmake
+lib/cmake/StellarSolver/StellarSolverConfigVersion.cmake
+lib/libstellarsolver6.so
+lib/libstellarsolver6.so.2
+lib/libstellarsolver6.so.${PKGVERSION}
+lib/pkgconfig/stellarsolver.pc
Index: pkgsrc/misc/stellarsolver/buildlink3.mk
diff -u /dev/null pkgsrc/misc/stellarsolver/buildlink3.mk:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/buildlink3.mk     Tue Feb 17 18:41:01 2026
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2026/02/17 18:41:01 markd Exp $
+
+BUILDLINK_TREE+=       stellarsolver
+
+.if !defined(STELLARSOLVER_BUILDLINK3_MK)
+STELLARSOLVER_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.stellarsolver+=  stellarsolver>=2.5
+BUILDLINK_PKGSRCDIR.stellarsolver?=    ../../misc/stellarsolver
+
+.include "../../devel/cfitsio/buildlink3.mk"
+.include "../../graphics/wcslib/buildlink3.mk"
+.include "../../math/gsl/buildlink3.mk"
+.endif # STELLARSOLVER_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -stellarsolver
Index: pkgsrc/misc/stellarsolver/distinfo
diff -u /dev/null pkgsrc/misc/stellarsolver/distinfo:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/distinfo  Tue Feb 17 18:41:01 2026
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2026/02/17 18:41:01 markd Exp $
+
+BLAKE2s (stellarsolver-2.7.tar.gz) = 2b4d743efadc981ce36252aa559a21a7512996328a504aef716981a73c3b225f
+SHA512 (stellarsolver-2.7.tar.gz) = f666023bcc4e5c83d5a88224ebe524a490852d7b2aab89a52f596aa891f965367a6057997592eab50035f55565e330cf0a48074d2bf339fbaa78afdf56fda876
+Size (stellarsolver-2.7.tar.gz) = 26567114 bytes
+SHA1 (patch-CMakeLists.txt) = cf2dd1980448d3211521f048b38c2d96d4cd9f5d
+SHA1 (patch-stellarsolver_stellarsolver.cpp) = cafdf1a6f83d314b372ae624acddc4d0b3159abb

Index: pkgsrc/misc/stellarsolver/patches/patch-CMakeLists.txt
diff -u /dev/null pkgsrc/misc/stellarsolver/patches/patch-CMakeLists.txt:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/patches/patch-CMakeLists.txt      Tue Feb 17 18:41:01 2026
@@ -0,0 +1,54 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2026/02/17 18:41:01 markd Exp $
+
+qsort patch from OpenBSD
+
+Index: CMakeLists.txt
+--- CMakeLists.txt.orig
++++ CMakeLists.txt
+@@ -65,29 +65,25 @@ if (WIN32)
+ 
+ else(WIN32)
+ 
+-try_run(RUN_RESULT_2 COMPILE_SUCCESS_2 ${CMAKE_CURRENT_BINARY_DIR} ${config_SRCS} COMPILE_DEFINITIONS -DTEST_DECLARE_QSORT_R=ON)
+-if(COMPILE_SUCCESS_2 AND (RUN_RESULT_2 EQUAL 0))
+-    SET(VAR_2 0)
++try_run(RUN_RESULT_BSD_QSORT_R COMPILE_SUCCESS_BSD_QSORT_R ${CMAKE_CURRENT_BINARY_DIR} ${config_SRCS} COMPILE_DEFINITIONS -DTEST_BSD_QSORT_R=ON)
++try_run(RUN_RESULT_GNU_QSORT_R COMPILE_SUCCESS_GNU_QSORT_R ${CMAKE_CURRENT_BINARY_DIR} ${config_SRCS} COMPILE_DEFINITIONS -DTEST_GNU_QSORT_R=ON)
++if(COMPILE_SUCCESS_GNU_QSORT_R AND (RUN_RESULT_GNU_QSORT_R EQUAL 0))
++    SET(WANT_DECLARE_QSORT_R 0)
++    SET(WANT_BUNDLED_QSORT_R 0)
++    SET(WANT_SWAP_QSORT_R 1)
+ else()
+-    SET(VAR_2 1)
++    SET(WANT_SWAP_QSORT_R 0)
++    if(COMPILE_SUCCESS_BSD_QSORT_R AND (RUN_RESULT_BSD_QSORT_R EQUAL 0))
++        SET(WANT_DECLARE_QSORT_R 0)
++        SET(WANT_BUNDLED_QSORT_R 0)
++    else()
++        SET(WANT_DECLARE_QSORT_R 1)
++        SET(WANT_BUNDLED_QSORT_R 1)
++    endif()
+ endif()
+-file(APPEND "${config_FN}" "#define NEED_DECLARE_QSORT_R ${VAR_2}\n")
+-
+-try_run(RUN_RESULT_3 COMPILE_SUCCESS_3 ${CMAKE_CURRENT_BINARY_DIR} ${config_SRCS} COMPILE_DEFINITIONS -DTEST_QSORT_R=ON)
+-if(COMPILE_SUCCESS_3 AND (RUN_RESULT_3 EQUAL 0))
+-    SET(VAR_3 1)
+-else()
+-    SET(VAR_3 0)
+-endif()
+-file(APPEND "${config_FN}" "#define NEED_QSORT_R ${VAR_3}\n")
+-
+-try_run(RUN_RESULT_4 COMPILE_SUCCESS_4 ${CMAKE_CURRENT_BINARY_DIR} ${config_SRCS} COMPILE_DEFINITIONS -DTEST_SWAP_QSORT_R=ON)
+-if(COMPILE_SUCCESS_4 AND (RUN_RESULT_4 EQUAL 0))
+-    SET(VAR_4 1)
+-else()
+-    SET(VAR_4 0)
+-endif()
+-file(APPEND "${config_FN}" "#define NEED_SWAP_QSORT_R ${VAR_4}\n")
++file(APPEND "${config_FN}" "#define NEED_DECLARE_QSORT_R ${WANT_DECLARE_QSORT_R}\n")
++file(APPEND "${config_FN}" "#define NEED_SWAP_QSORT_R ${WANT_SWAP_QSORT_R}\n")
++file(APPEND "${config_FN}" "#define NEED_QSORT_R ${WANT_BUNDLED_QSORT_R}\n")
+ 
+ endif(WIN32)
+ 
Index: pkgsrc/misc/stellarsolver/patches/patch-stellarsolver_stellarsolver.cpp
diff -u /dev/null pkgsrc/misc/stellarsolver/patches/patch-stellarsolver_stellarsolver.cpp:1.1
--- /dev/null   Tue Feb 17 18:41:02 2026
+++ pkgsrc/misc/stellarsolver/patches/patch-stellarsolver_stellarsolver.cpp     Tue Feb 17 18:41:01 2026
@@ -0,0 +1,17 @@
+$NetBSD: patch-stellarsolver_stellarsolver.cpp,v 1.1 2026/02/17 18:41:01 markd Exp $
+
+No memory_status on OpenBSD or NetBSD
+
+--- stellarsolver/stellarsolver.cpp.orig       2025-05-25 04:36:42.000000000 +0000
++++ stellarsolver/stellarsolver.cpp
+@@ -1047,6 +1047,10 @@ bool StellarSolver::getAvailableRAM(doub
+     memory = p.readAllStandardOutput();
+     totalRAM = memory.toLong() * 1024.0; //It is in kB on this system
+     p.close();
++#elif defined(Q_OS_NETBSD)
++    return false;
++#elif defined(Q_OS_OPENBSD)
++    return false;
+ #else
+     MEMORYSTATUSEX memory_status;
+     ZeroMemory(&memory_status, sizeof(MEMORYSTATUSEX));



Home | Main Index | Thread Index | Old Index