2021-09-23 04:21:58 +08:00
|
|
|
set(GSL_VERSION 2.7)
|
2017-07-25 08:44:01 +08:00
|
|
|
|
2017-05-04 02:25:35 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2020-01-07 06: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 08:44:01 +08:00
|
|
|
FILENAME "gsl-${GSL_VERSION}.tar.gz"
|
2021-09-23 04:21:58 +08:00
|
|
|
SHA512 a14ac5400acaf4884620430dbeb6f0b28eafe946923b792ab0eccc2a2abc9113d8ce342f4b1e5396f05247649f7d6f953944a8e6bdbf9ee1adb9e67b7c3df2b5
|
2017-05-04 02:25:35 +08:00
|
|
|
)
|
|
|
|
|
2019-10-08 01:35:13 +08:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
2017-05-04 02:25:35 +08:00
|
|
|
PATCHES
|
2019-10-08 01:35:13 +08:00
|
|
|
0001-configure.patch
|
|
|
|
0002-add-fp-control.patch
|
2016-09-21 06:21:14 +08:00
|
|
|
)
|
|
|
|
|
2021-09-23 04:21:58 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-09-23 04:21:58 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-05-04 02:25:35 +08:00
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
|
|
|
)
|
|
|
|
|
2021-09-23 04:21:58 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-05-04 02:25:35 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2021-09-23 04:21:58 +08: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-29 01:00:20 +08:00
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY)
|