[fftwpp]Add header-only port. (#8625)

This commit is contained in:
JackBoosY 2019-10-30 14:27:10 +08:00 committed by Victor Romero
parent 8445fcce87
commit bbabb7363a
2 changed files with 39 additions and 0 deletions

5
ports/fftwpp/CONTROL Normal file
View File

@ -0,0 +1,5 @@
Source: fftwpp
Version: 2.05
Homepage: https://www.fftw.org/
Description: FFTW++ is a C++ header/MPI transpose for Version 3 of the highly optimized FFTW (http://www.fftw.org) Fourier Transform library.
Build-Depends: fftw3

View File

@ -0,0 +1,34 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO dealias/fftwpp
REF f31cf133f9f4ddf23878cb0a83e848b1f76df1a7 #2.05
SHA512 c929fb76aba8aa5f60615bdb9d3226118a8c6686adae39fc35c75dcebbc8c199a6ef20078aa82b0b0fd3a8db494c969fc7ba749659666eceb483afed9db5b5f6
HEAD_REF master
)
# fftwpp is a header-only library
set (FFWTPP_SOURCE_FILES
${SOURCE_PATH}/Array.h
${SOURCE_PATH}/Array.cc
${SOURCE_PATH}/Complex.h
${SOURCE_PATH}/Complex.cc
${SOURCE_PATH}/align.h
${SOURCE_PATH}/cmult-sse2.h
${SOURCE_PATH}/convolution.h
${SOURCE_PATH}/convolution.cc
${SOURCE_PATH}/fftw++.h
${SOURCE_PATH}/fftw++.cc
${SOURCE_PATH}/seconds.h
${SOURCE_PATH}/statistics.h
${SOURCE_PATH}/transposeoptions.h
)
set(FFWTPP_DOXY_CFG ${SOURCE_PATH}/fftw++.doxycfg)
file(INSTALL ${FFWTPP_SOURCE_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include/${PORT})
file(INSTALL ${FFWTPP_DOXY_CFG} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(INSTALL ${SOURCE_PATH}/README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
# Handle copyright
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)