[alpaka] Add new port, version 0.9.0 (#26812)

Co-authored-by: Jonliu1993 <13720414433@163.com>

Co-authored-by: Jonliu1993 <13720414433@163.com>
This commit is contained in:
Bernhard Manfred Gruber 2022-09-19 21:01:46 +02:00 committed by GitHub
parent bded093da1
commit 056a7303b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 63 additions and 0 deletions

View File

@ -0,0 +1,21 @@
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO alpaka-group/alpaka
REF 0.9.0
SHA512 c079c0101a1e1c0d244c074e19fcefa6c15751fbb6be072c6f245e515dece8700a40fd101b2b0ba5f9760f4545bf23e1917ea9804accbe16a45039f8b0ed8a01
HEAD_REF develop
)
set(VCPKG_BUILD_TYPE release)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}")
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/alpaka")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")

4
ports/alpaka/usage Normal file
View File

@ -0,0 +1,4 @@
alpaka provides CMake targets:
find_package(alpaka CONFIG REQUIRED)
target_link_libraries(main PRIVATE alpaka::alpaka)

25
ports/alpaka/vcpkg.json Normal file
View File

@ -0,0 +1,25 @@
{
"name": "alpaka",
"version": "0.9.0",
"description": "The alpaka library is a header-only abstraction library for accelerator development",
"homepage": "https://github.com/alpaka-group/alpaka",
"license": "MPL-2.0",
"dependencies": [
{
"name": "boost-core",
"version>=": "1.74"
},
{
"name": "boost-predef",
"version>=": "1.74"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}

9
versions/a-/alpaka.json Normal file
View File

@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "fa2a5d53283561fed784514fd0063badc589eb39",
"version": "0.9.0",
"port-version": 0
}
]
}

View File

@ -72,6 +72,10 @@
"baseline": "0.2.0", "baseline": "0.2.0",
"port-version": 0 "port-version": 0
}, },
"alpaka": {
"baseline": "0.9.0",
"port-version": 0
},
"alsa": { "alsa": {
"baseline": "1.2.6.1", "baseline": "1.2.6.1",
"port-version": 0 "port-version": 0