2020-10-20 10:53:20 +08:00
|
|
|
vcpkg_from_github(
|
2019-10-08 01:35:13 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-10-20 10:53:20 +08:00
|
|
|
REPO libsndfile/libsamplerate
|
2021-09-08 12:49:35 +08:00
|
|
|
REF 0.2.2
|
|
|
|
SHA512 37e0fd604907caf978659466289315befd66eec16c21a94e0b6106de18ffe803fbf2e7f3a8fb0430b33c0b784ecd6d4eaf3b9a862ed2670104647decbee913d6
|
2020-10-20 10:53:20 +08:00
|
|
|
HEAD_REF master
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2018-01-04 15:04:54 +08:00
|
|
|
|
2022-12-27 17:01:50 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-23 02:29:41 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTING=OFF
|
|
|
|
-DLIBSAMPLERATE_EXAMPLES=OFF
|
2018-01-04 15:04:54 +08:00
|
|
|
)
|
|
|
|
|
2022-12-27 17:01:50 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-01-04 15:04:54 +08:00
|
|
|
|
2022-12-27 17:01:50 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/SampleRate PACKAGE_NAME SampleRate)
|
2021-01-23 02:29:41 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-12-27 17:01:50 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
2018-01-04 15:04:54 +08:00
|
|
|
|
2022-12-27 17:01:50 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
2018-01-04 15:04:54 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|