From 628096612448488000b680c71e930cb31fc59a9e Mon Sep 17 00:00:00 2001 From: AuroraDysis Date: Mon, 17 Jul 2017 21:43:46 +0800 Subject: [blaze] initial port --- ports/blaze/CONTROL | 3 +++ ports/blaze/portfile.cmake | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 ports/blaze/CONTROL create mode 100644 ports/blaze/portfile.cmake diff --git a/ports/blaze/CONTROL b/ports/blaze/CONTROL new file mode 100644 index 000000000..dd1b065ef --- /dev/null +++ b/ports/blaze/CONTROL @@ -0,0 +1,3 @@ +Source: blaze +Version: 3.1 +Description: Blaze is an open-source, high-performance C++ math library for dense and sparse arithmetic. diff --git a/ports/blaze/portfile.cmake b/ports/blaze/portfile.cmake new file mode 100644 index 000000000..cf268451c --- /dev/null +++ b/ports/blaze/portfile.cmake @@ -0,0 +1,19 @@ +#header-only library +include(vcpkg_common_functions) + +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/blaze-3.1) +vcpkg_download_distfile(ARCHIVE + URLS "https://bitbucket.org/blaze-lib/blaze/downloads/blaze-3.1.tar.gz" + FILENAME "blaze-3.1.tar.gz" + SHA512 fe03a7615d4105d6a869cfd69b3db3165b838eff53cdff7adbbd5ae9d753aa009bbab50925463c6704f9530a4c4ad5605e373b3cbaee96ca982a474a665ed756 +) +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) -- cgit v1.2.3