mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
37 lines
1.4 KiB
CMake
37 lines
1.4 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO axboe/liburing
|
|
REF "liburing-${VERSION}"
|
|
SHA512 53742c23211de7194322874eb8186b942ccc1611c231d49f60fd1d8bc2bb93d231ed521af77802db68c30557d71fa5799ae40cbacfc24ba1db3d650c7ba8cc62
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-configure.patch # ignore unsupported options, handle ENABLE_SHARED
|
|
disable-tests-and-examples.patch
|
|
)
|
|
|
|
# note: check ${SOURCE_PATH}/liburing.spec before updating configure options
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
COPY_SOURCE
|
|
OPTIONS
|
|
[[--libdevdir=\${prefix}/lib]] # must match libdir
|
|
)
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
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")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/man2")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/man3")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/${PORT}/man7")
|