diff options
| author | Arkadiy Shapkin <arkady.shapkin@gmail.com> | 2016-09-21 19:45:16 +0300 |
|---|---|---|
| committer | Arkadiy Shapkin <arkady.shapkin@gmail.com> | 2016-09-21 19:45:16 +0300 |
| commit | 45c65e0c90adc6da8dbf0db08f23e5ae61a1f416 (patch) | |
| tree | 41bb0dd554a1af3d2cec7fc4c4f0fa303de24bab | |
| parent | 4897b8c1568253a192de5a9fdfe76c5c155d28b8 (diff) | |
| download | vcpkg-45c65e0c90adc6da8dbf0db08f23e5ae61a1f416.tar.gz vcpkg-45c65e0c90adc6da8dbf0db08f23e5ae61a1f416.zip | |
Added fmt library https://github.com/fmtlib/fmt
| -rw-r--r-- | ports/fmt/CONTROL | 3 | ||||
| -rw-r--r-- | ports/fmt/portfile.cmake | 31 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/fmt/CONTROL b/ports/fmt/CONTROL new file mode 100644 index 000000000..9dfbac160 --- /dev/null +++ b/ports/fmt/CONTROL @@ -0,0 +1,3 @@ +Source: fmt +Version: 3.0.0 +Description: Formatting library for C++. It can be used as a safe alternative to printf or as a fast alternative to IOStreams. diff --git a/ports/fmt/portfile.cmake b/ports/fmt/portfile.cmake new file mode 100644 index 000000000..0f75231b6 --- /dev/null +++ b/ports/fmt/portfile.cmake @@ -0,0 +1,31 @@ +include(vcpkg_common_functions) + +vcpkg_download_distfile(ARCHIVE_FILE + URL "https://github.com/fmtlib/fmt/archive/3.0.0.tar.gz" + FILENAME "3.0.0.tar.gz" + MD5 deeac02aa6d00d6d04502087fdf88b6f +) +vcpkg_extract_source_archive(${ARCHIVE_FILE}) + +vcpkg_configure_cmake( + SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/fmt-3.0.0 + OPTIONS + -DFMT_TEST=OFF +) + +vcpkg_build_cmake() + +vcpkg_install_cmake() +file(INSTALL ${CURRENT_BUILDTREES_DIR}/src/fmt-3.0.0/LICENSE.rst DESTINATION ${CURRENT_PACKAGES_DIR}/share/fmt RENAME copyright) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) +file(REMOVE ${CURRENT_PACKAGES_DIR}/include/fmt/format.cc) +file(REMOVE ${CURRENT_PACKAGES_DIR}/include/fmt/ostream.cc) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/fmt/fmt-config-version.cmake ${CURRENT_PACKAGES_DIR}/share/fmt/fmt-config-version.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/fmt/fmt-config.cmake ${CURRENT_PACKAGES_DIR}/share/fmt/fmt-config.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/fmt/fmt-targets-release.cmake ${CURRENT_PACKAGES_DIR}/share/fmt/fmt-targets-release.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake/fmt/fmt-targets.cmake ${CURRENT_PACKAGES_DIR}/share/fmt/fmt-targets.cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/lib/cmake ${CURRENT_PACKAGES_DIR}/cmake) +file(RENAME ${CURRENT_PACKAGES_DIR}/debug/lib/cmake/fmt/fmt-targets.cmake ${CURRENT_PACKAGES_DIR}/share/fmt/fmt-targets-debug.cmake) +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/lib/cmake) + +vcpkg_copy_pdbs() |
