diff options
author | Pavel Vinogradov | 2022-09-28 03:19:15 -0400 |
---|---|---|
committer | Pavel Vinogradov | 2022-09-28 03:19:15 -0400 |
commit | 0e69ae3538675fe7d41128695fbc49c72a2d9edc (patch) | |
tree | f9d7a585a76ce2971e9410981401c3013a0f3e8d /graphics-libs | |
parent | 5de28bac3f787e07bfcef334cd43d63a0b16d61d (diff) |
graphics-libs/mesa: added option so build some patented codecs for video acceleration
Diffstat (limited to 'graphics-libs')
-rwxr-xr-x | graphics-libs/mesa/BUILD | 5 | ||||
-rwxr-xr-x | graphics-libs/mesa/DEPENDS | 11 | ||||
-rw-r--r-- | graphics-libs/mesa/HISTORY | 4 |
3 files changed, 20 insertions, 0 deletions
diff --git a/graphics-libs/mesa/BUILD b/graphics-libs/mesa/BUILD index 97fc5891c4..905ca51119 100755 --- a/graphics-libs/mesa/BUILD +++ b/graphics-libs/mesa/BUILD @@ -24,6 +24,11 @@ if [[ "${MESA_BRANCH}" == "stable" ]]; then OPTS+=" use-elf-tls=false" fi && +if is_depends_enabled "${SPELL}" libva && + ! list_find "${MESA_VA_CODECS}" "none"; then + OPTS+=" video-codecs=${MESA_VA_CODECS// /,}" +fi && + local vulkan=${MESA_VULKAN//none} && local gallium=${MESA_GALLIUM//none} && local dri=${MESA_DRI//none} && diff --git a/graphics-libs/mesa/DEPENDS b/graphics-libs/mesa/DEPENDS index d1e98fbd93..19b207536e 100755 --- a/graphics-libs/mesa/DEPENDS +++ b/graphics-libs/mesa/DEPENDS @@ -43,6 +43,17 @@ fi && optional_depends libvdpau 'gallium-vdpau=enabled' 'gallium-vdpau=disabled' 'gallium vdpau state tracker' && optional_depends libxvmc 'gallium-xvmc=enabled' 'gallium-xvmc=disabled' 'gallium xvmc state tracker(obsolete)' && optional_depends libva 'gallium-va=enabled' 'gallium-va=disabled' 'gallium va state tracker' && +if is_depends_enabled "${SPELL}" libva; then + . $GRIMOIRE/config_query_multi.function && + config_query_multi MESA_VA_CODECS "Would you like to enable some patented codecs?" \ + none all vc1dec h264dec h264enc h265dec h265enc && + MESA_VA_CODECS="${MESA_VA_CODECS# }" && + if list_find "${MESA_VA_CODECS}" "all"; then + MESA_VA_CODECS="vc1dec h264dec h264enc h265dec h265enc" + fi +else + persistent_remove MESA_VA_CODECS +fi && #optional_depends libomxil 'gallium-omx=bellagio' 'gallium-omx=disabled' 'gallium omx bellagio state tracker' && #optional_depends tizonia 'gallium-omx=tizonia' 'gallium-omx=disabled' 'gallium omx state tracker' && #optional_depends libxa '' '' 'gallium xa state tracker' && diff --git a/graphics-libs/mesa/HISTORY b/graphics-libs/mesa/HISTORY index 6016a5c1f6..cfa45808c4 100644 --- a/graphics-libs/mesa/HISTORY +++ b/graphics-libs/mesa/HISTORY @@ -1,3 +1,7 @@ +2022-09-28 Pavel Vinogradov <public@sourcemage.org> + * BUILD, DEPENDS: added option so build some patented codecs for video + acceleration + 2022-09-21 Pavel Vinogradov <public@sourcemage.org> * DETAILS: version 22.2.0 |