[lzokay] Add new port (#12655)

* added port for lzokay

* formatting, move check_linkage to line one, use port variable
This commit is contained in:
Willard 2020-08-05 23:09:18 +02:00 committed by GitHub
parent 3ecb635ef1
commit eb6acb0703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -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)

6
ports/lzokay/vcpkg.json Normal file
View File

@ -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"
}