diff options
| author | JackBoosY <47264268+JackBoosY@users.noreply.github.com> | 2019-10-30 14:27:10 +0800 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-10-29 23:27:10 -0700 |
| commit | bbabb7363a316030c3775b33b27e81be4874085d (patch) | |
| tree | 0b90c8b6bedf90fb497f71d300e5acb7f8f69a9a | |
| parent | 8445fcce87a5171352ab7d8593a75cc3e13ddb8c (diff) | |
| download | vcpkg-bbabb7363a316030c3775b33b27e81be4874085d.tar.gz vcpkg-bbabb7363a316030c3775b33b27e81be4874085d.zip | |
[fftwpp]Add header-only port. (#8625)
| -rw-r--r-- | ports/fftwpp/CONTROL | 5 | ||||
| -rw-r--r-- | ports/fftwpp/portfile.cmake | 34 |
2 files changed, 39 insertions, 0 deletions
diff --git a/ports/fftwpp/CONTROL b/ports/fftwpp/CONTROL new file mode 100644 index 000000000..9c701d5ef --- /dev/null +++ b/ports/fftwpp/CONTROL @@ -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
diff --git a/ports/fftwpp/portfile.cmake b/ports/fftwpp/portfile.cmake new file mode 100644 index 000000000..f178d5f12 --- /dev/null +++ b/ports/fftwpp/portfile.cmake @@ -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)
|
