math/ssht: New port: Fast and exact spin spherical harmonic transforms
This commit is contained in:
@@ -1058,6 +1058,7 @@
|
||||
SUBDIR += spooles-mpich
|
||||
SUBDIR += spot
|
||||
SUBDIR += sprng
|
||||
SUBDIR += ssht
|
||||
SUBDIR += stan
|
||||
SUBDIR += stanmath
|
||||
SUBDIR += stp
|
||||
|
||||
22
math/ssht/Makefile
Normal file
22
math/ssht/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
PORTNAME= ssht
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 1.5.1
|
||||
CATEGORIES= math
|
||||
|
||||
MAINTAINER= yuri@FreeBSD.org
|
||||
COMMENT= Fast and exact spin spherical harmonic transforms
|
||||
|
||||
LICENSE= MIT
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= fftw3>0:math/fftw3 # see https://github.com/astro-informatics/ssht/issues/6
|
||||
|
||||
USES= cmake:testing pkgconfig # tests clone cmocka, see https://github.com/astro-informatics/ssht/issues/63
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= astro-informatics
|
||||
|
||||
CMAKE_ON= BUILD_SHARED_LIBS
|
||||
CMAKE_OFF= BUILD_TESTING
|
||||
|
||||
.include <bsd.port.mk>
|
||||
3
math/ssht/distinfo
Normal file
3
math/ssht/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1659813524
|
||||
SHA256 (astro-informatics-ssht-v1.5.1_GH0.tar.gz) = f0b6fb6a1de40354fcf4eafe09b953c96a72ba9c533a42e290802e93cd14170c
|
||||
SIZE (astro-informatics-ssht-v1.5.1_GH0.tar.gz) = 2332554
|
||||
11
math/ssht/files/patch-CMakeLists.txt
Normal file
11
math/ssht/files/patch-CMakeLists.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
--- CMakeLists.txt.orig 2022-08-06 19:21:48 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -42,7 +42,7 @@ elseif(NOT CONAN_EXPORTED)
|
||||
endif()
|
||||
|
||||
# only run documentation if this is not a sub-project
|
||||
-if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
+if(FREEBSD_BUILD_DOCS AND CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
||||
find_package(Doxygen)
|
||||
if(DOXYGEN_FOUND)
|
||||
set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C "YES")
|
||||
8
math/ssht/files/patch-src_c_CMakeLists.txt
Normal file
8
math/ssht/files/patch-src_c_CMakeLists.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
--- src/c/CMakeLists.txt.orig 2022-08-06 19:20:16 UTC
|
||||
+++ src/c/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-add_library(ssht STATIC ssht_adjoint.c ssht_core.c ssht_dl.c ssht_sampling.c)
|
||||
+add_library(ssht ssht_adjoint.c ssht_core.c ssht_dl.c ssht_sampling.c)
|
||||
target_link_libraries(ssht PUBLIC FFTW3::FFTW3 ${MATH_LIBRARY})
|
||||
target_include_directories(
|
||||
ssht
|
||||
13
math/ssht/pkg-descr
Normal file
13
math/ssht/pkg-descr
Normal file
@@ -0,0 +1,13 @@
|
||||
The SSHT code provides functionality to perform fast and exact spin spherical
|
||||
harmonic transforms based on the sampling theorem on the sphere derived in
|
||||
McEwen & Wiaux (2011).
|
||||
|
||||
SSHT can also interface with ducc0 and use it as a backend for the forward,
|
||||
inverse and inverse adjoint transforms.
|
||||
|
||||
In some applications adjoint forward and inverse spherical harmonic transforms
|
||||
are also required (for example, when solving convex optimisation problems).
|
||||
Functionality is also provided to perform fast and exact adjoint transforms,
|
||||
based on the fast algorithms derived in McEwen et al. (2013).
|
||||
|
||||
WWW: https://astro-informatics.github.io/ssht/
|
||||
13
math/ssht/pkg-plist
Normal file
13
math/ssht/pkg-plist
Normal file
@@ -0,0 +1,13 @@
|
||||
include/ssht/ssht.h
|
||||
include/ssht/ssht_adjoint.h
|
||||
include/ssht/ssht_core.h
|
||||
include/ssht/ssht_dl.h
|
||||
include/ssht/ssht_error.h
|
||||
include/ssht/ssht_sampling.h
|
||||
include/ssht/ssht_types.h
|
||||
include/ssht/ssht_version.h
|
||||
lib/cmake/ssht/sshtConfig.cmake
|
||||
lib/cmake/ssht/sshtConfigVersion.cmake
|
||||
lib/cmake/ssht/sshtTargets-%%CMAKE_BUILD_TYPE%%.cmake
|
||||
lib/cmake/ssht/sshtTargets.cmake
|
||||
lib/libssht.so
|
||||
Reference in New Issue
Block a user