vcpkg/ports/soxr/portfile.cmake

34 lines
955 B
CMake
Raw Normal View History

2019-05-17 00:30:43 +08:00
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
2019-07-02 03:41:26 +08:00
URLS "https://netcologne.dl.sourceforge.net/project/soxr/soxr-0.1.3-Source.tar.xz"
FILENAME "soxr-0.1.3-Source.tar.xz"
SHA512 f4883ed298d5650399283238aac3dbe78d605b988246bea51fa343d4a8ce5ce97c6e143f6c3f50a3ff81795d9c19e7a07217c586d4020f6ced102aceac46aaa8
2019-05-17 00:30:43 +08:00
)
vcpkg_extract_source_archive_ex(
2019-07-02 03:41:26 +08:00
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
PATCHES
001_initialize-resampler.patch
002_disable_warning.patch
2019-07-02 03:42:53 +08:00
003_detect_arm_on_windows.patch
2019-05-17 00:30:43 +08:00
)
vcpkg_configure_cmake(
2019-07-02 03:41:26 +08:00
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTS=OFF
-DBUILD_EXAMPLES=OFF
-DWITH_OPENMP=OFF
-DWITH_LSR_BINDINGS=OFF
2019-05-17 00:30:43 +08:00
)
vcpkg_install_cmake()
file(INSTALL ${SOURCE_PATH}/LICENCE DESTINATION ${CURRENT_PACKAGES_DIR}/share/soxr RENAME copyright)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
2019-05-31 20:09:35 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)