From 2e95bc8fee7a1a52a409223fe374c5c734b2b19c Mon Sep 17 00:00:00 2001 From: Owen Rafferty Date: Fri, 19 Jul 2024 19:30:08 -0500 Subject: [PATCH] libplacebo: drop vulkan-headers dependency --- extra/libplacebo/build | 2 ++ extra/libplacebo/checksums | 1 + extra/libplacebo/depends | 1 - extra/libplacebo/patches/no-vulkan-headers.patch | 11 +++++++++++ extra/libplacebo/sources | 1 + 5 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 extra/libplacebo/patches/no-vulkan-headers.patch diff --git a/extra/libplacebo/build b/extra/libplacebo/build index 8606aae6..0cfd17c1 100755 --- a/extra/libplacebo/build +++ b/extra/libplacebo/build @@ -2,6 +2,8 @@ export DESTDIR="$1" +patch -p1 < no-vulkan-headers.patch + meson setup \ -Dprefix=/usr \ -Dbuildtype=release \ diff --git a/extra/libplacebo/checksums b/extra/libplacebo/checksums index c3f44691..9862c091 100644 --- a/extra/libplacebo/checksums +++ b/extra/libplacebo/checksums @@ -1 +1,2 @@ 3363de224b28315dc695160d44bdc2eff3d6856b5e379583b5c720b5fff766aada +b53cad5829a26f43721e45852aa7cfdf200c0063804ed2451649bc5a0e104a6984 diff --git a/extra/libplacebo/depends b/extra/libplacebo/depends index 73dbe3ab..8f15e3c6 100644 --- a/extra/libplacebo/depends +++ b/extra/libplacebo/depends @@ -1,4 +1,3 @@ meson make python-glad make python-markupsafe make -vulkan-headers make diff --git a/extra/libplacebo/patches/no-vulkan-headers.patch b/extra/libplacebo/patches/no-vulkan-headers.patch new file mode 100644 index 00000000..51ba53e7 --- /dev/null +++ b/extra/libplacebo/patches/no-vulkan-headers.patch @@ -0,0 +1,11 @@ +diff --git a/src/vulkan/meson.build b/src/vulkan/meson.build +index 64c5572..b4bd46a 100644 +--- a/src/vulkan/meson.build ++++ b/src/vulkan/meson.build +@@ -54,6 +54,4 @@ if vulkan_build.allowed() + build_deps += vulkan_loader + tests += 'vulkan.c' + endif +-else +- sources += 'vulkan/stubs.c' + endif diff --git a/extra/libplacebo/sources b/extra/libplacebo/sources index fe001e6a..a94e3127 100644 --- a/extra/libplacebo/sources +++ b/extra/libplacebo/sources @@ -1 +1,2 @@ https://code.videolan.org/videolan/libplacebo/-/archive/v7.349.0/libplacebo-v7.349.0.tar.gz +patches/no-vulkan-headers.patch