Skip to content

Commit

Permalink
WIP [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
dg0yt committed Jan 9, 2024
1 parent d8670f1 commit 330b098
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 29 deletions.
25 changes: 25 additions & 0 deletions ports/libdrm/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
vcpkg_check_linkage(ONLY_DYNAMIC_CRT)

vcpkg_from_gitlab(
GITLAB_URL https://gitlab.freedesktop.org
OUT_SOURCE_PATH SOURCE_PATH
REPO mesa/drm
REF libdrm-${VERSION}
SHA512 620398e6e2d44c61f9ab90036d03a1f236213aa865623e96cae08960fcd43a4802a2c55cd9fd1a16c5a66f48373d30c6e70899895bdb3965208b28eefce29626
FILE_DISAMBIGUATOR 1
HEAD_REF main
)

vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS

)
vcpkg_install_meson()
vcpkg_fixup_pkgconfig()

file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

file(WRITE "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright" [[
Most source files are under a MIT-style license.
]])
8 changes: 8 additions & 0 deletions ports/libdrm/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "libdrm",
"version": "2.4.119",
"description": "Userspace library for accessing the direct rendering manager (DRM)",
"homepage": "https://www.mesa3d.org/",
"license": null,
"supports": "!apple & !ios & !windows"
}
2 changes: 1 addition & 1 deletion ports/mesa/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ vcpkg_from_gitlab(
REF mesa-${VERSION}
SHA512 96f7602c98d532a269116bd5d3f9cbe87ca4425b309467cc19f83277a0faaa9804edea72dcaeb6f7774cac17790d5d76b58c357ef639cb6064e7480d93b861bf
FILE_DISAMBIGUATOR 1
HEAD_REF master
HEAD_REF main
PATCHES
gallium-fix-build-with-llvm-17.patch
clover-llvm-move-to-modern-pass-manager.patch
Expand Down
39 changes: 14 additions & 25 deletions ports/mesa/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"license": "MIT AND BSL-1.0 AND SGI-B-2.0",
"supports": "!(windows & arm) & !staticcrt & !uwp",
"dependencies": [
{
"name": "libdrm",
"platform": "android | freebsd | linux | openbsd"
},
{
"name": "vcpkg-get-python-packages",
"host": true
Expand All @@ -19,31 +23,16 @@
"zstd"
],
"default-features": [
"default-features"
"gles1",
"gles2",
{
"name": "llvm",
"platform": "x64"
},
"opengl",
"vulkan"
],
"features": {
"default-features": {
"description": "Platform dependent default features",
"dependencies": [
{
"name": "mesa",
"default-features": false,
"features": [
"gles1",
"gles2",
"opengl"
]
},
{
"name": "mesa",
"default-features": false,
"features": [
"llvm"
],
"platform": "x64"
}
]
},
"egl": {
"description": "Build support for EGL platform",
"dependencies": [
Expand Down Expand Up @@ -132,13 +121,13 @@
"vulkan-drivers": {
"description": "Build Vulkan drivers applicable to the target",
"dependencies": [
"vulkan-headers",
{
"name": "glslang",
"features": [
"tools"
]
}
},
"vulkan-headers"
]
}
}
Expand Down
3 changes: 0 additions & 3 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,6 @@ mecab:x86-windows = skip
memorymodule:arm-neon-android=fail
memorymodule:arm64-android=fail
memorymodule:x64-android=fail
# Missing dependent libraries.
mesa:x64-linux=fail
mesa:x64-osx=fail
mfx-dispatch:arm-neon-android=fail
mfx-dispatch:arm64-android=fail
mfx-dispatch:x64-android=fail
Expand Down

0 comments on commit 330b098

Please sign in to comment.