aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/boost-cmake/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/boost-cmake/portfile.cmake')
-rw-r--r--vcpkg/ports/boost-cmake/portfile.cmake34
1 files changed, 34 insertions, 0 deletions
diff --git a/vcpkg/ports/boost-cmake/portfile.cmake b/vcpkg/ports/boost-cmake/portfile.cmake
new file mode 100644
index 0000000..a3a9492
--- /dev/null
+++ b/vcpkg/ports/boost-cmake/portfile.cmake
@@ -0,0 +1,34 @@
+# Automatically generated by scripts/boost/generate-ports.ps1
+
+set(VCPKG_POLICY_CMAKE_HELPER_PORT enabled)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO boostorg/cmake
+ REF boost-${VERSION}
+ SHA512 dd17731fb03d634aa4751e5f36acd124d04eb71341c000df2a0f0b49d5bea0db50e54d1bf820e066a07a22fcaecc97dbe8caaf2883b6a2c1eb2b941938c67d25
+ HEAD_REF master
+ PATCHES
+ 0001-vcpkg-build.patch
+ 0002-remove-prefix-and-suffix.patch
+)
+
+# Beta builds contains a text in the version string
+string(REGEX MATCH "([0-9]+)\\.([0-9]+)\\.([0-9]+)" SEMVER_VERSION "${VERSION}")
+configure_file("${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt.in" "${SOURCE_PATH}/CMakeLists.txt" @ONLY)
+
+vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}")
+vcpkg_cmake_install()
+
+file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/boost/cmake-build")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-port-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+
+vcpkg_download_distfile(BOOST_LICENSE
+ URLS "https://raw.githubusercontent.com/boostorg/boost/refs/tags/boost-${VERSION}/LICENSE_1_0.txt"
+ FILENAME "boost-${VERSION}-LICENSE_1_0.txt"
+ SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
+)
+vcpkg_install_copyright(FILE_LIST "${BOOST_LICENSE}")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")