early-access version 2853
This commit is contained in:
35
externals/vcpkg/ports/liburing/fix-configure.patch
vendored
Executable file
35
externals/vcpkg/ports/liburing/fix-configure.patch
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
diff --git a/configure b/configure
|
||||
index 3b96cde..56d5cb0 100755
|
||||
--- a/configure
|
||||
+++ b/configure
|
||||
@@ -18,16 +18,18 @@ for opt do
|
||||
;;
|
||||
--mandir=*) mandir="$optarg"
|
||||
;;
|
||||
- --datadir=*) datadir="$optarg"
|
||||
+ --datarootdir=*) datadir="$optarg"
|
||||
;;
|
||||
--cc=*) cc="$optarg"
|
||||
;;
|
||||
--cxx=*) cxx="$optarg"
|
||||
;;
|
||||
+ --enable-shared) ENABLE_SHARED=1
|
||||
+ ;;
|
||||
+ --enable-static) ENABLE_SHARED=0
|
||||
+ ;;
|
||||
*)
|
||||
- echo "ERROR: unknown option $opt"
|
||||
- echo "Try '$0 --help' for more information"
|
||||
- exit 1
|
||||
+ echo "WARNING: unknown option $opt"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
@@ -119,6 +121,7 @@ echo "# Automatically generated by configure - do not modify" > $config_host_mak
|
||||
printf "# Configured with:" >> $config_host_mak
|
||||
printf " '%s'" "$0" "$@" >> $config_host_mak
|
||||
echo >> $config_host_mak
|
||||
+echo "ENABLE_SHARED=${ENABLE_SHARED}" >> $config_host_mak
|
||||
|
||||
do_cxx() {
|
||||
# Run the compiler, capturing its output to the log.
|
||||
11
externals/vcpkg/ports/liburing/fix-spec-version.patch
vendored
Executable file
11
externals/vcpkg/ports/liburing/fix-spec-version.patch
vendored
Executable file
@@ -0,0 +1,11 @@
|
||||
diff --git a/liburing.spec b/liburing.spec
|
||||
index fa4d970..8607074 100644
|
||||
--- a/liburing.spec
|
||||
+++ b/liburing.spec
|
||||
@@ -1,5 +1,5 @@
|
||||
Name: liburing
|
||||
-Version: 2.0
|
||||
+Version: 2.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Linux-native io_uring I/O access library
|
||||
License: (GPLv2 with exceptions and LGPLv2+) or MIT
|
||||
35
externals/vcpkg/ports/liburing/portfile.cmake
vendored
Executable file
35
externals/vcpkg/ports/liburing/portfile.cmake
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO axboe/liburing
|
||||
REF 41a61c97c2e3df4475c93fdf5026d575ce3f1377 #liburing-2.1
|
||||
SHA512 adbfee9a775ff0977c192b52f5cc2c52b2b40bf5e7c0c1153d88b7767889c7c8a39863da0bce3ebed0f396a453e879633ecf1c79f4f2c4f89407ff896d8b6222
|
||||
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
|
||||
)
|
||||
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")
|
||||
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")
|
||||
6
externals/vcpkg/ports/liburing/usage
vendored
Executable file
6
externals/vcpkg/ports/liburing/usage
vendored
Executable file
@@ -0,0 +1,6 @@
|
||||
The package liburing can be imported via CMake FindPkgConfig module:
|
||||
|
||||
find_package(PkgConfig)
|
||||
pkg_check_modules(liburing REQUIRED IMPORTED_TARGET GLOBAL liburing>=2.0)
|
||||
|
||||
target_link_libraries(main PRIVATE PkgConfig::liburing)
|
||||
8
externals/vcpkg/ports/liburing/vcpkg.json
vendored
Executable file
8
externals/vcpkg/ports/liburing/vcpkg.json
vendored
Executable file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "liburing",
|
||||
"version": "2.1",
|
||||
"description": "Linux-native io_uring I/O access library",
|
||||
"homepage": "https://github.com/axboe/liburing",
|
||||
"license": null,
|
||||
"supports": "linux"
|
||||
}
|
||||
Reference in New Issue
Block a user