Skip to content

Commit

Permalink
media-libs/glew: Rename new wayland-only flag to egl-only
Browse files Browse the repository at this point in the history
EGL is not Wayland-specific. It can be used with KMS, for example. Even X11
supports EGL, although GLEW doesn't seem to support that case. See
nigels-com/glew#328 for more details.

Signed-off-by: James Le Cuirot <[email protected]>
  • Loading branch information
chewi committed Aug 28, 2023
1 parent a08d844 commit 2380a87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions media-libs/glew/glew-2.2.0-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
LICENSE="BSD MIT"
SLOT="0/$(ver_cut 1-2)"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
IUSE="doc static-libs wayland-only"
IUSE="doc egl-only static-libs"

DEPEND="
>=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
>=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
!wayland-only? (
!egl-only? (
>=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}]
>=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}]
>=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}]
Expand Down Expand Up @@ -54,7 +54,7 @@ src_prepare() {

glew_system() {
# Set the SYSTEM variable instead of probing. #523444 #595280
if use wayland-only; then
if use egl-only; then
echo "linux-egl"
else
case ${CHOST} in
Expand Down
3 changes: 3 additions & 0 deletions media-libs/glew/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@
<remote-id type="github">nigels-com/glew</remote-id>
<remote-id type="sourceforge">glew</remote-id>
</upstream>
<use>
<flag name="egl-only">Enable EGL support and disable X11 support</flag>
</use>
</pkgmetadata>

0 comments on commit 2380a87

Please sign in to comment.