2021-07-23 13:47:28 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2022-01-13 03:59:20 +08:00
|
|
|
URLS "https://github.com/Starlink/ast/releases/download/v9.2.7/ast-9.2.7.tar.gz"
|
|
|
|
FILENAME "ast-9.2.7.tar.gz"
|
|
|
|
SHA512 4778658fe6b08af29b51807e2d988f8425d99d630a14d8fef9ca4ea43016d676df419a93c4b2fdecc0549c28c0665f61e366bd4e7aa896ebb8e47f56d5af1887
|
2021-07-23 13:47:28 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-01-26 02:31:15 +08:00
|
|
|
ARCHIVE ${ARCHIVE}
|
2021-07-23 13:47:28 +08:00
|
|
|
)
|
|
|
|
|
2021-10-01 14:58:36 +08:00
|
|
|
set(CONFIGURE_OPTIONS
|
|
|
|
--without-fortran
|
2021-12-15 12:56:11 +08:00
|
|
|
--with-external-cminpack
|
2021-10-01 14:58:36 +08:00
|
|
|
star_cv_cnf_trail_type=long
|
|
|
|
star_cv_cnf_f2c_compatible=no
|
|
|
|
)
|
2021-07-23 13:47:28 +08:00
|
|
|
|
|
|
|
if ("yaml" IN_LIST FEATURES)
|
2021-10-01 14:58:36 +08:00
|
|
|
list(APPEND CONFIGURE_OPTIONS --with-yaml)
|
2021-07-23 13:47:28 +08:00
|
|
|
else()
|
2021-10-01 14:58:36 +08:00
|
|
|
list(APPEND CONFIGURE_OPTIONS --without-yaml)
|
2021-07-23 13:47:28 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if ("pthreads" IN_LIST FEATURES)
|
2021-10-01 14:58:36 +08:00
|
|
|
list(APPEND CONFIGURE_OPTIONS --with-pthreads)
|
2021-07-23 13:47:28 +08:00
|
|
|
else()
|
2021-10-01 14:58:36 +08:00
|
|
|
list(APPEND CONFIGURE_OPTIONS --without-pthreads)
|
2021-07-23 13:47:28 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
USE_WRAPPERS
|
|
|
|
DETERMINE_BUILD_TRIPLET
|
2021-08-07 22:48:44 +08:00
|
|
|
ADDITIONAL_MSYS_PACKAGES perl
|
2021-07-23 13:47:28 +08:00
|
|
|
OPTIONS ${CONFIGURE_OPTIONS}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
|
|
|
|
|
|
|
|
# # Handle copyright
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|