aboutsummaryrefslogtreecommitdiff
path: root/ports/libkeyfinder/portfile.cmake
diff options
context:
space:
mode:
authorBe <be@mixxx.org>2021-01-28 19:21:46 -0800
committerGitHub <noreply@github.com>2021-01-28 19:21:46 -0800
commit2eece71f53de6f9a83d2b686b8adceb40100a134 (patch)
treef9b111121b0fbd5672452d21ab57b9f1ec7ec393 /ports/libkeyfinder/portfile.cmake
parentc5bffbd985a40efa10213143bbb6c3617ba19a7b (diff)
downloadvcpkg-2eece71f53de6f9a83d2b686b8adceb40100a134.tar.gz
vcpkg-2eece71f53de6f9a83d2b686b8adceb40100a134.zip
[libkeyfinder] add new port with libkeyfinder 2.2.4 (#15878)
Diffstat (limited to 'ports/libkeyfinder/portfile.cmake')
-rw-r--r--ports/libkeyfinder/portfile.cmake24
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/libkeyfinder/portfile.cmake b/ports/libkeyfinder/portfile.cmake
new file mode 100644
index 000000000..0eba972be
--- /dev/null
+++ b/ports/libkeyfinder/portfile.cmake
@@ -0,0 +1,24 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO mixxxdj/libkeyfinder
+ REF v2.2.4
+ SHA512 6673b9a81dbfa3693fc4e7af4e5fc0f351f0c60b00fdafeb9e3437e2f77b5fec7d1e78e3989ff1daca72770a1d3cdbe3837508718b8e8aba3ac3f3d56af81a56
+ HEAD_REF main
+)
+
+vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
+ test BUILD_TESTING
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS ${FEATURE_OPTIONS}
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/KeyFinder TARGET_PATH share/KeyFinder)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)