2021-07-17 04:53:49 +09:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO axboe/liburing
|
2022-09-16 02:44:02 +08:00
|
|
|
REF dda4848a9911120a903bef6284fb88286f4464c9 #liburing-2.2
|
|
|
|
SHA512 c2e4969ffb895996bf7465ce86143d4d3401a052624ec19580d34e8adbb2b57801e03541493f61e19a3137984714db645b135b1bc3b41987bccfd926bb486c09
|
2021-07-17 04:53:49 +09:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
fix-configure.patch # ignore unsupported options, handle ENABLE_SHARED
|
2022-09-19 20:40:16 +02:00
|
|
|
disable-tests-and-examples.patch
|
2021-07-17 04:53:49 +09: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 04:53:49 +09:00
|
|
|
COPY_SOURCE
|
|
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-05-12 07:39:01 +08:00
|
|
|
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}")
|
2021-07-17 04:53:49 +09: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 04:53:49 +09: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")
|