mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 05:39:06 +08:00
[libaio] add new port (#39376)
This commit is contained in:
parent
293dded403
commit
9e611ba347
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "folly",
|
||||
"version-string": "2024.06.24.00",
|
||||
"port-version": 1,
|
||||
"description": "An open-source C++ library developed and used at Facebook. The library is UNSTABLE on Windows",
|
||||
"homepage": "https://github.com/facebook/folly",
|
||||
"license": "Apache-2.0",
|
||||
@ -46,7 +47,10 @@
|
||||
},
|
||||
"libaio": {
|
||||
"description": "Support compile with libaio",
|
||||
"supports": "linux & x64"
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
"libaio"
|
||||
]
|
||||
},
|
||||
"libsodium": {
|
||||
"description": "Support libsodium for cryto",
|
||||
@ -56,6 +60,7 @@
|
||||
},
|
||||
"liburing": {
|
||||
"description": "Support compile with liburing",
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
"liburing"
|
||||
]
|
||||
|
13
ports/libaio/CMakeLists.txt
Normal file
13
ports/libaio/CMakeLists.txt
Normal file
@ -0,0 +1,13 @@
|
||||
cmake_minimum_required(VERSION 3.20)
|
||||
project(libaio C)
|
||||
include(GNUInstallDirs)
|
||||
file(GLOB SRC_FILES src/*.c)
|
||||
add_library(aio ${SRC_FILES})
|
||||
target_include_directories(aio PUBLIC "${PROJECT_SOURCE_DIR}/src")
|
||||
install(TARGETS aio)
|
||||
install(FILES src/libaio.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}")
|
||||
set(PKG_CONFIG_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.pc")
|
||||
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/pkgconfig.pc.in" "${PKG_CONFIG_FILE_NAME}" @ONLY)
|
||||
install(FILES "${PKG_CONFIG_FILE_NAME}"
|
||||
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig"
|
||||
)
|
9
ports/libaio/pkgconfig.pc.in
Normal file
9
ports/libaio/pkgconfig.pc.in
Normal file
@ -0,0 +1,9 @@
|
||||
prefix=@CMAKE_INSTALL_PREFIX@
|
||||
includedir=${prefix}/@CMAKE_INSTALL_INCLUDEDIR@
|
||||
libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@
|
||||
|
||||
Name: libaio
|
||||
Description: The Linux-native asynchronous I/O facility
|
||||
Version: @VERSION@
|
||||
Cflags: -I${includedir}
|
||||
Libs: -L${libdir} -laio
|
23
ports/libaio/portfile.cmake
Normal file
23
ports/libaio/portfile.cmake
Normal file
@ -0,0 +1,23 @@
|
||||
vcpkg_download_distfile(ARCHIVE
|
||||
URLS "https://pagure.io/libaio/archive/libaio-${VERSION}/libaio-libaio-${VERSION}.tar.gz"
|
||||
FILENAME "libaio-${VERSION}.tar.gz"
|
||||
SHA512 8058c927de0b5f7079fc232d2be23272537694bf271488af1dc0330b58afc307931792ab138512c5e00aa3ea921935a6d862f575fb0cc2bf323de63d8df208cd
|
||||
)
|
||||
vcpkg_extract_source_archive(
|
||||
SOURCE_PATH
|
||||
ARCHIVE "${ARCHIVE}"
|
||||
)
|
||||
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
||||
file(COPY "${CMAKE_CURRENT_LIST_DIR}/pkgconfig.pc.in" DESTINATION "${SOURCE_PATH}")
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
-DVERSION=${VERSION}
|
||||
)
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_fixup_pkgconfig()
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|
14
ports/libaio/vcpkg.json
Normal file
14
ports/libaio/vcpkg.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "libaio",
|
||||
"version": "0.3.113",
|
||||
"description": "The Linux-native asynchronous I/O facility",
|
||||
"homepage": "https://pagure.io/libaio",
|
||||
"license": "LGPL-2.1",
|
||||
"supports": "linux",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -2798,7 +2798,7 @@
|
||||
},
|
||||
"folly": {
|
||||
"baseline": "2024.06.24.00",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"font-chef": {
|
||||
"baseline": "1.1.0",
|
||||
@ -4196,6 +4196,10 @@
|
||||
"baseline": "5.0",
|
||||
"port-version": 9
|
||||
},
|
||||
"libaio": {
|
||||
"baseline": "0.3.113",
|
||||
"port-version": 0
|
||||
},
|
||||
"libalkimia": {
|
||||
"baseline": "8.1.72",
|
||||
"port-version": 0
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "bcb430e2d5fe8557c51952641a32f7275d03d59a",
|
||||
"version-string": "2024.06.24.00",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "12071c37520ffcc065e785ebef788d96a81ffe8b",
|
||||
"version-string": "2024.06.24.00",
|
||||
|
9
versions/l-/libaio.json
Normal file
9
versions/l-/libaio.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "3a9b7f0cfa52b87c2fb6a8d666f76495745fa46c",
|
||||
"version": "0.3.113",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user