From 8573c7002e01107e7ddd6ff19b4adc56ce3269a9 Mon Sep 17 00:00:00 2001 From: Park DongHa Date: Wed, 30 Jun 2021 01:13:44 +0900 Subject: [PATCH] [sleef] create a new port (#18075) * [sleef] create a new port * [sleef] update baseline * [sleef] update supports * add more supported architectures to sleef * [sleef] update ci.baseline.txt * Revert "[sleef] update ci.baseline.txt" This reverts commit 39685ae755048ebc4702ddfb659026f910ce885a. * [sleef] disable (arm & windows) The project's CI doesn't check it. Disable in support field. * Update ports/sleef/vcpkg.json Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [sleef] update git-tree SHA Co-authored-by: nicole mazzuca Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> --- ports/sleef/portfile.cmake | 29 +++++++++++++++++++++++++++++ ports/sleef/vcpkg.json | 14 ++++++++++++++ scripts/ci.baseline.txt | 1 + versions/baseline.json | 4 ++++ versions/s-/sleef.json | 9 +++++++++ 5 files changed, 57 insertions(+) create mode 100644 ports/sleef/portfile.cmake create mode 100644 ports/sleef/vcpkg.json create mode 100644 versions/s-/sleef.json diff --git a/ports/sleef/portfile.cmake b/ports/sleef/portfile.cmake new file mode 100644 index 0000000000..ce37b7ce7e --- /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 0000000000..dcd74f6fc9 --- /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 + } + ] +} diff --git a/scripts/ci.baseline.txt b/scripts/ci.baseline.txt index 9c25fd9d76..c3e40ad204 100644 --- a/scripts/ci.baseline.txt +++ b/scripts/ci.baseline.txt @@ -1467,6 +1467,7 @@ skia:arm-uwp=fail skia:x64-linux=fail skia:x64-uwp=fail skia:x86-windows=fail +sleef:x86-windows=fail slikenet:arm-uwp=fail slikenet:x64-uwp=fail smpeg2:arm-uwp=fail diff --git a/versions/baseline.json b/versions/baseline.json index 0848eb0779..6151396a42 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -5796,6 +5796,10 @@ "baseline": "1.13.0", "port-version": 0 }, + "sleef": { + "baseline": "3.5.1", + "port-version": 0 + }, "slikenet": { "baseline": "2019-10-22-2", "port-version": 0 diff --git a/versions/s-/sleef.json b/versions/s-/sleef.json new file mode 100644 index 0000000000..304db6224f --- /dev/null +++ b/versions/s-/sleef.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "0c195bd94ab64769463a4891db9d140fa37508a4", + "version": "3.5.1", + "port-version": 0 + } + ] +}