vcpkg/ports/soundtouch/portfile.cmake

37 lines
982 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
GITHUB_HOST https://codeberg.org
REPO soundtouch/soundtouch
REF ${VERSION}
SHA512 3d4d6314d6fccb3cb899aee36b90799bb9bf7cf1aad9ff2fff6b18c73e68be7e0e00a3f4e31d5dd340c979236f5474b7ef95d51ddb813f353dde920bdef4cb51
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
soundstretch SOUNDSTRETCH
soundtouchdll SOUNDTOUCH_DLL
)
if(SOUNDTOUCH_DLL)
vcpkg_check_linkage(ONLY_DYNAMIC_LIBRARY)
endif()
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SoundTouch)
vcpkg_fixup_pkgconfig()
vcpkg_copy_pdbs()
if(SOUNDSTRETCH)
vcpkg_copy_tools(TOOL_NAMES soundstretch AUTO_CLEAN)
endif()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING.TXT")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")