2017-07-25 03:44:01 +03:00
|
|
|
set(GSL_VERSION 2.4)
|
|
|
|
|
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"
|
|
|
|
SHA512 12442b023dd959e8b22a9c486646b5cedec7fdba0daf2604cda365cf96d10d99aefdec2b42e59c536cc071da1525373454e5ed6f4b15293b305ca9b1dc6db130
|
2017-05-03 11:25:35 -07:00
|
|
|
)
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
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
|
|
|
)
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
|
|
|
|
2017-05-03 11:25:35 -07:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_copy_pdbs()
|
2019-10-07 19:35:13 +02: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)
|