diff options
Diffstat (limited to 'ports/sleef')
| -rw-r--r-- | ports/sleef/portfile.cmake | 29 | ||||
| -rw-r--r-- | ports/sleef/vcpkg.json | 14 |
2 files changed, 43 insertions, 0 deletions
diff --git a/ports/sleef/portfile.cmake b/ports/sleef/portfile.cmake new file mode 100644 index 000000000..ce37b7ce7 --- /dev/null +++ b/ports/sleef/portfile.cmake @@ -0,0 +1,29 @@ +# x86: Reports ICE(Internal Compiler Error) for x86-windows/release. +# see ${SOURCE_PATH}/src/libm/sleefsimddp.c +# uwp: codegen fails +vcpkg_fail_port_install(ON_TARGET "uwp") + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO shibatch/sleef + REF 3.5.1 + SHA512 e8e4e5028db52998c6b82bd462622c08d670e4e85273327f1c3bdbd900827dd7793b217c2876ca1229b6f672493bb96f40140e14366390cccea0e6780689e128 + HEAD_REF master +) + +vcpkg_cmake_configure( + SOURCE_PATH ${SOURCE_PATH} + OPTIONS + -DBUILD_LIBM=ON + -DBUILD_DFT=ON + -DBUILD_QUAD=ON + -DBUILD_GNUABILIBS=${VCPKG_TARGET_IS_LINUX} + -DBUILD_TESTS=OFF + -DBUILD_INLINE_HEADERS=OFF +) +vcpkg_cmake_install() +vcpkg_copy_pdbs() +vcpkg_fixup_pkgconfig() + +file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) diff --git a/ports/sleef/vcpkg.json b/ports/sleef/vcpkg.json new file mode 100644 index 000000000..dcd74f6fc --- /dev/null +++ b/ports/sleef/vcpkg.json @@ -0,0 +1,14 @@ +{ + "name": "sleef", + "version": "3.5.1", + "description": "SIMD Library for Evaluating Elementary Functions, vectorized libm and DFT", + "homepage": "https://sleef.org/", + "license": "BSL-1.0", + "supports": "!uwp & !(arm & windows)", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + } + ] +} |
