diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/supernovas | |
Diffstat (limited to 'vcpkg/ports/supernovas')
| -rw-r--r-- | vcpkg/ports/supernovas/portfile.cmake | 29 | ||||
| -rw-r--r-- | vcpkg/ports/supernovas/vcpkg.json | 27 |
2 files changed, 56 insertions, 0 deletions
diff --git a/vcpkg/ports/supernovas/portfile.cmake b/vcpkg/ports/supernovas/portfile.cmake new file mode 100644 index 0000000..02b49ad --- /dev/null +++ b/vcpkg/ports/supernovas/portfile.cmake @@ -0,0 +1,29 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Smithsonian/SuperNOVAS
+ REF "v${VERSION}"
+ SHA512 b78e5b3e9792fbebd47064c747be675022f2758c30ac2cd69ade5601d9693b8eb8786c46c56df76f04feef963310838042833b7a91e2cc6c9317a5c34717ade8
+ HEAD_REF main
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ FEATURES
+ solsys-calceph ENABLE_CALCEPH
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DBUILD_TESTING=OFF
+ ${FEATURE_OPTIONS}
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/supernovas/vcpkg.json b/vcpkg/ports/supernovas/vcpkg.json new file mode 100644 index 0000000..2ee5099 --- /dev/null +++ b/vcpkg/ports/supernovas/vcpkg.json @@ -0,0 +1,27 @@ +{ + "name": "supernovas", + "version": "1.5.0", + "description": "SuperNOVAS C/C++ high-precision astrometry library", + "homepage": "https://smithsonian.github.io/SuperNOVAS/", + "documentation": "https://smithsonian.github.io/SuperNOVAS/doc/html/", + "license": "Unlicense", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ], + "features": { + "solsys-calceph": { + "description": "Solar-system ephemeris support via the CALCEPH library", + "supports": "!uwp", + "dependencies": [ + "calceph" + ] + } + } +} |