1 |
commit: 49a8a1d426b5cb7fa92f9cd0ebe67366f5751736 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 31 21:33:10 2018 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 31 21:53:04 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=49a8a1d4 |
7 |
|
8 |
media-libs/libsdl2: Version bump to 2.0.9 |
9 |
|
10 |
No changes to the ebuild beyond dropping two merged patches. |
11 |
|
12 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
13 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
14 |
|
15 |
media-libs/libsdl2/Manifest | 1 + |
16 |
media-libs/libsdl2/libsdl2-2.0.9.ebuild | 177 ++++++++++++++++++++++++++++++++ |
17 |
2 files changed, 178 insertions(+) |
18 |
|
19 |
diff --git a/media-libs/libsdl2/Manifest b/media-libs/libsdl2/Manifest |
20 |
index 7007e6ba1a7..eb6a0001cc4 100644 |
21 |
--- a/media-libs/libsdl2/Manifest |
22 |
+++ b/media-libs/libsdl2/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST SDL2-2.0.8.tar.gz 4909017 BLAKE2B f6b365a6033e10ef0c5d56ee5e17cc1caada99a97b7ccc7b0eab4f7ca5fc513b78e71960a41a20319c5de1d9eb9eaeffb06b90d090e14e8d354a9b8315ab12f1 SHA512 673c6058b8692a36b4a3594456b10ef6051efe79e4fb644421fc5c76b11fd68b895840a2c8b72413418c378733e2993d33f19767d0d7ed101eda6310bd70c869 |
25 |
+DIST SDL2-2.0.9.tar.gz 5246942 BLAKE2B 901ccb36301d7c9a76bb9f645ff3bc642ff101b969cfb0eff065db9de25a9ed3e80a0392b76dabf414e8f18298485304e45a9501786166709e31014e795bef03 SHA512 a78a4708b2bb5b35a7c7b7501eb3bd60a9aa3bb95a3d84e57763df4a377185e7312a94b66321eef7ca0d17255e4b402fc950e83ef0dbbd08f14ff1194107dc10 |
26 |
|
27 |
diff --git a/media-libs/libsdl2/libsdl2-2.0.9.ebuild b/media-libs/libsdl2/libsdl2-2.0.9.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..252b7b88f62 |
30 |
--- /dev/null |
31 |
+++ b/media-libs/libsdl2/libsdl2-2.0.9.ebuild |
32 |
@@ -0,0 +1,177 @@ |
33 |
+# Copyright 1999-2018 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+inherit autotools flag-o-matic ltprune toolchain-funcs multilib-minimal |
38 |
+ |
39 |
+MY_P="SDL2-${PV}" |
40 |
+DESCRIPTION="Simple Direct Media Layer" |
41 |
+HOMEPAGE="http://www.libsdl.org" |
42 |
+SRC_URI="http://www.libsdl.org/release/${MY_P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="ZLIB" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" |
47 |
+ |
48 |
+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" |
49 |
+REQUIRED_USE=" |
50 |
+ alsa? ( sound ) |
51 |
+ gles? ( video ) |
52 |
+ nas? ( sound ) |
53 |
+ opengl? ( video ) |
54 |
+ pulseaudio? ( sound ) |
55 |
+ wayland? ( gles ) |
56 |
+ xinerama? ( X ) |
57 |
+ xscreensaver? ( X )" |
58 |
+ |
59 |
+RDEPEND=" |
60 |
+ alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
61 |
+ dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
62 |
+ gles? ( >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},gles2] ) |
63 |
+ kms? ( |
64 |
+ >=x11-libs/libdrm-2.4.46[${MULTILIB_USEDEP}] |
65 |
+ >=media-libs/mesa-9.0.0[${MULTILIB_USEDEP},gbm] |
66 |
+ ) |
67 |
+ libsamplerate? ( media-libs/libsamplerate[${MULTILIB_USEDEP}] ) |
68 |
+ nas? ( |
69 |
+ >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] |
70 |
+ >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] |
71 |
+ ) |
72 |
+ opengl? ( |
73 |
+ >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] |
74 |
+ >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] |
75 |
+ ) |
76 |
+ pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
77 |
+ tslib? ( >=x11-libs/tslib-1.0-r3[${MULTILIB_USEDEP}] ) |
78 |
+ udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] ) |
79 |
+ wayland? ( |
80 |
+ >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] |
81 |
+ >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},egl,gles2,wayland] |
82 |
+ >=x11-libs/libxkbcommon-0.2.0[${MULTILIB_USEDEP}] |
83 |
+ ) |
84 |
+ X? ( |
85 |
+ >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
86 |
+ >=x11-libs/libXcursor-1.1.14[${MULTILIB_USEDEP}] |
87 |
+ >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
88 |
+ >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] |
89 |
+ >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] |
90 |
+ >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}] |
91 |
+ xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] ) |
92 |
+ xscreensaver? ( >=x11-libs/libXScrnSaver-1.2.2-r1[${MULTILIB_USEDEP}] ) |
93 |
+ )" |
94 |
+DEPEND="${RDEPEND} |
95 |
+ X? ( x11-base/xorg-proto ) |
96 |
+ virtual/pkgconfig" |
97 |
+ |
98 |
+MULTILIB_WRAPPED_HEADERS=( |
99 |
+ /usr/include/SDL2/SDL_config.h |
100 |
+ /usr/include/SDL2/SDL_platform.h |
101 |
+ /usr/include/SDL2/begin_code.h |
102 |
+ /usr/include/SDL2/close_code.h |
103 |
+) |
104 |
+ |
105 |
+PATCHES=( |
106 |
+ # https://bugzilla.libsdl.org/show_bug.cgi?id=1431 |
107 |
+ "${FILESDIR}"/${PN}-2.0.6-static-libs.patch |
108 |
+) |
109 |
+ |
110 |
+S="${WORKDIR}/${MY_P}" |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ default |
114 |
+ sed -i -e 's/configure.in/configure.ac/' Makefile.in || die |
115 |
+ mv configure.{in,ac} || die |
116 |
+ AT_M4DIR="/usr/share/aclocal acinclude" eautoreconf |
117 |
+} |
118 |
+ |
119 |
+multilib_src_configure() { |
120 |
+ use custom-cflags || strip-flags |
121 |
+ |
122 |
+ # sorted by `./configure --help` |
123 |
+ local myeconfargs=( |
124 |
+ $(use_enable static-libs static) |
125 |
+ --enable-atomic |
126 |
+ $(use_enable sound audio) |
127 |
+ $(use_enable video) |
128 |
+ --enable-render |
129 |
+ --enable-events |
130 |
+ $(use_enable joystick) |
131 |
+ $(use_enable haptic) |
132 |
+ --enable-power |
133 |
+ --enable-filesystem |
134 |
+ $(use_enable threads) |
135 |
+ --enable-timers |
136 |
+ --enable-file |
137 |
+ $(use_enable kernel_Winnt loadso) |
138 |
+ --enable-cpuinfo |
139 |
+ --enable-assembly |
140 |
+ $(use_enable cpu_flags_x86_sse ssemath) |
141 |
+ $(use_enable cpu_flags_x86_mmx mmx) |
142 |
+ $(use_enable cpu_flags_x86_3dnow 3dnow) |
143 |
+ $(use_enable cpu_flags_x86_sse sse) |
144 |
+ $(use_enable cpu_flags_x86_sse2 sse2) |
145 |
+ $(use_enable altivec) |
146 |
+ $(use_enable oss) |
147 |
+ $(use_enable alsa) |
148 |
+ --disable-alsa-shared |
149 |
+ --disable-esd |
150 |
+ $(use_enable pulseaudio) |
151 |
+ --disable-pulseaudio-shared |
152 |
+ --disable-arts |
153 |
+ $(use_enable libsamplerate) |
154 |
+ $(use_enable nas) |
155 |
+ --disable-nas-shared |
156 |
+ --disable-sndio |
157 |
+ --disable-sndio-shared |
158 |
+ $(use_enable sound diskaudio) |
159 |
+ $(use_enable sound dummyaudio) |
160 |
+ $(use_enable wayland video-wayland) |
161 |
+ --disable-wayland-shared |
162 |
+ --disable-video-mir |
163 |
+ $(use_enable video_cards_vc4 video-rpi) |
164 |
+ $(use_enable X video-x11) |
165 |
+ --disable-x11-shared |
166 |
+ $(use_enable X video-x11-xcursor) |
167 |
+ $(use_enable X video-x11-xdbe) |
168 |
+ $(use_enable xinerama video-x11-xinerama) |
169 |
+ $(use_enable X video-x11-xinput) |
170 |
+ $(use_enable X video-x11-xrandr) |
171 |
+ $(use_enable xscreensaver video-x11-scrnsaver) |
172 |
+ $(use_enable X video-x11-xshape) |
173 |
+ $(use_enable X video-x11-vm) |
174 |
+ $(use_enable aqua video-cocoa) |
175 |
+ --disable-video-directfb |
176 |
+ --disable-fusionsound |
177 |
+ --disable-fusionsound-shared |
178 |
+ $(use_enable kms video-kmsdrm) |
179 |
+ --disable-kmsdrm-shared |
180 |
+ $(use_enable video video-dummy) |
181 |
+ $(use_enable opengl video-opengl) |
182 |
+ --disable-video-opengles1 |
183 |
+ $(use_enable gles video-opengles2) |
184 |
+ --disable-video-vulkan |
185 |
+ $(use_enable udev libudev) |
186 |
+ $(use_enable dbus) |
187 |
+ --disable-ibus |
188 |
+ $(use_enable tslib input-tslib) |
189 |
+ --disable-directx |
190 |
+ --disable-rpath |
191 |
+ --disable-render-d3d |
192 |
+ $(use_with X x) |
193 |
+ ) |
194 |
+ |
195 |
+ ECONF_SOURCE="${S}" econf "${myeconfargs[@]}" |
196 |
+} |
197 |
+ |
198 |
+multilib_src_compile() { |
199 |
+ emake V=1 |
200 |
+} |
201 |
+ |
202 |
+multilib_src_install() { |
203 |
+ emake DESTDIR="${D}" install |
204 |
+} |
205 |
+ |
206 |
+multilib_src_install_all() { |
207 |
+ prune_libtool_files |
208 |
+ dodoc {BUGS,CREDITS,README,README-SDL,TODO,WhatsNew}.txt docs/README*.md |
209 |
+} |