aboutsummaryrefslogtreecommitdiff
path: root/ports/msgpack11
diff options
context:
space:
mode:
Diffstat (limited to 'ports/msgpack11')
-rw-r--r--ports/msgpack11/CONTROL6
-rw-r--r--ports/msgpack11/disable-werror.patch14
-rw-r--r--ports/msgpack11/portfile.cmake9
-rw-r--r--ports/msgpack11/vcpkg.json10
4 files changed, 29 insertions, 10 deletions
diff --git a/ports/msgpack11/CONTROL b/ports/msgpack11/CONTROL
deleted file mode 100644
index 3fde8f39c..000000000
--- a/ports/msgpack11/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: msgpack11
-Version: 0.0.10-1
-Homepage: https://msgpack.org
-Build-Depends: gtest
-Description: msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.
-
diff --git a/ports/msgpack11/disable-werror.patch b/ports/msgpack11/disable-werror.patch
new file mode 100644
index 000000000..eb4a17e08
--- /dev/null
+++ b/ports/msgpack11/disable-werror.patch
@@ -0,0 +1,14 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 080cefa..b73072a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -9,9 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
+ add_library(msgpack11 STATIC msgpack11.cpp)
+ target_include_directories(msgpack11 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+ target_compile_options(msgpack11 PRIVATE -fno-rtti)
+-if(NOT MSVC)
+- target_compile_options(msgpack11 PRIVATE -Wall -Wextra -Werror)
+-endif()
+ configure_file("msgpack11.pc.in" "msgpack11.pc" @ONLY)
+
+ if (MSGPACK11_BUILD_TESTS)
diff --git a/ports/msgpack11/portfile.cmake b/ports/msgpack11/portfile.cmake
index cf828f6b1..f4dc73c63 100644
--- a/ports/msgpack11/portfile.cmake
+++ b/ports/msgpack11/portfile.cmake
@@ -8,19 +8,20 @@ vcpkg_from_github(
PATCHES
msvc.patch
fix-additerator.patch
+ disable-werror.patch
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
- -DMSGPACK11_BUILD_TESTS=OFF
- -DMSGPACK11_BUILD_EXAMPLES=OFF
+ -DMSGPACK11_BUILD_TESTS=OFF
+ -DMSGPACK11_BUILD_EXAMPLES=OFF
)
vcpkg_install_cmake()
vcpkg_copy_pdbs()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/msgpack11/vcpkg.json b/ports/msgpack11/vcpkg.json
new file mode 100644
index 000000000..0072e7dfd
--- /dev/null
+++ b/ports/msgpack11/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "msgpack11",
+ "version": "0.0.10",
+ "port-version": 2,
+ "description": "msgpack11 is a tiny MsgPack library for C++11, providing MsgPack parsing and serialization.This library is inspired by json11.The API of msgpack11 is designed to be similar with json11.",
+ "homepage": "https://msgpack.org",
+ "dependencies": [
+ "gtest"
+ ]
+}