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 93f757b2c1abe16be589e0d191e6c0416c5980843bd416cd5cb820b65a705d98081c0fc7ca0d9880af54b5343318262c77ba39a096bb240ceec084e93ceef964
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")