diff options
| -rw-r--r-- | ports/json-spirit/CONTROL | 4 | ||||
| -rw-r--r-- | ports/json-spirit/portfile.cmake | 23 |
2 files changed, 27 insertions, 0 deletions
diff --git a/ports/json-spirit/CONTROL b/ports/json-spirit/CONTROL new file mode 100644 index 000000000..dcfc407d7 --- /dev/null +++ b/ports/json-spirit/CONTROL @@ -0,0 +1,4 @@ +Source: json-spirit
+Version: 4.1.0
+Description: json parser using boost library
+Build-Depends: boost-config, boost-integer, boost-smart-ptr, boost-variant, boost-spirit
diff --git a/ports/json-spirit/portfile.cmake b/ports/json-spirit/portfile.cmake new file mode 100644 index 000000000..d33737d79 --- /dev/null +++ b/ports/json-spirit/portfile.cmake @@ -0,0 +1,23 @@ +include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO png85/json_spirit
+ REF 5e16cca59b31d8beda0f07e3917ce11dcd43b3db
+ SHA512 6ac0f15726391c9003e516213535c8d30e98b6c33bca0b03e9bf38e7085824bfc6cfaab267b1dfccbfcc567638d26f722d7e331f4e3b60d3acd5c717cb1fafcc
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS -DBUILD_STATIC_LIBS=on -DJSON_SPIRIT_DEMOS=off -DJSON_SPIRIT_TESTS=off)
+
+vcpkg_install_cmake()
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/json-spirit RENAME copyright)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+vcpkg_copy_pdbs()
|
