1 |
commit: adbfacbfc968c7415595487972dbbe73a0b163da |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 7 22:29:52 2017 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 7 22:30:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=adbfacbf |
7 |
|
8 |
media-libs/libsdl2: Revision bump, add patch to fix DS4 support in new kernels |
9 |
|
10 |
This patch has been merged in to master, but upstream hasn't done a |
11 |
release in quite awhile. |
12 |
|
13 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
14 |
|
15 |
.../libsdl2/files/libsdl2-2.0.5-ds3_ds4.patch | 48 +++++++ |
16 |
media-libs/libsdl2/libsdl2-2.0.5-r1.ebuild | 158 +++++++++++++++++++++ |
17 |
2 files changed, 206 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/libsdl2/files/libsdl2-2.0.5-ds3_ds4.patch b/media-libs/libsdl2/files/libsdl2-2.0.5-ds3_ds4.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..34455663a56 |
22 |
--- /dev/null |
23 |
+++ b/media-libs/libsdl2/files/libsdl2-2.0.5-ds3_ds4.patch |
24 |
@@ -0,0 +1,48 @@ |
25 |
+diff --git a/src/joystick/SDL_gamecontrollerdb.h b/src/joystick/SDL_gamecontrollerdb.h |
26 |
+index 1e623cb..ae84c6d 100644 |
27 |
+--- a/src/joystick/SDL_gamecontrollerdb.h |
28 |
++++ b/src/joystick/SDL_gamecontrollerdb.h |
29 |
+@@ -47,6 +47,8 @@ static const char *s_ControllerMappings [] = |
30 |
+ "4c056802000000000000504944564944,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,", |
31 |
+ "25090500000000000000504944564944,PS3 DualShock,a:b2,b:b1,back:b9,dpdown:h0.8,dpleft:h0.4,dpright:h0.2,dpup:h0.1,guide:,leftshoulder:b6,leftstick:b10,lefttrigger:b4,leftx:a0,lefty:a1,rightshoulder:b7,rightstick:b11,righttrigger:b5,rightx:a2,righty:a3,start:b8,x:b0,y:b3,", |
32 |
+ "4c05c405000000000000504944564944,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
33 |
++ "4c05cc09000000000000504944564944,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
34 |
++ "4c05a00b000000000000504944564944,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
35 |
+ #endif |
36 |
+ #if defined(__MACOSX__) |
37 |
+ "10280000000000000900000000000000,8Bitdo SFC30 GamePad Joystick,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,", |
38 |
+@@ -62,6 +64,10 @@ static const char *s_ControllerMappings [] = |
39 |
+ "11010000000000002014000000000000,SteelSeries Nimbus,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b12,x:b2,y:b3,", |
40 |
+ "11010000000000001714000000000000,SteelSeries Stratus XL,a:b0,b:b1,dpdown:b9,dpleft:b11,dpright:b10,dpup:b8,leftshoulder:b4,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,righttrigger:b7,rightx:a2,righty:a3,start:b12,x:b2,y:b3,", |
41 |
+ "5e040000000000008e02000000000000,X360 Controller,a:b0,b:b1,back:b9,dpdown:b12,dpleft:b13,dpright:b14,dpup:b11,guide:b10,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,start:b8,x:b2,y:b3,", |
42 |
++ "030000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,", |
43 |
++ "030000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
44 |
++ "030000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
45 |
++ "030000004c050000a00b000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
46 |
+ #endif |
47 |
+ #if defined(__LINUX__) |
48 |
+ "05000000102800000900000000010000,8Bitdo SFC30 GamePad,a:b1,b:b0,back:b10,leftshoulder:b6,leftx:a0,lefty:a1,rightshoulder:b7,start:b11,x:b4,y:b3,", |
49 |
+@@ -85,12 +91,23 @@ static const char *s_ControllerMappings [] = |
50 |
+ "03000000550900001072000011010000,NVIDIA Controller,a:b0,b:b1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,leftshoulder:b4,leftstick:b8,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,", |
51 |
+ "050000007e0500003003000001000000,Nintendo Wii Remote Pro Controller,a:b1,b:b0,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b2,y:b3,", |
52 |
+ "050000003620000100000002010000,OUYA Game Controller,a:b0,b:b3,dpdown:b9,dpleft:b10,dpright:b11,dpup:b8,guide:b14,leftshoulder:b4,leftstick:b6,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b7,righttrigger:a5,rightx:a3,righty:a4,x:b1,y:b2,", |
53 |
++ "030000004c0500006802000010010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,", |
54 |
++ "050000004c0500006802000000010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:a12,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:a13,rightx:a2,righty:a3,start:b3,x:b15,y:b12,", |
55 |
+ "030000004c0500006802000011010000,PS3 Controller,a:b14,b:b13,back:b0,dpdown:b6,dpleft:b7,dpright:b5,dpup:b4,guide:b16,leftshoulder:b10,leftstick:b1,lefttrigger:b8,leftx:a0,lefty:a1,rightshoulder:b11,rightstick:b2,righttrigger:b9,rightx:a2,righty:a3,start:b3,x:b15,y:b12,", |
56 |
++ "030000004c0500006802000010810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
57 |
++ "050000004c0500006802000000810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
58 |
++ "030000004c0500006802000011810000,PS3 Controller,a:b0,b:b1,back:b8,dpdown:b14,dpleft:b15,dpright:b16,dpup:b13,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
59 |
+ "03000000341a00003608000011010000,PS3 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:b6,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:b7,rightx:a2,righty:a3,start:b9,x:b0,y:b3,", |
60 |
+ "030000004c050000c405000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
61 |
+ "050000004c050000c405000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
62 |
+ "030000004c050000cc09000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
63 |
+ "050000004c050000cc09000000010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
64 |
++ "030000004c050000a00b000011010000,PS4 Controller,a:b1,b:b2,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b12,leftshoulder:b4,leftstick:b10,lefttrigger:a3,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b11,righttrigger:a4,rightx:a2,righty:a5,start:b9,x:b0,y:b3,", |
65 |
++ "030000004c050000c405000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
66 |
++ "050000004c050000c405000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
67 |
++ "030000004c050000cc09000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
68 |
++ "050000004c050000cc09000000810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
69 |
++ "030000004c050000a00b000011810000,PS4 Controller,a:b0,b:b1,back:b8,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b11,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b12,righttrigger:a5,rightx:a3,righty:a4,start:b9,x:b3,y:b2,", |
70 |
+ "03000000c6240000045d000025010000,Razer Sabertooth,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,", |
71 |
+ "03000000321500000009000011010000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,", |
72 |
+ "050000003215000000090000163a0000,Razer Serval,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b8,leftshoulder:b4,leftstick:b9,lefttrigger:a5,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b10,righttrigger:a4,rightx:a2,righty:a3,start:b7,x:b2,y:b3,", |
73 |
|
74 |
diff --git a/media-libs/libsdl2/libsdl2-2.0.5-r1.ebuild b/media-libs/libsdl2/libsdl2-2.0.5-r1.ebuild |
75 |
new file mode 100644 |
76 |
index 00000000000..f5f05fb0c9b |
77 |
--- /dev/null |
78 |
+++ b/media-libs/libsdl2/libsdl2-2.0.5-r1.ebuild |
79 |
@@ -0,0 +1,158 @@ |
80 |
+# Copyright 1999-2017 Gentoo Foundation |
81 |
+# Distributed under the terms of the GNU General Public License v2 |
82 |
+ |
83 |
+# TODO: convert FusionSound #484250 |
84 |
+ |
85 |
+EAPI=6 |
86 |
+inherit autotools flag-o-matic toolchain-funcs eutils multilib-minimal |
87 |
+ |
88 |
+MY_P=SDL2-${PV} |
89 |
+DESCRIPTION="Simple Direct Media Layer" |
90 |
+HOMEPAGE="http://www.libsdl.org" |
91 |
+SRC_URI="http://www.libsdl.org/release/${MY_P}.tar.gz" |
92 |
+ |
93 |
+LICENSE="ZLIB" |
94 |
+SLOT="0" |
95 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86" |
96 |
+ |
97 |
+IUSE="cpu_flags_x86_3dnow alsa altivec custom-cflags dbus fusionsound gles haptic +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" |
98 |
+REQUIRED_USE=" |
99 |
+ alsa? ( sound ) |
100 |
+ fusionsound? ( sound ) |
101 |
+ gles? ( video ) |
102 |
+ nas? ( sound ) |
103 |
+ opengl? ( video ) |
104 |
+ pulseaudio? ( sound ) |
105 |
+ wayland? ( gles ) |
106 |
+ xinerama? ( X ) |
107 |
+ xscreensaver? ( X )" |
108 |
+ |
109 |
+RDEPEND=" |
110 |
+ alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
111 |
+ dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
112 |
+ fusionsound? ( || ( >=media-libs/FusionSound-1.1.1 >=dev-libs/DirectFB-1.7.1[fusionsound] ) ) |
113 |
+ gles? ( >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},gles2] ) |
114 |
+ nas? ( >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] ) |
115 |
+ opengl? ( |
116 |
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] |
117 |
+ >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] |
118 |
+ ) |
119 |
+ pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
120 |
+ tslib? ( >=x11-libs/tslib-1.0-r3[${MULTILIB_USEDEP}] ) |
121 |
+ udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] ) |
122 |
+ wayland? ( |
123 |
+ >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] |
124 |
+ >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},egl,gles2,wayland] |
125 |
+ >=x11-libs/libxkbcommon-0.2.0[${MULTILIB_USEDEP}] |
126 |
+ ) |
127 |
+ X? ( |
128 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
129 |
+ >=x11-libs/libXcursor-1.1.14[${MULTILIB_USEDEP}] |
130 |
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
131 |
+ >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] |
132 |
+ >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] |
133 |
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] |
134 |
+ >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}] |
135 |
+ xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] ) |
136 |
+ xscreensaver? ( >=x11-libs/libXScrnSaver-1.2.2-r1[${MULTILIB_USEDEP}] ) |
137 |
+ )" |
138 |
+DEPEND="${RDEPEND} |
139 |
+ X? ( |
140 |
+ >=x11-proto/xextproto-7.2.1-r1[${MULTILIB_USEDEP}] |
141 |
+ >=x11-proto/xproto-7.0.24[${MULTILIB_USEDEP}] |
142 |
+ ) |
143 |
+ virtual/pkgconfig" |
144 |
+ |
145 |
+PATCHES=( |
146 |
+ # https://bugzilla.libsdl.org/show_bug.cgi?id=1431 |
147 |
+ "${FILESDIR}"/${PN}-2.0.5-static-libs.patch |
148 |
+ "${FILESDIR}"/${PN}-2.0.5-ds3_ds4.patch |
149 |
+) |
150 |
+ |
151 |
+S=${WORKDIR}/${MY_P} |
152 |
+ |
153 |
+src_prepare() { |
154 |
+ default |
155 |
+ sed -i -e 's/configure.in/configure.ac/' Makefile.in || die |
156 |
+ mv configure.{in,ac} || die |
157 |
+ AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf |
158 |
+} |
159 |
+ |
160 |
+multilib_src_configure() { |
161 |
+ use custom-cflags || strip-flags |
162 |
+ |
163 |
+ # sorted by `./configure --help` |
164 |
+ ECONF_SOURCE="${S}" econf \ |
165 |
+ $(use_enable static-libs static) \ |
166 |
+ --enable-atomic \ |
167 |
+ $(use_enable sound audio) \ |
168 |
+ $(use_enable video) \ |
169 |
+ --enable-render \ |
170 |
+ --enable-events \ |
171 |
+ $(use_enable joystick) \ |
172 |
+ $(use_enable haptic) \ |
173 |
+ --enable-power \ |
174 |
+ --enable-filesystem \ |
175 |
+ $(use_enable threads) \ |
176 |
+ --enable-timers \ |
177 |
+ --enable-file \ |
178 |
+ --disable-loadso \ |
179 |
+ --enable-cpuinfo \ |
180 |
+ --enable-assembly \ |
181 |
+ $(use_enable cpu_flags_x86_sse ssemath) \ |
182 |
+ $(use_enable cpu_flags_x86_mmx mmx) \ |
183 |
+ $(use_enable cpu_flags_x86_3dnow 3dnow) \ |
184 |
+ $(use_enable cpu_flags_x86_sse sse) \ |
185 |
+ $(use_enable cpu_flags_x86_sse2 sse2) \ |
186 |
+ $(use_enable altivec) \ |
187 |
+ $(use_enable oss) \ |
188 |
+ $(use_enable alsa) \ |
189 |
+ --disable-alsa-shared \ |
190 |
+ --disable-esd \ |
191 |
+ $(use_enable pulseaudio) \ |
192 |
+ --disable-pulseaudio-shared \ |
193 |
+ --disable-arts \ |
194 |
+ $(use_enable nas) \ |
195 |
+ --disable-nas-shared \ |
196 |
+ --disable-sndio \ |
197 |
+ --disable-sndio-shared \ |
198 |
+ $(use_enable sound diskaudio) \ |
199 |
+ $(use_enable sound dummyaudio) \ |
200 |
+ $(use_enable wayland video-wayland) \ |
201 |
+ --disable-wayland-shared \ |
202 |
+ --disable-video-mir \ |
203 |
+ $(use_enable X video-x11) \ |
204 |
+ --disable-x11-shared \ |
205 |
+ $(use_enable X video-x11-xcursor) \ |
206 |
+ $(use_enable X video-x11-xdbe) \ |
207 |
+ $(use_enable xinerama video-x11-xinerama) \ |
208 |
+ $(use_enable X video-x11-xinput) \ |
209 |
+ $(use_enable X video-x11-xrandr) \ |
210 |
+ $(use_enable xscreensaver video-x11-scrnsaver) \ |
211 |
+ $(use_enable X video-x11-xshape) \ |
212 |
+ $(use_enable X video-x11-vm) \ |
213 |
+ --disable-video-cocoa \ |
214 |
+ --disable-video-directfb \ |
215 |
+ $(multilib_native_use_enable fusionsound) \ |
216 |
+ --disable-fusionsound-shared \ |
217 |
+ $(use_enable video video-dummy) \ |
218 |
+ $(use_enable opengl video-opengl) \ |
219 |
+ $(use_enable gles video-opengles) \ |
220 |
+ $(use_enable udev libudev) \ |
221 |
+ $(use_enable dbus) \ |
222 |
+ --disable-ibus \ |
223 |
+ $(use_enable tslib input-tslib) \ |
224 |
+ --disable-directx \ |
225 |
+ --disable-rpath \ |
226 |
+ --disable-render-d3d \ |
227 |
+ $(use_with X x) |
228 |
+} |
229 |
+ |
230 |
+multilib_src_install() { |
231 |
+ emake DESTDIR="${D}" install |
232 |
+} |
233 |
+ |
234 |
+multilib_src_install_all() { |
235 |
+ prune_libtool_files |
236 |
+ dodoc {BUGS,CREDITS,README,README-SDL,TODO,WhatsNew}.txt docs/README*.md |
237 |
+} |