mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-20 20:27:56 +08:00
d0f5e56832
* [libsndfile] Update to 1.1.0 * Update to 1.1.0 * Add `mpeg` and `regtest` features to sync with upstream. * Add fix for mp3lame * Stop using deprecated functions * Update versions * Update fix * Update versions * More fixes * More updates
59 lines
1.5 KiB
CMake
59 lines
1.5 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO libsndfile/libsndfile
|
|
REF 1.1.0
|
|
SHA512 5e530c33165a2d2be1c22d3a4bd96f0f1817dded3a45d24bad0e3f2c7908ccc1f19327a91d5040c3ea4d591845876019180747a125bf2a6f8bd49a6f67eadacd
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-mp3lame.patch
|
|
fix-uwp.patch
|
|
)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
vcpkg_find_acquire_program(PYTHON3)
|
|
endif()
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
external-libs ENABLE_EXTERNAL_LIBS
|
|
mpeg ENABLE_MPEG
|
|
regtest BUILD_REGTEST
|
|
)
|
|
|
|
if(VCPKG_TARGET_IS_UWP)
|
|
set(VCPKG_C_FLAGS "/sdl- ${VCPKG_C_FLAGS}")
|
|
set(VCPKG_CXX_FLAGS "/sdl- ${VCPKG_CXX_FLAGS}")
|
|
endif()
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DBUILD_TESTING=OFF
|
|
-DENABLE_BOW_DOCS=OFF
|
|
-DBUILD_PROGRAMS=OFF
|
|
-DBUILD_REGTEST=OFF
|
|
-DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON
|
|
-DPYTHON_EXECUTABLE=${PYTHON3}
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
if(WIN32 AND (NOT MINGW) AND (NOT CYGWIN))
|
|
set(CONFIG_PATH cmake)
|
|
else()
|
|
set(CONFIG_PATH lib/cmake/SndFile)
|
|
endif()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME SndFile CONFIG_PATH ${CONFIG_PATH})
|
|
vcpkg_fixup_pkgconfig(SYSTEM_LIBRARIES m)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|