aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/inflatelib
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/inflatelib')
-rw-r--r--vcpkg/ports/inflatelib/portfile.cmake24
-rw-r--r--vcpkg/ports/inflatelib/usage4
-rw-r--r--vcpkg/ports/inflatelib/vcpkg.json17
3 files changed, 45 insertions, 0 deletions
diff --git a/vcpkg/ports/inflatelib/portfile.cmake b/vcpkg/ports/inflatelib/portfile.cmake
new file mode 100644
index 0000000..c8aa339
--- /dev/null
+++ b/vcpkg/ports/inflatelib/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO microsoft/inflatelib
+ REF "v${VERSION}"
+ SHA512 75c9bd5cca52813ccb7ff5dd048783c8865b7fdcdab406849019a321c49c3b74b831d0529549168b78bb4a51fcebbe6e945ca6309e60c4c5a3c0290d17d07cee
+ HEAD_REF main
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DINFLATELIB_TEST=OFF
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH "cmake")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/inflatelib/usage b/vcpkg/ports/inflatelib/usage
new file mode 100644
index 0000000..8460f6c
--- /dev/null
+++ b/vcpkg/ports/inflatelib/usage
@@ -0,0 +1,4 @@
+inflatelib provides CMake targets:
+
+ find_package(inflatelib CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE inflatelib::inflatelib)
diff --git a/vcpkg/ports/inflatelib/vcpkg.json b/vcpkg/ports/inflatelib/vcpkg.json
new file mode 100644
index 0000000..f846500
--- /dev/null
+++ b/vcpkg/ports/inflatelib/vcpkg.json
@@ -0,0 +1,17 @@
+{
+ "name": "inflatelib",
+ "version": "0.1.0",
+ "description": "A Deflate and Deflate64 decompression library",
+ "homepage": "https://github.com/microsoft/inflatelib",
+ "license": "MIT",
+ "dependencies": [
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}