Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libsdl2/
Date: Sat, 26 May 2018 21:38:10
Message-Id: 1527370675.d4ac42c0809428ada79ce54d2dae32860d73af50.chewi@gentoo
1 commit: d4ac42c0809428ada79ce54d2dae32860d73af50
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 26 21:36:28 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Sat May 26 21:37:55 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ac42c0
7
8 media-libs/libsdl2: Add kms and video_cards_vc4 USE flags
9
10 I haven't managed to get this to work but this is probably an upstream
11 issue so I'm adding the flag anyway. It may even work on slightly
12 older Mesa verions. See our bug report for details. No revbump as few
13 people will want this.
14
15 Closes: https://bugs.gentoo.org/656000
16 Package-Manager: Portage-2.3.40, Repoman-2.3.9
17
18 media-libs/libsdl2/libsdl2-2.0.8-r2.ebuild | 12 ++++++++++--
19 media-libs/libsdl2/metadata.xml | 1 +
20 2 files changed, 11 insertions(+), 2 deletions(-)
21
22 diff --git a/media-libs/libsdl2/libsdl2-2.0.8-r2.ebuild b/media-libs/libsdl2/libsdl2-2.0.8-r2.ebuild
23 index 4708e54718b..53817491c9c 100644
24 --- a/media-libs/libsdl2/libsdl2-2.0.8-r2.ebuild
25 +++ b/media-libs/libsdl2/libsdl2-2.0.8-r2.ebuild
26 @@ -13,7 +13,7 @@ LICENSE="ZLIB"
27 SLOT="0"
28 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
29
30 -IUSE="cpu_flags_x86_3dnow alsa altivec aqua custom-cflags dbus gles haptic libsamplerate +joystick cpu_flags_x86_mmx nas opengl oss pulseaudio +sound cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs +threads tslib udev +video wayland X xinerama xscreensaver"
31 +IUSE="cpu_flags_x86_3dnow alsa altivec aqua custom-cflags dbus gles haptic libsamplerate +joystick kms cpu_flags_x86_mmx nas opengl oss pulseaudio +sound cpu_flags_x86_sse cpu_flags_x86_sse2 static-libs +threads tslib udev +video video_cards_vc4 wayland X xinerama xscreensaver"
32 REQUIRED_USE="
33 alsa? ( sound )
34 gles? ( video )
35 @@ -28,10 +28,15 @@ RDEPEND="
36 alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] )
37 dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] )
38 gles? ( >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},gles2] )
39 + kms? (
40 + >=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}]
41 + >=media-libs/mesa-9.0.0[${MULTILIB_USEDEP},gbm]
42 + )
43 libsamplerate? ( media-libs/libsamplerate[${MULTILIB_USEDEP}] )
44 nas? (
45 >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}]
46 - >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] )
47 + >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}]
48 + )
49 opengl? (
50 >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}]
51 >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}]
52 @@ -125,6 +130,7 @@ multilib_src_configure() {
53 $(use_enable wayland video-wayland)
54 --disable-wayland-shared
55 --disable-video-mir
56 + $(use_enable video_cards_vc4 video-rpi)
57 $(use_enable X video-x11)
58 --disable-x11-shared
59 $(use_enable X video-x11-xcursor)
60 @@ -139,6 +145,8 @@ multilib_src_configure() {
61 --disable-video-directfb
62 --disable-fusionsound
63 --disable-fusionsound-shared
64 + $(use_enable kms video-kmsdrm)
65 + --disable-kmsdrm-shared
66 $(use_enable video video-dummy)
67 $(use_enable opengl video-opengl)
68 --disable-video-opengles1
69
70 diff --git a/media-libs/libsdl2/metadata.xml b/media-libs/libsdl2/metadata.xml
71 index d72b5fdb4d5..f10ebbd6297 100644
72 --- a/media-libs/libsdl2/metadata.xml
73 +++ b/media-libs/libsdl2/metadata.xml
74 @@ -28,6 +28,7 @@
75 <flag name="gles">include OpenGL ES support</flag>
76 <flag name="haptic">Enable the haptic (force feedback) subsystem</flag>
77 <flag name="joystick">Control joystick support (disable at your own risk)</flag>
78 + <flag name="kms">Build the KMSDRM video driver</flag>
79 <flag name="sound">Control audio support (disable at your own risk)</flag>
80 <flag name="tslib">Build with tslib support for touchscreen devices</flag>
81 <flag name="video">Control video support (disable at your own risk)</flag>