aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWillard <4367282+TheWillard@users.noreply.github.com>2020-08-05 23:09:18 +0200
committerGitHub <noreply@github.com>2020-08-05 14:09:18 -0700
commiteb6acb0703bcced5747e331b547f42e25aea6798 (patch)
tree4d1b2684c15034c1c9fd81f889f7d04bd1126d44
parent3ecb635ef13ddfeb158a9e5a03b330f06589a717 (diff)
downloadvcpkg-eb6acb0703bcced5747e331b547f42e25aea6798.tar.gz
vcpkg-eb6acb0703bcced5747e331b547f42e25aea6798.zip
[lzokay] Add new port (#12655)
* added port for lzokay * formatting, move check_linkage to line one, use port variable
-rw-r--r--ports/lzokay/portfile.cmake23
-rw-r--r--ports/lzokay/vcpkg.json6
2 files changed, 29 insertions, 0 deletions
diff --git a/ports/lzokay/portfile.cmake b/ports/lzokay/portfile.cmake
new file mode 100644
index 000000000..719c63d97
--- /dev/null
+++ b/ports/lzokay/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO jackoalan/lzokay
+ REF 546a9695271e8a8b4711383f828172754fd825f2
+ SHA512 b4e96183ea52dc5ba0d88b4b9b27baa2c3e2c540b1bfd50cf7a3c2569337fbe9d73dd9939cb456d5f7459df8e10d84677d40ee33f7d524f0f5f8a723d7a70583
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
diff --git a/ports/lzokay/vcpkg.json b/ports/lzokay/vcpkg.json
new file mode 100644
index 000000000..60e52a0ed
--- /dev/null
+++ b/ports/lzokay/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "lzokay",
+ "version-string": "2020-07-30",
+ "homepage": "https://github.com/jackoalan/lzokay",
+ "description": "lzokay – MIT licensed C++ implementation of LZO compression/decompression algorithm"
+}