[chromaprint] Update to v1.5.1 (#33497)

* [chromaprint] Update to v1.5.1

* Disable test build
This commit is contained in:
Cheney Wang 2023-09-02 03:01:11 +08:00 committed by GitHub
parent 0d906bd5c0
commit f4a2113a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 36 deletions

View File

@ -1,23 +0,0 @@
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(

View File

@ -1,17 +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
REF "v${VERSION}"
SHA512 ea16e4d2b879c15b1d9b9ec93878da8b893f1834c70942663e1d2d106c2e0a661094fe2dd3bae7a6c2a1f9d5d8fab5e0b0ba493561090cf57b2228606fad1e66
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DBUILD_TESTS=OFF
)
vcpkg_cmake_install()
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)
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.md")

View File

@ -1,7 +1,6 @@
{
"name": "chromaprint",
"version": "1.5.0",
"port-version": 3,
"version": "1.5.1",
"description": "C library for generating audio fingerprints used by AcoustID",
"homepage": "https://github.com/acoustid/chromaprint",
"license": "LGPL-2.1-or-later",
@ -11,10 +10,6 @@
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

View File

@ -1529,8 +1529,8 @@
"port-version": 7
},
"chromaprint": {
"baseline": "1.5.0",
"port-version": 3
"baseline": "1.5.1",
"port-version": 0
},
"chromium-base": {
"baseline": "86.0.4199.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "a33e3947df39a3ac4e7d434f7f3890d0bf80cf39",
"version": "1.5.1",
"port-version": 0
},
{
"git-tree": "2186fe85098c877929c5e1a8916ae9d23fc0a540",
"version": "1.5.0",