2020-08-06 03:57:16 +08:00
|
|
|
vcpkg_fail_port_install(ON_ARCH "arm" "arm64")
|
2019-02-02 03:21:16 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dbry/WavPack
|
2020-02-11 08:08:57 +08:00
|
|
|
REF e158df5353b57ac7002d5cac4b3a040eba4c0c9f # 5.2.0
|
|
|
|
SHA512 a144c6a05ddef0c6f4c436b5e45fe1d56893587d983eda49067fbe93059ed7d910d98b82ee5fc8e4a935904bc2ff5596cbee59ed6a5fe81be4717e53cdfc44c0
|
2019-02-02 03:21:16 +08:00
|
|
|
HEAD_REF master
|
2019-05-25 00:50:17 +08:00
|
|
|
PATCHES
|
|
|
|
OpenSSL.patch
|
2019-02-02 03:21:16 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
|
|
|
OPTIONS
|
|
|
|
-DWAVPACK_INSTALL_DOCS=OFF
|
|
|
|
-DWAVPACK_BUILD_PROGRAMS=OFF
|
|
|
|
-DWAVPACK_BUILD_COOLEDIT_PLUGIN=OFF
|
|
|
|
-DWAVPACK_BUILD_WINAMP_PLUGIN=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DWAVPACK_BUILD_DOCS=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2020-08-06 03:57:16 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
|
|
else()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/WavPack)
|
|
|
|
endif()
|
2019-02-02 03:21:16 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
2019-09-06 01:43:09 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|