vcpkg/ports/spdk-isal/portfile.cmake

30 lines
1.1 KiB
CMake
Raw Permalink Normal View History

if(EXISTS "${CURRENT_INSTALLED_DIR}/share/isal/copyright")
message(FATAL_ERROR "'${PORT}' conflicts with 'isal'. Please remove isal:${TARGET_TRIPLET}, and try to install ${PORT}:${TARGET_TRIPLET} again.")
endif()
2022-01-27 07:27:17 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO spdk/isa-l
REF spdk
SHA512 1d170ed050fb612816c77b3586f1cdce9129eedc559e3fcefc983ede05b6c8e13a52e400ee6935f5da6ab045a899c97f6ed6be3a79691284e211ea8a6d697f7c
HEAD_REF master
)
2022-01-27 07:27:17 +08:00
vcpkg_find_acquire_program(NASM)
get_filename_component(NASM_PATH ${NASM} DIRECTORY)
vcpkg_add_to_path("${NASM_PATH}")
2022-01-27 07:27:17 +08:00
vcpkg_find_acquire_program(YASM)
2022-01-27 07:27:17 +08:00
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
)
2022-01-27 07:27:17 +08:00
vcpkg_install_make()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
2022-01-27 07:27:17 +08:00
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/spdk-isalConfig.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)