mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 23:35:31 +08:00
75bd2efe0d
* [many ports] 2019.09.14 Updates * Revert failure ports * Revert failure ports * Revert failure ports * [urdfdom] Fix find dependency console_bridge * Revert failure ports * [devil] Compatible with jasper 2.0.20 * [devil] Refix compatible with jasper functions declaration on different os * Update ports/alembic/CONTROL Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> * Revert failure ports wangle * [azure-kinect-sensor-sdk] Fix build with matroska 1.6.2 * Revert failure ports * Revert failure ports * [urdfdom-headers] Fix include path in config.cmake file * upload patch * [urdfdom-headers] Refix include path in config.cmake file * [qt5-imageformats] Fix missing include math.h * [urdfdom-headers] Refix include path in config.cmake file * [qt5] Fix adding option PATCHES and other options when using qt_submodule_installation * Remove updated ports version * Commit suggestions * [libideviceactivation] revert Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
50 lines
1.5 KiB
CMake
50 lines
1.5 KiB
CMake
vcpkg_fail_port_install(ON_ARCH "arm" "arm64")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO dbry/WavPack
|
|
REF 350b6d7737383029573ea2cce9bd94f1b6756bbd # 5.3.0
|
|
SHA512 42116b41b8df179193822d25ea34d2c1d9a2af3598f7d25c6665d31aca11a3a11984cdb17b05e5d0874c94562e1b471736f6a1ae67bd3a22d018cd142676634c
|
|
HEAD_REF master
|
|
PATCHES
|
|
OpenSSL.patch
|
|
)
|
|
|
|
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()
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
|
else()
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/WavPack)
|
|
endif()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
if(WIN32 AND (NOT MINGW))
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/wavpack.pc" "-lwavpack" "-lwavpackdll")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/wavpack.pc" "-lwavpack" "-lwavpackdll")
|
|
endif()
|
|
endif()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Post-build test for cmake libraries
|
|
# vcpkg_test_cmake(PACKAGE_NAME wavpack)
|