early-access version 2853
This commit is contained in:
23
externals/vcpkg/ports/chromaprint/fix_lrintf_detection.patch
vendored
Executable file
23
externals/vcpkg/ports/chromaprint/fix_lrintf_detection.patch
vendored
Executable file
@@ -0,0 +1,23 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 3a0eecb..4fa5e8d 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -17,6 +17,7 @@ set_property(CACHE FFT_LIB PROPERTY STRINGS avfft fftw3 fftw3f kissfft vdsp)
|
||||
|
||||
include(CMakePushCheckState)
|
||||
include(CheckFunctionExists)
|
||||
+include(CheckSymbolExists)
|
||||
include(CheckCXXCompilerFlag)
|
||||
|
||||
find_package(Threads)
|
||||
@@ -37,8 +38,8 @@ endif()
|
||||
|
||||
cmake_push_check_state(RESET)
|
||||
set(CMAKE_REQUIRED_LIBRARIES -lm)
|
||||
-check_function_exists(lrintf HAVE_LRINTF)
|
||||
-check_function_exists(round HAVE_ROUND)
|
||||
+check_symbol_exists(lrintf math.h HAVE_LRINTF)
|
||||
+check_symbol_exists(round math.h HAVE_ROUND)
|
||||
cmake_pop_check_state()
|
||||
|
||||
add_definitions(
|
||||
18
externals/vcpkg/ports/chromaprint/portfile.cmake
vendored
Executable file
18
externals/vcpkg/ports/chromaprint/portfile.cmake
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO acoustid/chromaprint
|
||||
REF v1.5.0
|
||||
SHA512 333114949928abdf5d4b11aba1db6ec487eebe526324c68d903b3fa80a3af87a28d942af765a2f873e63a1bf222b658b6438cd10cde4446f61b26ea91f537469
|
||||
PATCHES
|
||||
fix_lrintf_detection.patch # submitted upstream as https://github.com/acoustid/chromaprint/pull/85
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
)
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
11
externals/vcpkg/ports/chromaprint/vcpkg.json
vendored
Executable file
11
externals/vcpkg/ports/chromaprint/vcpkg.json
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "chromaprint",
|
||||
"version": "1.5.0",
|
||||
"port-version": 1,
|
||||
"description": "C library for generating audio fingerprints used by AcoustID",
|
||||
"homepage": "https://github.com/acoustid/chromaprint",
|
||||
"license": "LGPL-2.1-or-later",
|
||||
"dependencies": [
|
||||
"ffmpeg"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user