diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-09-21 12:27:55 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-09-21 12:27:55 -0700 |
| commit | 910c3675146beec8d9c0d313bea986aba0802f1c (patch) | |
| tree | 64872a18fae5c07e567aac223c255eb7791d304d | |
| parent | 794122fef36d7f6d7bb4b2bdf088aba99f1eed95 (diff) | |
| parent | 45c65e0c90adc6da8dbf0db08f23e5ae61a1f416 (diff) | |
| download | vcpkg-910c3675146beec8d9c0d313bea986aba0802f1c.tar.gz vcpkg-910c3675146beec8d9c0d313bea986aba0802f1c.zip | |
Merge branch 'fmt' of https://github.com/KindDragon/vcpkg into KindDragon-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() |
