2021-07-17 03:53:49 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO axboe/liburing
|
2023-06-03 02:17:21 +08:00
|
|
|
REF "liburing-${VERSION}"
|
2023-12-01 18:03:33 +08:00
|
|
|
SHA512 53742c23211de7194322874eb8186b942ccc1611c231d49f60fd1d8bc2bb93d231ed521af77802db68c30557d71fa5799ae40cbacfc24ba1db3d650c7ba8cc62
|
2021-07-17 03:53:49 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-configure.patch # ignore unsupported options, handle ENABLE_SHARED
|
2022-09-20 02:40:16 +08:00
|
|
|
disable-tests-and-examples.patch
|
2021-07-17 03:53:49 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# note: check ${SOURCE_PATH}/liburing.spec before updating configure options
|
|
|
|
vcpkg_configure_make(
|
2022-05-12 07:39:01 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-07-17 03:53:49 +08:00
|
|
|
COPY_SOURCE
|
2023-06-23 04:50:07 +08:00
|
|
|
OPTIONS
|
|
|
|
[[--libdevdir=\${prefix}/lib]] # must match libdir
|
2021-07-17 03:53:49 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2023-06-03 02:17:21 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2022-05-12 07:39:01 +08:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2021-07-17 03:53:49 +08:00
|
|
|
|
|
|
|
# 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")
|
2022-05-12 07:39:01 +08:00
|
|
|
file(REMOVE "${CURRENT_PACKAGES_DIR}/debug/lib/liburing.a"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib/liburing.a"
|
2021-07-17 03:53:49 +08:00
|
|
|
)
|
|
|
|
endif()
|
2022-05-12 07:39:01 +08:00
|
|
|
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")
|