diff options
| author | Simon Brand <tartanllama@gmail.com> | 2019-04-26 20:20:28 +0100 |
|---|---|---|
| committer | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-04-26 12:20:28 -0700 |
| commit | 7b3d86b9333280ecd244038db9e299ffab975b1b (patch) | |
| tree | d492a6ac1c1796d20a49922f3181691225a12cab | |
| parent | 0619aaec650861d2a15a91cbbf11e0c626a1cf12 (diff) | |
| download | vcpkg-7b3d86b9333280ecd244038db9e299ffab975b1b.tar.gz vcpkg-7b3d86b9333280ecd244038db9e299ffab975b1b.zip | |
[Bitsery] New port (#6226)
| -rw-r--r-- | ports/bitsery/CONTROL | 3 | ||||
| -rwxr-xr-x | ports/bitsery/fix-install-paths.patch | 16 | ||||
| -rw-r--r-- | ports/bitsery/portfile.cmake | 23 |
3 files changed, 42 insertions, 0 deletions
diff --git a/ports/bitsery/CONTROL b/ports/bitsery/CONTROL new file mode 100644 index 000000000..3da15a785 --- /dev/null +++ b/ports/bitsery/CONTROL @@ -0,0 +1,3 @@ +Source: bitsery +Version: 4.6.0 +Description: Header only C++ binary serialization library diff --git a/ports/bitsery/fix-install-paths.patch b/ports/bitsery/fix-install-paths.patch new file mode 100755 index 000000000..aa9130d8c --- /dev/null +++ b/ports/bitsery/fix-install-paths.patch @@ -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})
+
diff --git a/ports/bitsery/portfile.cmake b/ports/bitsery/portfile.cmake new file mode 100644 index 000000000..bf3604a64 --- /dev/null +++ b/ports/bitsery/portfile.cmake @@ -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) |
