-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pffft] new port #20624
Merged
Merged
[pffft] new port #20624
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
cmake_minimum_required(VERSION 3.12.4) | ||
project(pffft C) | ||
|
||
add_library(pffft pffft.c) | ||
|
||
if(MSVC) | ||
target_compile_definitions(pffft PRIVATE _USE_MATH_DEFINES) | ||
endif() | ||
|
||
target_include_directories(pffft PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> $<INSTALL_INTERFACE:include>) | ||
|
||
install( | ||
TARGETS pffft | ||
EXPORT pffft-config | ||
) | ||
|
||
install( | ||
EXPORT pffft-config | ||
NAMESPACE pffft:: | ||
DESTINATION share/pffft | ||
) | ||
|
||
if(NOT DISABLE_INSTALL_HEADERS) | ||
install(FILES pffft.h DESTINATION include/pffft) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Copyright (c) 2013 Julien Pommier ( [email protected] ) | ||
|
||
Based on original fortran 77 code from FFTPACKv4 from NETLIB | ||
(http://www.netlib.org/fftpack), authored by Dr Paul Swarztrauber | ||
of NCAR, in 1985. | ||
|
||
As confirmed by the NCAR fftpack software curators, the following | ||
FFTPACKv5 license applies to FFTPACKv4 sources. My changes are | ||
released under the same terms. | ||
|
||
FFTPACK license: | ||
|
||
http://www.cisl.ucar.edu/css/software/fftpack5/ftpk.html | ||
|
||
Copyright (c) 2004 the University Corporation for Atmospheric | ||
Research ("UCAR"). All rights reserved. Developed by NCAR's | ||
Computational and Information Systems Laboratory, UCAR, | ||
www.cisl.ucar.edu. | ||
|
||
Redistribution and use of the Software in source and binary forms, | ||
with or without modification, is permitted provided that the | ||
following conditions are met: | ||
|
||
- Neither the names of NCAR's Computational and Information Systems | ||
Laboratory, the University Corporation for Atmospheric Research, | ||
nor the names of its sponsors or contributors may be used to | ||
endorse or promote products derived from this Software without | ||
specific prior written permission. | ||
|
||
- Redistributions of source code must retain the above copyright | ||
notices, this list of conditions, and the disclaimer below. | ||
|
||
- Redistributions in binary form must reproduce the above copyright | ||
notice, this list of conditions, and the disclaimer below in the | ||
documentation and/or other materials provided with the | ||
distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, INDIRECT, INCIDENTAL, SPECIAL, | ||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR OTHER LIABILITY, WHETHER IN AN | ||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE | ||
SOFTWARE. | ||
|
||
|
||
PFFFT : a Pretty Fast FFT. | ||
|
||
This file is largerly based on the original FFTPACK implementation, modified in | ||
order to take advantage of SIMD instructions of modern CPUs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
vcpkg_check_linkage(ONLY_STATIC_LIBRARY) | ||
|
||
vcpkg_from_bitbucket( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO jpommier/pffft | ||
REF ed78751d751e51bbd94c41d24f748b400f272d69 | ||
SHA512 44f65c7f7e5b71f549dca2e03d58b1fd64e698858f79e4c2833a9ae3dff8a835cf9d5e14be2341c6370f800012cb69b05b9226d6918b12e67f7f7e81ed8e9ad4 | ||
HEAD_REF master | ||
) | ||
|
||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") | ||
|
||
vcpkg_cmake_configure( | ||
SOURCE_PATH "${SOURCE_PATH}" | ||
OPTIONS_DEBUG | ||
-DDISABLE_INSTALL_HEADERS=ON | ||
) | ||
|
||
vcpkg_cmake_install() | ||
vcpkg_cmake_config_fixup() | ||
|
||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/copyright" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "pffft", | ||
"version-date": "2021-10-09", | ||
"description": "PFFFT, a pretty fast Fourier Transform.", | ||
"homepage": "https://bitbucket.org/jpommier/pffft/", | ||
"supports": "static", | ||
"dependencies": [ | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
}, | ||
{ | ||
"name": "vcpkg-cmake-config", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"versions": [ | ||
{ | ||
"git-tree": "c425b1091069b34450a9b7e524f1cad202e4e709", | ||
"version-date": "2021-10-09", | ||
"port-version": 0 | ||
} | ||
] | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is always true and we authored this CMakeLists.txt, why have the option at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't install the headers for debug configuration, see ' OPTIONS_DEBUG' in portfile.cmake. Only installed the headers for release configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I missed that, thanks!