aboutsummaryrefslogtreecommitdiff
path: root/vcpkg-ports/restclient-cpp
diff options
context:
space:
mode:
authorJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
committerJef <jef@targetspot.com>2024-09-24 08:54:57 -0400
commit20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /vcpkg-ports/restclient-cpp
parent537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff)
downloadwinamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz
Initial community commit
Diffstat (limited to 'vcpkg-ports/restclient-cpp')
-rw-r--r--vcpkg-ports/restclient-cpp/portfile.cmake30
-rw-r--r--vcpkg-ports/restclient-cpp/vcpkg.json18
2 files changed, 48 insertions, 0 deletions
diff --git a/vcpkg-ports/restclient-cpp/portfile.cmake b/vcpkg-ports/restclient-cpp/portfile.cmake
new file mode 100644
index 00000000..508a0ffc
--- /dev/null
+++ b/vcpkg-ports/restclient-cpp/portfile.cmake
@@ -0,0 +1,30 @@
+if (VCPKG_TARGET_IS_WINDOWS)
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mrtazz/restclient-cpp
+ REF b782bd26539a3d1a8edcb6d8a3493b111f8fac66 #v2022-02-009
+ SHA512 992b2c067c7b672432a202fea6b5263ff51ca77facace5078077e77e57390d3ddcb99e0e20ad1a1595612efbb625d34f4d2cd8c4a2ac4bb33e3f9d5d28c2c579
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DCMAKE_DISABLE_FIND_PACKAGE_GTest=TRUE
+ -DCMAKE_DISABLE_FIND_PACKAGE_jsoncpp=TRUE
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/restclient-cpp)
+
+vcpkg_copy_pdbs()
+
+# Remove includes in debug
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+# Handle copyright
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/vcpkg-ports/restclient-cpp/vcpkg.json b/vcpkg-ports/restclient-cpp/vcpkg.json
new file mode 100644
index 00000000..d7dad289
--- /dev/null
+++ b/vcpkg-ports/restclient-cpp/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "restclient-cpp",
+ "version-date": "2022-02-09",
+ "description": "Simple REST client for C++. It wraps libcurl for HTTP requests.",
+ "homepage": "https://code.mrtazz.com/restclient-cpp/",
+ "license": "MIT",
+ "dependencies": [
+ "curl",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}