2019-02-02 03:21:16 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dbry/WavPack
|
2024-09-30 23:56:14 +08:00
|
|
|
REF ${VERSION}
|
|
|
|
SHA512 7a0b00ee19a784b5a2ae40c1d86ddf47d989b0302ee32e6b2f4db828d632b877566f9bb8c1998d129b022f988966f29db05b7a2b59cefdd5b603292ea20464ec
|
|
|
|
PATCHES
|
|
|
|
CMakeLists-patch.diff
|
|
|
|
config-patch.diff
|
2019-02-02 03:21:16 +08:00
|
|
|
)
|
|
|
|
|
2022-04-30 02:42:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-07-14 04:53:41 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-02-02 03:21:16 +08:00
|
|
|
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
|
2023-12-14 15:45:12 +08:00
|
|
|
-DWAVPACK_ENABLE_LIBCRYPTO=OFF
|
2019-02-02 03:21:16 +08:00
|
|
|
)
|
|
|
|
|
2022-04-30 02:42:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-02-02 03:21:16 +08:00
|
|
|
|
2020-08-06 03:57:16 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
2022-04-30 02:42:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH cmake)
|
2020-08-06 03:57:16 +08:00
|
|
|
else()
|
2022-04-30 02:42:37 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/WavPack)
|
2020-08-06 03:57:16 +08:00
|
|
|
endif()
|
2019-02-02 03:21:16 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-09-28 12:03:06 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-02-02 03:21:16 +08:00
|
|
|
|
2021-09-28 12:03:06 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-08-19 03:58:14 +08:00
|
|
|
|
2024-06-15 02:40:01 +08:00
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
2020-08-19 03:58:14 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
2023-01-17 04:51:32 +08:00
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "release")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/lib/pkgconfig/wavpack.pc" "-lwavpack" "-lwavpackdll")
|
|
|
|
endif()
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig/wavpack.pc" "-lwavpack" "-lwavpackdll")
|
|
|
|
endif()
|
2020-08-19 03:58:14 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|