Skip to content

Commit

Permalink
media-libs/mesa: Allow building with USE="-X -egl"
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/739598
Signed-off-by: Matt Turner <[email protected]>
  • Loading branch information
mattst88 committed Dec 1, 2020
1 parent 49f6bb5 commit 8d462cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion media-libs/mesa/mesa-20.3.0_rc3.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,12 @@ multilib_src_configure() {
use wayland && platforms+=",wayland"
[[ -n $platforms ]] && emesonargs+=(-Dplatforms=${platforms#,})

if use X || use egl; then
emesonargs+=(-Dglvnd=true)
else
emesonargs+=(-Dglvnd=false)
fi

if use gallium; then
emesonargs+=(
$(meson_feature llvm)
Expand Down Expand Up @@ -492,7 +498,6 @@ multilib_src_configure() {
emesonargs+=(
$(meson_use test build-tests)
-Dglx=$(usex X dri disabled)
-Dglvnd=true
-Dshared-glapi=enabled
$(meson_feature dri3)
$(meson_feature egl)
Expand Down
7 changes: 6 additions & 1 deletion media-libs/mesa/mesa-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,12 @@ multilib_src_configure() {
use wayland && platforms+=",wayland"
[[ -n $platforms ]] && emesonargs+=(-Dplatforms=${platforms#,})

if use X || use egl; then
emesonargs+=(-Dglvnd=true)
else
emesonargs+=(-Dglvnd=false)
fi

if use gallium; then
emesonargs+=(
$(meson_feature llvm)
Expand Down Expand Up @@ -491,7 +497,6 @@ multilib_src_configure() {
emesonargs+=(
$(meson_use test build-tests)
-Dglx=$(usex X dri disabled)
-Dglvnd=true
-Dshared-glapi=enabled
$(meson_feature dri3)
$(meson_feature egl)
Expand Down

0 comments on commit 8d462cc

Please sign in to comment.