mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 17:29:02 +08:00
c9e786d81a
* Bulk remove vcpkg_fail_port_install calls. Interesting ones have been split out into separate reviews, where "interesting" means "anything more than just deleting the call to vcpkg_fail_port_install", In support of https://github.com/microsoft/vcpkg/pull/21502 * Update version database. * Revert google benchmark changes already submitted as https://github.com/microsoft/vcpkg/pull/22728 * Repair version database.
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO axboe/liburing
|
|
REF liburing-2.0
|
|
SHA512 8a7b37600246d44a94d3fed1ca4bb60e76f9ddc60bd3c237e600b60e77961a1125c8a1f230cb7569f959acf10b68b91aafb4935c1c2fd13d5df7373b374e47f5
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-spec-version.patch # update version value for pkgconfig(.pc) files
|
|
fix-configure.patch # ignore unsupported options, handle ENABLE_SHARED
|
|
)
|
|
|
|
# note: check ${SOURCE_PATH}/liburing.spec before updating configure options
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
COPY_SOURCE
|
|
NO_DEBUG
|
|
)
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
file(INSTALL ${CURRENT_PORT_DIR}/usage
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
|
|
|
# note: {SOURCE_PATH}/src/Makefile makes liburing.so from liburing.a.
|
|
# For dynamic, remove intermediate file liburing.a when install is finished.
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
file(REMOVE ${CURRENT_PACKAGES_DIR}/debug/lib/liburing.a
|
|
${CURRENT_PACKAGES_DIR}/lib/liburing.a
|
|
)
|
|
endif()
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/man)
|