aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/libkeyfinder/portfile.cmake24
-rw-r--r--ports/libkeyfinder/vcpkg.json18
2 files changed, 42 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)
diff --git a/ports/libkeyfinder/vcpkg.json b/ports/libkeyfinder/vcpkg.json
new file mode 100644
index 000000000..c1fa0a6a8
--- /dev/null
+++ b/ports/libkeyfinder/vcpkg.json
@@ -0,0 +1,18 @@
+{
+ "name": "libkeyfinder",
+ "version-string": "2.2.4",
+ "description": "Musical key detection for digital audio",
+ "homepage": "https://github.com/mixxxdj/libkeyfinder",
+ "license": "GPL-3.0-or-later",
+ "dependencies": [
+ "fftw3"
+ ],
+ "features": {
+ "test": {
+ "description": "Build tests",
+ "dependencies": [
+ "catch2"
+ ]
+ }
+ }
+}