aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-12-24 08:01:59 +0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2019-12-23 16:01:59 -0800
commite7f28a27173686305cfc6db6c1ac3f3a830e231c (patch)
tree11b27bf3589b7245dbcccbd79377dd40425fe5cf
parent8cbae02ab284e4ac508933daa336d5f8ed86c064 (diff)
downloadvcpkg-e7f28a27173686305cfc6db6c1ac3f3a830e231c.tar.gz
vcpkg-e7f28a27173686305cfc6db6c1ac3f3a830e231c.zip
[xtensor-fftw] Add new port (#9159)
* [xtensor-fftw] Add new port * [xtensor-fftw] Update
-rw-r--r--ports/xtensor-fftw/CONTROL5
-rw-r--r--ports/xtensor-fftw/portfile.cmake31
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/xtensor-fftw/CONTROL b/ports/xtensor-fftw/CONTROL
new file mode 100644
index 000000000..c757db69b
--- /dev/null
+++ b/ports/xtensor-fftw/CONTROL
@@ -0,0 +1,5 @@
+Source: xtensor-fftw
+Version: 2019-11-30
+Description: FFTW bindings for the xtensor C++14 multi-dimensional array library
+Homepage: https://github.com/xtensor-stack/xtensor-fftw
+Build-Depends: fftw3, xtensor
diff --git a/ports/xtensor-fftw/portfile.cmake b/ports/xtensor-fftw/portfile.cmake
new file mode 100644
index 000000000..e22efc2e3
--- /dev/null
+++ b/ports/xtensor-fftw/portfile.cmake
@@ -0,0 +1,31 @@
+# header-only library
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO xtensor-stack/xtensor-fftw
+ REF 29f0442c98f1a219e970c96e99d7be8a42954a0b
+ SHA512 09b02fe6b906cde2a7f9071673a140c994316d50aaf639eb402706aaa52b66e73bc77fa1beb683d3740914ff5157283891634a806809c03f12c1def85b49595a
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DCOMPILE_WARNINGS=OFF
+ -DBUILD_TESTS=OFF
+ -DDOWNLOAD_GTEST=OFF
+ -DBUILD_BENCHMARK=OFF
+ -DDOWNLOAD_GBENCHMARK=OFF
+ -DBENCHMARK_ENABLE_TESTING=OFF
+ -DDEFAULT_COLUMN_MAJOR=OFF
+ -DCOVERAGE=OFF
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)