Skip to content

Commit

Permalink
media-video/mpv: adjust opengl USE constraints in 9999
Browse files Browse the repository at this point in the history
This partially reverts 65e3818.
I'm not sure why opengl USE constraints were removed and not fixed.

Anyway, build system requires X, aqua, or libmpv USEs with opengl USE.
If you build with cli enabled you want something that can play videos.
Opengl bits in libmpv don't provide a working video playback with cli.
Hence libmpv USE doesn't satisfy opengl with cli, but X or aqua do.

Also pull virtual/opengl whenever X is enabled. This can be useful on
Mac OS to build against XQuartz. virtual/opengl is broken there though,
see Gentoo bugs 431182, 577520. Luckily, mpv isn't keyworded there too.

Package-Manager: Portage-2.3.3, Repoman-2.3.1
Closes: gentoo#3718
  • Loading branch information
Coacher authored and SoapGentoo committed Jan 29, 2017
1 parent 95437cf commit 8b2224c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion media-video/mpv/mpv-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ REQUIRED_USE="
gbm? ( drm egl )
lcms? ( || ( opengl egl ) )
luajit? ( lua )
opengl? ( || ( aqua X !cli? ( libmpv ) ) )
test? ( || ( opengl egl ) )
tools? ( cli )
uchardet? ( iconv )
Expand Down Expand Up @@ -88,7 +89,7 @@ COMMON_DEPEND="
luajit? ( dev-lang/luajit:2 )
)
openal? ( >=media-libs/openal-1.13 )
opengl? ( !aqua? ( virtual/opengl ) )
opengl? ( X? ( virtual/opengl ) )
pulseaudio? ( media-sound/pulseaudio )
raspberry-pi? (
>=media-libs/raspberrypi-userland-0_pre20160305-r1
Expand Down

0 comments on commit 8b2224c

Please sign in to comment.