From 83b7db8dc57c5c9b585e208a9e27b3b22d82b3de Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 10 Jul 2026 12:23:21 +0300 Subject: [PATCH] Add package flags --- info.yml | 8 +++++++- recipe.sh | 21 +++++++++++---------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/info.yml b/info.yml index 0a433cf..3653b05 100644 --- a/info.yml +++ b/info.yml @@ -1,7 +1,7 @@ name: mesa description: Open source implementations of OpenGL, OpenGL ES, Vulkan, OpenCL, and more version: 26.1.4 -revision: 1 +revision: 2 url: https://www.mesa3d.org/ license: MIT and BSD-3-Clause and SGI-B-2.0 maintainers: @@ -48,6 +48,12 @@ make_depends: - wayland-protocols - xcb-util-keysyms - xorgproto +flags: + - name: video-codecs + default_value: all_free + accepted_values: + - value: all_free + - value: all provides: - opencl-driver - opengl-driver diff --git a/recipe.sh b/recipe.sh index 447b90d..6694f45 100644 --- a/recipe.sh +++ b/recipe.sh @@ -5,20 +5,21 @@ # The build function is executed in the source directory # This function is used to compile the source code build() { - meson setup --prefix=/usr \ - --libdir=/usr/lib \ - --buildtype=release \ + meson setup --prefix=/usr \ + --libdir=/usr/lib \ + --buildtype=release \ -Dplatforms=x11,wayland \ - -Dvulkan-drivers=amd,gfxstream,intel,intel_hasvk,nouveau,swrast,virtio,microsoft-experimental \ + -Dvulkan-drivers=amd,gfxstream,intel,intel_hasvk,nouveau,swrast,virtio,microsoft-experimental \ -Dgallium-drivers=r300,r600,radeonsi,nouveau,virgl,svga,llvmpipe,softpipe,iris,crocus,i915,zink,d3d12 \ - -D gallium-extra-hud=true \ + -D gallium-extra-hud=true \ -D gallium-mediafoundation=disabled \ - -D gallium-rusticl=true \ + -D gallium-rusticl=true \ -Dandroid-libbacktrace=disabled \ - -Dmicrosoft-clc=disabled \ - -Dglvnd=enabled \ - -Dvalgrind=enabled \ - -Dlibunwind=disabled \ + -Dmicrosoft-clc=disabled \ + -Dglvnd=enabled \ + -Dvalgrind=enabled \ + -Dvideo-codecs="$BPM_PKG_FLAG_VIDEO_CODECS" \ + -Dlibunwind=disabled \ build meson compile -C build }