vcpkg/ports/blaze/portfile.cmake

20 lines
789 B
CMake
Raw Normal View History

2017-07-17 21:43:46 +08:00
#header-only library
include(vcpkg_common_functions)
2017-08-20 05:56:02 +02:00
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/blaze-3.2)
2017-07-17 21:43:46 +08:00
vcpkg_download_distfile(ARCHIVE
2017-08-20 05:56:02 +02:00
URLS "https://bitbucket.org/blaze-lib/blaze/downloads/blaze-3.2.tar.gz"
FILENAME "blaze-3.2.tar.gz"
SHA512 33d2bb0a49a33e71c88a45ab9e8418160c09b877b3ebe5ff7aa48ec0973e28e8a282374604d56f1b5cf2722946e4ca84aa2b401a341240a2ab9debd72505148e
2017-07-17 21:43:46 +08:00
)
vcpkg_extract_source_archive(${ARCHIVE})
# Copy the blaze header files
file(COPY "${SOURCE_PATH}/blaze"
DESTINATION "${CURRENT_PACKAGES_DIR}/include"
FILES_MATCHING PATTERN "*.h")
# Handle copyright
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/blaze)
file(RENAME ${CURRENT_PACKAGES_DIR}/share/blaze/LICENSE ${CURRENT_PACKAGES_DIR}/share/blaze/copyright)