2017-11-04 07:54:44 +08:00
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2023-10-03 11:00:19 +08:00
|
|
|
URLS "http://www.flintlib.org/flint-${VERSION}.zip"
|
|
|
|
FILENAME "flint-${VERSION}.zip"
|
|
|
|
SHA512 3dd9a4e79e08ab6bc434a786c8d4398eba6cb04e57bcb8d01677f4912cddf20ed3a971160a3e2d533d9a07b728678b0733cc8315bcb39a3f13475b6efa240062
|
2017-11-04 07:54:44 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2019-10-08 01:35:13 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
PATCHES
|
2021-11-06 07:09:43 +08:00
|
|
|
fix-cmakelists.patch
|
2017-11-04 07:54:44 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
|
|
-DWITH_NTL=OFF
|
2022-01-26 02:31:15 +08:00
|
|
|
-DWITH_CBLAS=OFF
|
2017-11-04 07:54:44 +08:00
|
|
|
)
|
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-04 07:54:44 +08:00
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-11-04 07:54:44 +08:00
|
|
|
|
2021-11-06 07:09:43 +08:00
|
|
|
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"
|
|
|
|
)
|
2017-11-04 07:54:44 +08:00
|
|
|
endif()
|
|
|
|
|
2022-01-26 02:31:15 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/gpl-2.0.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|