aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/bext-mp
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/bext-mp
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/bext-mp')
-rw-r--r--vcpkg/ports/bext-mp/fix-build-flags.patch17
-rw-r--r--vcpkg/ports/bext-mp/portfile.cmake22
-rw-r--r--vcpkg/ports/bext-mp/usage5
-rw-r--r--vcpkg/ports/bext-mp/vcpkg.json18
4 files changed, 62 insertions, 0 deletions
diff --git a/vcpkg/ports/bext-mp/fix-build-flags.patch b/vcpkg/ports/bext-mp/fix-build-flags.patch
new file mode 100644
index 0000000..960dfa2
--- /dev/null
+++ b/vcpkg/ports/bext-mp/fix-build-flags.patch
@@ -0,0 +1,17 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index deaa67c..fb82294 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,10 +34,10 @@ target_sources(mp
+ if(PROJECT_IS_TOP_LEVEL)
+ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
+ target_compile_options(mp INTERFACE
+- $<BUILD_INTERFACE:-stdlib=libc++ -Wall -Wextra -Wpedantic -Werror>)
++ $<BUILD_INTERFACE:-stdlib=libc++ -Wall -Wextra -Wpedantic>)
+ target_link_options(mp INTERFACE $<BUILD_INTERFACE:-stdlib=libc++>)
+ elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
+- target_compile_options(mp INTERFACE $<BUILD_INTERFACE:-Wall -Wextra -Wpedantic -Werror>)
++ target_compile_options(mp INTERFACE $<BUILD_INTERFACE:-Wall -Wextra -Wpedantic>)
+ endif()
+ endif()
+
diff --git a/vcpkg/ports/bext-mp/portfile.cmake b/vcpkg/ports/bext-mp/portfile.cmake
new file mode 100644
index 0000000..0adc5fa
--- /dev/null
+++ b/vcpkg/ports/bext-mp/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO boost-ext/mp
+ REF d2dbdf89e543624be8351fd52308a9cf73374dbc
+ SHA512 15d56bf0dca2e4bfb9128b8552a6aa01ed6b1431ab9c152ed51473f6fa237c31fbf3d5baa22523e3786d14fd716acb5436ed26fe89d46812ba9375e2417bc67a
+ HEAD_REF main
+ PATCHES fix-build-flags.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(PACKAGE_NAME mp CONFIG_PATH "share/cmake/mp-0.0.1")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
diff --git a/vcpkg/ports/bext-mp/usage b/vcpkg/ports/bext-mp/usage
new file mode 100644
index 0000000..247e079
--- /dev/null
+++ b/vcpkg/ports/bext-mp/usage
@@ -0,0 +1,5 @@
+The package bext-mp provides CMake targets:
+
+ find_package(mp CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Boost::mp)
+ set_property(TARGET main PROPERTY CXX_EXTENSIONS OFF)
diff --git a/vcpkg/ports/bext-mp/vcpkg.json b/vcpkg/ports/bext-mp/vcpkg.json
new file mode 100644
index 0000000..413416c
--- /dev/null
+++ b/vcpkg/ports/bext-mp/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "bext-mp",
+ "version-date": "2023-03-02",
+ "description": "C++20 ~~Template~~ Meta-Programming",
+ "homepage": "https://boost-ext.github.io/mp/",
+ "license": "BSL-1.0",
+ "supports": "!windows | mingw",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}