diff --git a/srcpkgs/libplacebo/patches/fix-compilation.patch b/srcpkgs/libplacebo/patches/fix-compilation.patch new file mode 100644 index 00000000000..41f62b08a3c --- /dev/null +++ b/srcpkgs/libplacebo/patches/fix-compilation.patch @@ -0,0 +1,15 @@ +Source: maxice8 +Upstream: no, revert of https://github.com/haasn/libplacebo/commit/bcb73f3ae243f515d5c60b5d72db5e386987ef8e +Reason: fixes compilation with our shaderc + +--- src/spirv_shaderc.c ++++ src/spirv_shaderc.c +@@ -68,7 +68,7 @@ static bool shaderc_init(struct spirv_compiler *spirv) + goto error; + + shaderc_compile_options_set_optimization_level(p->opts, +- shaderc_optimization_level_performance); ++ shaderc_optimization_level_size); + + int ver, rev; + shaderc_get_spv_version(&ver, &rev); diff --git a/srcpkgs/libplacebo/template b/srcpkgs/libplacebo/template index 83c525867f4..541de863a5f 100644 --- a/srcpkgs/libplacebo/template +++ b/srcpkgs/libplacebo/template @@ -1,8 +1,11 @@ # Template file for 'libplacebo' pkgname=libplacebo version=0.5.0 -revision=1 +revision=2 build_style=meson +configure_args="-Dvulkan=true -Dglslang=true -Dshaderc=true" +hostmakedepends="pkg-config" +makedepends="vulkan-loader glslang shaderc Vulkan-Headers" short_desc="Reusable library for GPU-accelerated video/image rendering" maintainer="maxice8 " license="LGPL-2.1-or-later"