1 |
commit: c182995cadf60ef0a42c06f742480fe5270a0f6e |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 23 22:08:06 2021 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 23 22:08:06 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c182995c |
7 |
|
8 |
media-libs/libsdl2: Drop old 2.0.14-r2 |
9 |
|
10 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
11 |
|
12 |
media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild | 211 ---------------------------- |
13 |
1 file changed, 211 deletions(-) |
14 |
|
15 |
diff --git a/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild b/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index ff5ea17121f..00000000000 |
18 |
--- a/media-libs/libsdl2/libsdl2-2.0.14-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,211 +0,0 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=7 |
25 |
- |
26 |
-inherit autotools flag-o-matic toolchain-funcs multilib-minimal |
27 |
- |
28 |
-MY_P="SDL2-${PV}" |
29 |
-DESCRIPTION="Simple Direct Media Layer" |
30 |
-HOMEPAGE="https://www.libsdl.org/" |
31 |
-SRC_URI="https://www.libsdl.org/release/${MY_P}.tar.gz" |
32 |
- |
33 |
-LICENSE="ZLIB" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" |
36 |
- |
37 |
-IUSE="alsa aqua cpu_flags_ppc_altivec cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 custom-cflags dbus fcitx4 gles1 gles2 haptic ibus jack +joystick kms libsamplerate nas opengl oss pulseaudio sndio +sound static-libs +threads udev +video video_cards_vc4 vulkan wayland X xinerama xscreensaver" |
38 |
-REQUIRED_USE=" |
39 |
- alsa? ( sound ) |
40 |
- fcitx4? ( dbus ) |
41 |
- gles1? ( video ) |
42 |
- gles2? ( video ) |
43 |
- ibus? ( dbus ) |
44 |
- jack? ( sound ) |
45 |
- nas? ( sound ) |
46 |
- opengl? ( video ) |
47 |
- pulseaudio? ( sound ) |
48 |
- sndio? ( sound ) |
49 |
- vulkan? ( video ) |
50 |
- wayland? ( gles2 ) |
51 |
- xinerama? ( X ) |
52 |
- xscreensaver? ( X )" |
53 |
- |
54 |
-CDEPEND=" |
55 |
- alsa? ( >=media-libs/alsa-lib-1.0.27.2[${MULTILIB_USEDEP}] ) |
56 |
- dbus? ( >=sys-apps/dbus-1.6.18-r1[${MULTILIB_USEDEP}] ) |
57 |
- fcitx4? ( app-i18n/fcitx:4 ) |
58 |
- gles1? ( media-libs/mesa[${MULTILIB_USEDEP},gles1] ) |
59 |
- gles2? ( >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},gles2] ) |
60 |
- ibus? ( app-i18n/ibus ) |
61 |
- jack? ( virtual/jack[${MULTILIB_USEDEP}] ) |
62 |
- kms? ( |
63 |
- >=x11-libs/libdrm-2.4.82[${MULTILIB_USEDEP}] |
64 |
- >=media-libs/mesa-9.0.0[${MULTILIB_USEDEP},gbm] |
65 |
- ) |
66 |
- libsamplerate? ( media-libs/libsamplerate[${MULTILIB_USEDEP}] ) |
67 |
- nas? ( |
68 |
- >=media-libs/nas-1.9.4[${MULTILIB_USEDEP}] |
69 |
- >=x11-libs/libXt-1.1.4[${MULTILIB_USEDEP}] |
70 |
- ) |
71 |
- opengl? ( |
72 |
- >=virtual/opengl-7.0-r1[${MULTILIB_USEDEP}] |
73 |
- >=virtual/glu-9.0-r1[${MULTILIB_USEDEP}] |
74 |
- ) |
75 |
- pulseaudio? ( >=media-sound/pulseaudio-2.1-r1[${MULTILIB_USEDEP}] ) |
76 |
- sndio? ( media-sound/sndio:=[${MULTILIB_USEDEP}] ) |
77 |
- udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP}] ) |
78 |
- wayland? ( |
79 |
- >=dev-libs/wayland-1.0.6[${MULTILIB_USEDEP}] |
80 |
- >=media-libs/mesa-9.1.6[${MULTILIB_USEDEP},egl,gles2,wayland] |
81 |
- >=x11-libs/libxkbcommon-0.2.0[${MULTILIB_USEDEP}] |
82 |
- ) |
83 |
- X? ( |
84 |
- >=x11-libs/libX11-1.6.2[${MULTILIB_USEDEP}] |
85 |
- >=x11-libs/libXcursor-1.1.14[${MULTILIB_USEDEP}] |
86 |
- >=x11-libs/libXext-1.3.2[${MULTILIB_USEDEP}] |
87 |
- >=x11-libs/libXi-1.7.2[${MULTILIB_USEDEP}] |
88 |
- >=x11-libs/libXrandr-1.4.2[${MULTILIB_USEDEP}] |
89 |
- >=x11-libs/libXxf86vm-1.1.3[${MULTILIB_USEDEP}] |
90 |
- xinerama? ( >=x11-libs/libXinerama-1.1.3[${MULTILIB_USEDEP}] ) |
91 |
- xscreensaver? ( >=x11-libs/libXScrnSaver-1.2.2-r1[${MULTILIB_USEDEP}] ) |
92 |
- )" |
93 |
-RDEPEND="${CDEPEND} |
94 |
- vulkan? ( media-libs/vulkan-loader )" |
95 |
-DEPEND="${CDEPEND} |
96 |
- ibus? ( dev-libs/glib:2[${MULTILIB_USEDEP}] ) |
97 |
- vulkan? ( dev-util/vulkan-headers ) |
98 |
- X? ( x11-base/xorg-proto ) |
99 |
-" |
100 |
-BDEPEND=" |
101 |
- virtual/pkgconfig |
102 |
-" |
103 |
- |
104 |
-MULTILIB_WRAPPED_HEADERS=( |
105 |
- /usr/include/SDL2/SDL_config.h |
106 |
- /usr/include/SDL2/SDL_platform.h |
107 |
- /usr/include/SDL2/begin_code.h |
108 |
- /usr/include/SDL2/close_code.h |
109 |
-) |
110 |
- |
111 |
-PATCHES=( |
112 |
- "${FILESDIR}"/${PN}-2.0.14-static-libs.patch |
113 |
- "${FILESDIR}"/${PN}-2.0.14-vulkan.patch |
114 |
-) |
115 |
- |
116 |
-S="${WORKDIR}/${MY_P}" |
117 |
- |
118 |
-src_prepare() { |
119 |
- default |
120 |
- |
121 |
- # Unbundle some headers. |
122 |
- rm -r src/video/khronos || die |
123 |
- ln -s "${ESYSROOT}/usr/include" src/video/khronos || die |
124 |
- |
125 |
- # SDL seems to customize SDL_config.h.in to remove macros like |
126 |
- # PACKAGE_NAME. Add AT_NOEAUTOHEADER="yes" to prevent those macros from |
127 |
- # being reintroduced. |
128 |
- # https://bugs.gentoo.org/764959 |
129 |
- AT_NOEAUTOHEADER="yes" AT_M4DIR="/usr/share/aclocal acinclude" \ |
130 |
- eautoreconf |
131 |
-} |
132 |
- |
133 |
-multilib_src_configure() { |
134 |
- use custom-cflags || strip-flags |
135 |
- |
136 |
- if use ibus; then |
137 |
- local -x IBUS_CFLAGS="-I${ESYSROOT}/usr/include/ibus-1.0 -I${ESYSROOT}/usr/include/glib-2.0 -I${ESYSROOT}/usr/$(get_libdir)/glib-2.0/include" |
138 |
- fi |
139 |
- |
140 |
- # sorted by `./configure --help` |
141 |
- local myeconfargs=( |
142 |
- $(use_enable static-libs static) |
143 |
- --enable-atomic |
144 |
- $(use_enable sound audio) |
145 |
- $(use_enable video) |
146 |
- --enable-render |
147 |
- --enable-events |
148 |
- $(use_enable joystick) |
149 |
- $(use_enable haptic) |
150 |
- --enable-power |
151 |
- --enable-filesystem |
152 |
- $(use_enable threads) |
153 |
- --enable-timers |
154 |
- --enable-file |
155 |
- --enable-loadso |
156 |
- --enable-cpuinfo |
157 |
- --enable-assembly |
158 |
- $(use_enable cpu_flags_ppc_altivec altivec) |
159 |
- $(use_enable cpu_flags_x86_sse ssemath) |
160 |
- $(use_enable cpu_flags_x86_mmx mmx) |
161 |
- $(use_enable cpu_flags_x86_3dnow 3dnow) |
162 |
- $(use_enable cpu_flags_x86_sse sse) |
163 |
- $(use_enable cpu_flags_x86_sse2 sse2) |
164 |
- $(use_enable oss) |
165 |
- $(use_enable alsa) |
166 |
- --disable-alsa-shared |
167 |
- $(use_enable jack) |
168 |
- --disable-jack-shared |
169 |
- --disable-esd |
170 |
- $(use_enable pulseaudio) |
171 |
- --disable-pulseaudio-shared |
172 |
- --disable-arts |
173 |
- $(use_enable libsamplerate) |
174 |
- $(use_enable nas) |
175 |
- --disable-nas-shared |
176 |
- $(use_enable sndio) |
177 |
- --disable-sndio-shared |
178 |
- $(use_enable sound diskaudio) |
179 |
- $(use_enable sound dummyaudio) |
180 |
- $(use_enable wayland video-wayland) |
181 |
- --disable-wayland-shared |
182 |
- $(use_enable video_cards_vc4 video-rpi) |
183 |
- $(use_enable X video-x11) |
184 |
- --disable-x11-shared |
185 |
- $(use_enable X video-x11-xcursor) |
186 |
- $(use_enable X video-x11-xdbe) |
187 |
- $(use_enable xinerama video-x11-xinerama) |
188 |
- $(use_enable X video-x11-xinput) |
189 |
- $(use_enable X video-x11-xrandr) |
190 |
- $(use_enable xscreensaver video-x11-scrnsaver) |
191 |
- $(use_enable X video-x11-xshape) |
192 |
- $(use_enable X video-x11-vm) |
193 |
- $(use_enable aqua video-cocoa) |
194 |
- --disable-video-directfb |
195 |
- --disable-fusionsound |
196 |
- --disable-fusionsound-shared |
197 |
- $(use_enable kms video-kmsdrm) |
198 |
- --disable-kmsdrm-shared |
199 |
- $(use_enable video video-dummy) |
200 |
- $(use_enable opengl video-opengl) |
201 |
- $(use_enable gles1 video-opengles1) |
202 |
- $(use_enable gles2 video-opengles2) |
203 |
- $(use_enable vulkan video-vulkan) |
204 |
- $(use_enable udev libudev) |
205 |
- $(use_enable dbus) |
206 |
- $(use_enable fcitx4 fcitx) |
207 |
- $(use_enable ibus) |
208 |
- --disable-directx |
209 |
- --disable-rpath |
210 |
- --disable-render-d3d |
211 |
- $(use_with X x) |
212 |
- ) |
213 |
- |
214 |
- ECONF_SOURCE="${S}" \ |
215 |
- econf "${myeconfargs[@]}" |
216 |
-} |
217 |
- |
218 |
-multilib_src_compile() { |
219 |
- emake V=1 |
220 |
-} |
221 |
- |
222 |
-multilib_src_install() { |
223 |
- emake DESTDIR="${D}" install |
224 |
-} |
225 |
- |
226 |
-multilib_src_install_all() { |
227 |
- # Do not delete the static .a libraries here as some are |
228 |
- # mandatory. They may be needed even when linking dynamically. |
229 |
- find "${ED}" -type f -name "*.la" -delete || die |
230 |
- dodoc {BUGS,CREDITS,README,README-SDL,TODO,WhatsNew}.txt docs/README*.md |
231 |
-} |