2021-07-23 13:47:28 +08:00
|
|
|
vcpkg_fail_port_install(ON_TARGET "Linux" "OSX")
|
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://github.com/Starlink/ast/releases/download/v9.2.4/ast-9.2.4.tar.gz"
|
|
|
|
FILENAME "ast-9.2.4.tar.gz"
|
|
|
|
SHA512 84e6f243e6d9d77328b73b97355feb3990307fb9c8f9b2f30344d71e2f5e63a849cdce0090ff5b7cc16028e12d68516c885b13d76db841072c9d1d06a7742a9e
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
)
|
|
|
|
|
2021-10-01 14:58:36 +08:00
|
|
|
set(CONFIGURE_OPTIONS
|
|
|
|
--without-fortran
|
|
|
|
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)
|