2024-05-27 23:26:45 +01:00
|
|
|
set(GSL_VERSION 2.8)
|
2017-07-25 03:44:01 +03:00
|
|
|
|
2017-05-03 11:25:35 -07:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2020-01-06 14:33:00 -08:00
|
|
|
URLS "https://ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/gsl/gsl-${GSL_VERSION}.tar.gz"
|
2017-07-25 03:44:01 +03:00
|
|
|
FILENAME "gsl-${GSL_VERSION}.tar.gz"
|
2024-05-27 23:26:45 +01:00
|
|
|
SHA512 4427f6ce59dc14eabd6d31ef1fcac1849b4d7357faf48873aef642464ddf21cc9b500d516f08b410f02a2daa9a6ff30220f3995584b0a6ae2f73c522d1abb66b
|
2017-05-03 11:25:35 -07:00
|
|
|
)
|
|
|
|
|
2023-04-13 18:13:15 +02:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2019-10-07 19:35:13 +02:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2017-05-03 11:25:35 -07:00
|
|
|
PATCHES
|
2019-10-07 19:35:13 +02:00
|
|
|
0001-configure.patch
|
|
|
|
0002-add-fp-control.patch
|
2016-09-20 15:21:14 -07:00
|
|
|
)
|
|
|
|
|
2021-09-22 15:21:58 -05:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2021-09-22 15:21:58 -05:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-05-03 11:25:35 -07:00
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
|
|
|
)
|
|
|
|
|
2021-09-22 15:21:58 -05:00
|
|
|
vcpkg_cmake_install()
|
2017-05-03 11:25:35 -07:00
|
|
|
vcpkg_copy_pdbs()
|
2019-10-07 19:35:13 +02:00
|
|
|
|
2022-04-22 05:51:10 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2021-09-22 15:21:58 -05:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-05-28 19:00:20 +02:00
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|