[Bitsery] New port (#6226)

This commit is contained in:
Simon Brand 2019-04-26 20:20:28 +01:00 committed by Griffin Downs
parent 0619aaec65
commit 7b3d86b933
3 changed files with 42 additions and 0 deletions

3
ports/bitsery/CONTROL Normal file
View File

@ -0,0 +1,3 @@
Source: bitsery
Version: 4.6.0
Description: Header only C++ binary serialization library

View File

@ -0,0 +1,16 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8125a28..8daee28 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,9 +34,9 @@ install(TARGETS bitsery
install(EXPORT bitseryTargets
FILE "BitseryConfig.cmake"
NAMESPACE Bitsery::
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/bitsery)
+ DESTINATION share/bitsery)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/BitseryConfigVersion.cmake
- DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/bitsery)
+ DESTINATION share/bitsery)
install(DIRECTORY include/bitsery
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

View File

@ -0,0 +1,23 @@
include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO fraillt/bitsery
REF v4.6.0
SHA512 519aec8730f4b6f8d26aff17d984101990ade02888664eb2c40bc1085e4dcffbbe83b08216149da234c8195d1940ec06744f16312f60e362f7005b205aa829a6
HEAD_REF master
PATCHES fix-install-paths.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)
vcpkg_install_cmake()
# Delete redundant and empty directories
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug)
# Install license
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/bitsery RENAME copyright)