aboutsummaryrefslogtreecommitdiff
path: root/ports/chromaprint/portfile.cmake
blob: 286edaeb38ae4c8880db4b0b7dd5b767c19364dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)