early-access version 2853

This commit is contained in:
pineappleEA
2022-07-23 03:01:36 +02:00
parent 1f2b5081b5
commit 1f111bb69c
8955 changed files with 418777 additions and 999 deletions

View File

@@ -0,0 +1,26 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2616d06..4be28ac 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,10 +34,11 @@ find_package(MPFR REQUIRED)
if (WITH_NTL)
find_package(NTL REQUIRED)
endif()
-find_package(PythonInterp REQUIRED)
+if(WITH_CBLAS)
find_package(CBLAS)
set(FLINT_USES_BLAS ${CBLAS_FOUND})
+endif()
if(CMAKE_BUILD_TYPE STREQUAL Debug)
set(FLINT_WANT_ASSERT ON)
@@ -47,6 +48,8 @@ endif()
if(MSVC)
find_package(PThreads REQUIRED)
+ set(PThreads_LIBRARIES ${PThreads4W_LIBRARY})
+ set(PThreads_INCLUDE_DIRS ${PThreads4W_INCLUDE_DIR})
set(FLINT_USES_PTHREAD ON CACHE BOOL "Use POSIX Threads.")
else()
option(CMAKE_THREAD_PREFER_PTHREAD "Prefer pthreads" yes)

37
externals/vcpkg/ports/flint/portfile.cmake vendored Executable file
View File

@@ -0,0 +1,37 @@
set(FLINT_VERSION 2.8.0)
set(FLINT_HASH "916285d13a55d12a041236195a9d7bbc5c1c3c30c3aa2f169efee6063b800d34f96ad3235f1c77285b04305ce685e5890169c984108d50d0c9ee7a77c3f6e73d")
vcpkg_download_distfile(ARCHIVE
URLS "http://www.flintlib.org/flint-${FLINT_VERSION}.zip"
FILENAME "flint-${FLINT_VERSION}.zip"
SHA512 ${FLINT_HASH}
)
vcpkg_find_acquire_program(PYTHON3)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
PATCHES
fix-cmakelists.patch
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DPYTHON_EXECUTABLE=${PYTHON3}
-DWITH_NTL=OFF
-DWITH_CBLAS=OFF
)
vcpkg_cmake_install()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic" AND VCPKG_TARGET_IS_WINDOWS)
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/flint/flint-config.h"
"#elif defined(MSC_USE_DLL)" "#elif 1"
)
endif()
file(INSTALL "${SOURCE_PATH}/gpl-2.0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)

21
externals/vcpkg/ports/flint/vcpkg.json vendored Executable file
View File

@@ -0,0 +1,21 @@
{
"name": "flint",
"version-semver": "2.8.0",
"port-version": 1,
"description": "Fast Library for Number Theory",
"homepage": "https://www.flintlib.org/",
"supports": "!uwp",
"dependencies": [
"gettimeofday",
"gmp",
"mpfr",
{
"name": "pthreads",
"platform": "windows"
},
{
"name": "vcpkg-cmake",
"host": true
}
]
}