diff options
| author | AMIR <31338382+amiremohamadi@users.noreply.github.com> | 2019-03-08 00:58:49 +0330 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-03-07 13:28:49 -0800 |
| commit | a8502ca793ab1a81d3ef0f700b1b201ee716a3ba (patch) | |
| tree | 879b5bb6d93dcb944aa0ca2565233483b36a6317 | |
| parent | aa560f10f88833e6fa7801ee50f51115b0a705e4 (diff) | |
| download | vcpkg-a8502ca793ab1a81d3ef0f700b1b201ee716a3ba.tar.gz vcpkg-a8502ca793ab1a81d3ef0f700b1b201ee716a3ba.zip | |
[libbf] Add new port (#5570)
* [libff] Add new port
* Add new port [libbf]
* Update portfile.cmake
* update libbf portfile
* [libbf] Fail with meaningful message on Windows
* [libbf] Fix MSVC check condition
| -rw-r--r-- | ports/libbf/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libbf/portfile.cmake | 27 |
2 files changed, 30 insertions, 0 deletions
diff --git a/ports/libbf/CONTROL b/ports/libbf/CONTROL new file mode 100644 index 000000000..3b51a52e1 --- /dev/null +++ b/ports/libbf/CONTROL @@ -0,0 +1,3 @@ +Source: libbf +Version: 1.0.0 +Description: Bloom filters for C++11.
\ No newline at end of file diff --git a/ports/libbf/portfile.cmake b/ports/libbf/portfile.cmake new file mode 100644 index 000000000..b339e94cc --- /dev/null +++ b/ports/libbf/portfile.cmake @@ -0,0 +1,27 @@ +if (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "" OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") + message(FATAL_ERROR "libbf does not support MSVC") +endif() + +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO mavam/libbf + REF v1.0.0 + SHA512 04db7adbeb4bc6b20aed7f2676840499ed1afe499b4cab67f27d4a0ad234c1fb06eced24259f37870ec4760fe74d6d6307b5d11b3cd928b975661eb2966d4db8 + HEAD_REF master +) + +vcpkg_configure_cmake( + SOURCE_PATH ${SOURCE_PATH} + PREFER_NINJA +) + +vcpkg_install_cmake() +vcpkg_copy_pdbs() + + +file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) + +file(COPY ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/libbf) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/libbf/COPYING ${CURRENT_PACKAGES_DIR}/share/libbf/copyright)
\ No newline at end of file |
