1 |
commit: b2bcbfd9976f1f236c65affb1c954f43604284a3 |
2 |
Author: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jun 6 13:44:28 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jun 6 13:44:41 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b2bcbfd9 |
7 |
|
8 |
media-video/vlc: version bump 2.2.6 |
9 |
|
10 |
Gentoo-bug: 618308 |
11 |
Package-Manager: Portage-2.3.5, Repoman-2.3.2 |
12 |
|
13 |
media-video/vlc/Manifest | 1 + |
14 |
media-video/vlc/vlc-2.2.6.ebuild | 513 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 514 insertions(+) |
16 |
|
17 |
diff --git a/media-video/vlc/Manifest b/media-video/vlc/Manifest |
18 |
index 2d2aa093564..48ca56b1b05 100644 |
19 |
--- a/media-video/vlc/Manifest |
20 |
+++ b/media-video/vlc/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
DIST vlc-2.2.4.tar.xz 22199316 SHA256 1632e91d2a0087e0ef4c3fb4c95c3c2890f7715a9d1d43ffd46329f428cf53be SHA512 2fc1fe957ba7903f2e0c9640884ed850cb10a60132d80658dee8da0b5abaf4a6ccdf95fa2b8c0a4a827be5e7e40341318bce44662a5248e04442f4779010f85c WHIRLPOOL 0d59d9c2a623f72a6c708f9face6f29b7c7e71a9b38faf3717b8f223641c6f599d1407a4976874226dbbd9e553ec528249dc4f301c5682bfb49f5745468934b2 |
23 |
+DIST vlc-2.2.6.tar.xz 22198720 SHA256 c403d3accd9a400eb2181c958f3e7bc5524fe5738425f4253d42883b425a42a8 SHA512 9aff5922eb8b3c6a24e6153c367b0170dbc67602ae3e9304f52d2da00c9081d66cc98abd722b7c95b6c7d2e6cc7c86f21f9cba42c7d4bf29ca97d0f2d3553f8d WHIRLPOOL a2747219e4b12b4274468348c47c543f3266bb1ebc222d02f34d6679dfb8e56a6f2eebda4e1749de0eb91a84e3358700ea2e5ed1a6871ddfc9f19ef1e191cbc8 |
24 |
|
25 |
diff --git a/media-video/vlc/vlc-2.2.6.ebuild b/media-video/vlc/vlc-2.2.6.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..2a6dab0946f |
28 |
--- /dev/null |
29 |
+++ b/media-video/vlc/vlc-2.2.6.ebuild |
30 |
@@ -0,0 +1,513 @@ |
31 |
+# Copyright 1999-2017 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=6 |
35 |
+ |
36 |
+SCM="" |
37 |
+if [[ ${PV} = *9999 ]] ; then |
38 |
+ SCM="git-r3" |
39 |
+ |
40 |
+ if [ "${PV%.9999}" != "${PV}" ] ; then |
41 |
+ EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git" |
42 |
+ else |
43 |
+ EGIT_REPO_URI="git://git.videolan.org/vlc.git" |
44 |
+ fi |
45 |
+fi |
46 |
+ |
47 |
+inherit autotools flag-o-matic toolchain-funcs versionator virtualx ${SCM} |
48 |
+ |
49 |
+MY_PV="${PV/_/-}" |
50 |
+MY_PV="${MY_PV/-beta/-test}" |
51 |
+MY_P="${PN}-${MY_PV}" |
52 |
+ |
53 |
+DESCRIPTION="VLC media player - Video player and streamer" |
54 |
+HOMEPAGE="http://www.videolan.org/vlc/" |
55 |
+if [[ ${PV} = *9999 ]] ; then # Live ebuild |
56 |
+ SRC_URI="" |
57 |
+elif [[ "${MY_P}" == "${P}" ]]; then |
58 |
+ SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" |
59 |
+else |
60 |
+ SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" |
61 |
+fi |
62 |
+ |
63 |
+LICENSE="LGPL-2.1 GPL-2" |
64 |
+SLOT="0/5-8" # vlc - vlccore |
65 |
+ |
66 |
+if [[ ${PV} != *9999 ]] ; then |
67 |
+ KEYWORDS="~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~x86-fbsd" |
68 |
+fi |
69 |
+ |
70 |
+IUSE="a52 aalib alsa altivec atmo +audioqueue +avcodec |
71 |
+ +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug |
72 |
+ directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc +encode faad fdk |
73 |
+ fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls |
74 |
+ growl gstreamer httpd ieee1394 jack jpeg kate kde libass libav libcaca libnotify |
75 |
+ +libsamplerate libtiger linsys libtar lirc live lua |
76 |
+ macosx-dialog-provider macosx-eyetv macosx-quartztext macosx-qtkit |
77 |
+ matroska cpu_flags_x86_mmx modplug mp3 mpeg |
78 |
+ mtp musepack ncurses neon ogg omxil opencv opengl optimisememory opus |
79 |
+ png postproc projectm pulseaudio +qt4 qt5 rdp rtsp run-as-root samba |
80 |
+ schroedinger sdl sdl-image sftp shout sid skins speex cpu_flags_x86_sse svg +swscale |
81 |
+ taglib theora tremor truetype twolame udev upnp vaapi v4l vcdx vdpau |
82 |
+ vlm vnc vorbis vpx wma-fixed +X x264 x265 +xcb xml xv zeroconf zvbi" |
83 |
+ |
84 |
+RDEPEND=" |
85 |
+ dev-libs/libgpg-error:0 |
86 |
+ net-dns/libidn:0 |
87 |
+ sys-libs/zlib:0[minizip] |
88 |
+ virtual/libintl:0 |
89 |
+ a52? ( >=media-libs/a52dec-0.7.4-r3:0 ) |
90 |
+ aalib? ( media-libs/aalib:0 ) |
91 |
+ alsa? ( >=media-libs/alsa-lib-1.0.24:0 ) |
92 |
+ avcodec? ( |
93 |
+ !libav? ( media-video/ffmpeg:0= ) |
94 |
+ libav? ( media-video/libav:0= ) |
95 |
+ ) |
96 |
+ avformat? ( |
97 |
+ !libav? ( media-video/ffmpeg:0= ) |
98 |
+ libav? ( media-video/libav:0= ) |
99 |
+ ) |
100 |
+ bidi? ( dev-libs/fribidi:0 ) |
101 |
+ bluray? ( >=media-libs/libbluray-0.3:0= ) |
102 |
+ cddb? ( >=media-libs/libcddb-1.2:0 ) |
103 |
+ chromaprint? ( >=media-libs/chromaprint-0.6:0 ) |
104 |
+ dbus? ( >=sys-apps/dbus-1.6:0 ) |
105 |
+ dc1394? ( >=sys-libs/libraw1394-2.0.1:0 >=media-libs/libdc1394-2.1:2 ) |
106 |
+ directfb? ( dev-libs/DirectFB:0 sys-libs/zlib:0 ) |
107 |
+ dts? ( >=media-libs/libdca-0.0.5:0 ) |
108 |
+ dvbpsi? ( >=media-libs/libdvbpsi-1.0.0:0= ) |
109 |
+ dvd? ( >=media-libs/libdvdread-4.9:0 >=media-libs/libdvdnav-4.9:0 ) |
110 |
+ elibc_glibc? ( >=sys-libs/glibc-2.8:2.2 ) |
111 |
+ faad? ( >=media-libs/faad2-2.6.1:0 ) |
112 |
+ fdk? ( media-libs/fdk-aac:0 ) |
113 |
+ flac? ( >=media-libs/libogg-1:0 >=media-libs/flac-1.1.2:0 ) |
114 |
+ fluidsynth? ( >=media-sound/fluidsynth-1.1.2:0 ) |
115 |
+ fontconfig? ( media-libs/fontconfig:1.0 ) |
116 |
+ gcrypt? ( >=dev-libs/libgcrypt-1.2.0:0= ) |
117 |
+ gme? ( media-libs/game-music-emu:0 ) |
118 |
+ gnome? ( gnome-base/gnome-vfs:2 dev-libs/glib:2 ) |
119 |
+ gnutls? ( >=net-libs/gnutls-3.0.20:0 ) |
120 |
+ gstreamer? ( >=media-libs/gst-plugins-base-1.4.5:1.0 ) |
121 |
+ ieee1394? ( >=sys-libs/libraw1394-2.0.1:0 >=sys-libs/libavc1394-0.5.3:0 ) |
122 |
+ jack? ( virtual/jack ) |
123 |
+ jpeg? ( virtual/jpeg:0 ) |
124 |
+ kate? ( >=media-libs/libkate-0.3:0 ) |
125 |
+ libass? ( >=media-libs/libass-0.9.8:0= media-libs/fontconfig:1.0 ) |
126 |
+ libcaca? ( >=media-libs/libcaca-0.99_beta14:0 ) |
127 |
+ libnotify? ( x11-libs/libnotify:0 x11-libs/gtk+:2 x11-libs/gdk-pixbuf:2 dev-libs/glib:2 ) |
128 |
+ libsamplerate? ( media-libs/libsamplerate:0 ) |
129 |
+ libtar? ( >=dev-libs/libtar-1.2.11-r3:0 ) |
130 |
+ libtiger? ( >=media-libs/libtiger-0.3.1:0 ) |
131 |
+ linsys? ( >=media-libs/zvbi-0.2.28:0 ) |
132 |
+ lirc? ( app-misc/lirc:0 ) |
133 |
+ live? ( >=media-plugins/live-2011.12.23:0 ) |
134 |
+ lua? ( >=dev-lang/lua-5.1:0 ) |
135 |
+ matroska? ( >=dev-libs/libebml-1:0= >=media-libs/libmatroska-1:0= ) |
136 |
+ modplug? ( >=media-libs/libmodplug-0.8.4:0 !~media-libs/libmodplug-0.8.8 ) |
137 |
+ mp3? ( media-libs/libmad:0 ) |
138 |
+ mpeg? ( >=media-libs/libmpeg2-0.3.2:0 ) |
139 |
+ mtp? ( >=media-libs/libmtp-1:0 ) |
140 |
+ musepack? ( >=media-sound/musepack-tools-444:0 ) |
141 |
+ ncurses? ( sys-libs/ncurses:0=[unicode] ) |
142 |
+ ogg? ( >=media-libs/libogg-1:0 ) |
143 |
+ opencv? ( >media-libs/opencv-2:0= ) |
144 |
+ opengl? ( virtual/opengl:0 >=x11-libs/libX11-1.3.99.901:0 ) |
145 |
+ opus? ( >=media-libs/opus-1.0.3:0 ) |
146 |
+ png? ( media-libs/libpng:0= sys-libs/zlib:0 ) |
147 |
+ postproc? ( |
148 |
+ !libav? ( >=media-video/ffmpeg-2.2:0= ) |
149 |
+ libav? ( media-libs/libpostproc:0= ) |
150 |
+ ) |
151 |
+ projectm? ( media-libs/libprojectm:0 media-fonts/dejavu:0 ) |
152 |
+ pulseaudio? ( >=media-sound/pulseaudio-1:0 ) |
153 |
+ !qt5? ( qt4? ( dev-qt/qtcore:4 dev-qt/qtgui:4 ) ) |
154 |
+ qt5? ( dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5 ) |
155 |
+ rdp? ( =net-misc/freerdp-1*:0=[client] ) |
156 |
+ samba? ( >=net-fs/samba-4.0.0_alpha1:0[client] ) |
157 |
+ schroedinger? ( >=media-libs/schroedinger-1.0.10:0 ) |
158 |
+ sdl? ( >=media-libs/libsdl-1.2.10:0 |
159 |
+ sdl-image? ( >=media-libs/sdl-image-1.2.10:0 sys-libs/zlib:0 ) ) |
160 |
+ sftp? ( net-libs/libssh2:0 ) |
161 |
+ shout? ( >=media-libs/libshout-2.1:0 ) |
162 |
+ sid? ( media-libs/libsidplay:2 ) |
163 |
+ skins? ( x11-libs/libXext:0 x11-libs/libXpm:0 x11-libs/libXinerama:0 ) |
164 |
+ speex? ( media-libs/speex:0 ) |
165 |
+ svg? ( >=gnome-base/librsvg-2.9:2 >=x11-libs/cairo-1.13.1:0 ) |
166 |
+ swscale? ( |
167 |
+ !libav? ( media-video/ffmpeg:0= ) |
168 |
+ libav? ( media-video/libav:0= ) |
169 |
+ ) |
170 |
+ taglib? ( >=media-libs/taglib-1.9:0 sys-libs/zlib:0 ) |
171 |
+ theora? ( >=media-libs/libtheora-1.0_beta3:0 ) |
172 |
+ tremor? ( media-libs/tremor:0 ) |
173 |
+ truetype? ( media-libs/freetype:2 virtual/ttf-fonts:0 |
174 |
+ !fontconfig? ( media-fonts/dejavu:0 ) ) |
175 |
+ twolame? ( media-sound/twolame:0 ) |
176 |
+ udev? ( >=virtual/udev-142:0 ) |
177 |
+ upnp? ( net-libs/libupnp:0 ) |
178 |
+ v4l? ( media-libs/libv4l:0 ) |
179 |
+ vaapi? ( |
180 |
+ x11-libs/libva:0[X,drm] |
181 |
+ !libav? ( media-video/ffmpeg:0=[vaapi] ) |
182 |
+ libav? ( media-video/libav:0=[vaapi] ) |
183 |
+ ) |
184 |
+ vcdx? ( >=dev-libs/libcdio-0.78.2:0 >=media-video/vcdimager-0.7.22:0 ) |
185 |
+ zeroconf? ( >=net-dns/avahi-0.6:0[dbus] ) |
186 |
+" |
187 |
+ |
188 |
+# Temporarily block non-live FFMPEG versions as they break vdpau, 9999 works; |
189 |
+# thus we'll have to wait for a new release there. |
190 |
+RDEPEND="${RDEPEND} |
191 |
+ vdpau? ( |
192 |
+ x11-libs/libvdpau:0 |
193 |
+ !libav? ( media-video/ffmpeg:0= ) |
194 |
+ libav? ( >=media-video/libav-10:0= ) |
195 |
+ ) |
196 |
+ vnc? ( >=net-libs/libvncserver-0.9.9:0 ) |
197 |
+ vorbis? ( media-libs/libvorbis:0 ) |
198 |
+ vpx? ( media-libs/libvpx:0= ) |
199 |
+ X? ( x11-libs/libX11:0 ) |
200 |
+ x264? ( media-libs/x264:0= ) |
201 |
+ x265? ( media-libs/x265:0= ) |
202 |
+ xcb? ( x11-libs/libxcb:0 x11-libs/xcb-util:0 x11-libs/xcb-util-keysyms:0 ) |
203 |
+ xml? ( dev-libs/libxml2:2 ) |
204 |
+ zvbi? ( media-libs/zvbi:0 ) |
205 |
+" |
206 |
+ |
207 |
+DEPEND="${RDEPEND} |
208 |
+ !qt5? ( kde? ( kde-frameworks/kdelibs:4 ) ) |
209 |
+ amd64? ( dev-lang/yasm:* ) |
210 |
+ x86? ( dev-lang/yasm:* ) |
211 |
+ xcb? ( x11-proto/xproto:0 ) |
212 |
+ app-arch/xz-utils:0 |
213 |
+ >=sys-devel/gettext-0.18.3:* |
214 |
+ virtual/pkgconfig:* |
215 |
+" |
216 |
+ |
217 |
+REQUIRED_USE=" |
218 |
+ aalib? ( X ) |
219 |
+ bidi? ( truetype ) |
220 |
+ cddb? ( cdda ) |
221 |
+ dvb? ( dvbpsi ) |
222 |
+ dxva2? ( avcodec ) |
223 |
+ ffmpeg? ( avcodec avformat swscale ) |
224 |
+ fontconfig? ( truetype ) |
225 |
+ gnutls? ( gcrypt ) |
226 |
+ httpd? ( lua ) |
227 |
+ libcaca? ( X ) |
228 |
+ libtar? ( skins ) |
229 |
+ libtiger? ( kate ) |
230 |
+ qt4? ( X ) |
231 |
+ qt5? ( X ) |
232 |
+ sdl? ( X ) |
233 |
+ skins? ( truetype X xml || ( qt4 qt5 ) ) |
234 |
+ vaapi? ( avcodec X ) |
235 |
+ vdpau? ( X ) |
236 |
+ vlm? ( encode ) |
237 |
+ xv? ( xcb ) |
238 |
+" |
239 |
+ |
240 |
+PATCHES=( |
241 |
+ # Fix build system mistake. |
242 |
+ "${FILESDIR}"/${PN}-2.1.0-fix-libtremor-libs.patch |
243 |
+ |
244 |
+ # Patch up incompatibilities and reconfigure autotools. |
245 |
+ "${FILESDIR}"/${PN}-9999-libva-1.2.1-compat.patch |
246 |
+ |
247 |
+ # Fix up broken audio when skipping using a fixed reversed bisected commit. |
248 |
+ "${FILESDIR}"/${PN}-2.1.0-TomWij-bisected-PA-broken-underflow.patch |
249 |
+ |
250 |
+ # Bug #541678 |
251 |
+ "${FILESDIR}"/qt4-select.patch |
252 |
+ |
253 |
+ # Allow QT5.5 since Gentoo has a patched QTwidgets |
254 |
+ "${FILESDIR}"/${PN}-2.2.2-qt5widgets.patch |
255 |
+ |
256 |
+ # Bug #575072 |
257 |
+ "${FILESDIR}"/${PN}-2.2.4-relax_ffmpeg.patch |
258 |
+ "${FILESDIR}"/${PN}-2.2.4-ffmpeg3.patch |
259 |
+ |
260 |
+ # Bug #589396 |
261 |
+ "${FILESDIR}"/${PN}-2.2.4-cxx0x.patch |
262 |
+ |
263 |
+ # Bug #594126 |
264 |
+ "${FILESDIR}"/${PN}-2.2.4-decoder-lock-scope.patch |
265 |
+ "${FILESDIR}"/${PN}-2.2.4-alsa-large-buffers.patch |
266 |
+ |
267 |
+ # Bug #593460 |
268 |
+ "${FILESDIR}"/${PN}-2.2.4-libav-11.7.patch |
269 |
+) |
270 |
+ |
271 |
+DOCS=( AUTHORS THANKS NEWS README doc/fortunes.txt doc/intf-vcd.txt ) |
272 |
+ |
273 |
+S="${WORKDIR}/${MY_P}" |
274 |
+ |
275 |
+pkg_setup() { |
276 |
+ if [[ "${MERGE_TYPE}" != "binary" ]] && tc-is-gcc ; then |
277 |
+ if ! version_is_at_least 4.5 $(gcc-version) ; then |
278 |
+ die "You need to have at least >=sys-devel/gcc-4.5 to build and/or have a working vlc, see bug #426754." |
279 |
+ fi |
280 |
+ fi |
281 |
+} |
282 |
+ |
283 |
+src_unpack() { |
284 |
+ if [[ ${PV} = *9999 ]] ; then |
285 |
+ git-r3_src_unpack |
286 |
+ else |
287 |
+ unpack ${A} |
288 |
+ fi |
289 |
+} |
290 |
+ |
291 |
+src_prepare() { |
292 |
+ # Remove unnecessary warnings about unimplemented pragmas on gcc for now. |
293 |
+ # Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc. |
294 |
+ # |
295 |
+ # config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas] |
296 |
+ # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas] |
297 |
+ # |
298 |
+ # https://gcc.gnu.org/c99status.html |
299 |
+ if tc-is-gcc ; then |
300 |
+ sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die |
301 |
+ fi |
302 |
+ |
303 |
+ # Bootstrap when we are on a git checkout. |
304 |
+ if [[ ${PV} = *9999 ]] ; then |
305 |
+ ./bootstrap |
306 |
+ fi |
307 |
+ |
308 |
+ # Make it build with libtool 1.5 |
309 |
+ rm -f m4/lt* m4/libtool.m4 || die |
310 |
+ |
311 |
+ # We are not in a real git checkout due to the absence of a .git directory. |
312 |
+ touch src/revision.txt || die |
313 |
+ |
314 |
+ default |
315 |
+ |
316 |
+ # Don't use --started-from-file when not using dbus. |
317 |
+ if ! use dbus ; then |
318 |
+ sed -i 's/ --started-from-file//' share/vlc.desktop.in || die |
319 |
+ fi |
320 |
+ |
321 |
+ eautoreconf |
322 |
+ |
323 |
+ # Disable automatic running of tests. |
324 |
+ find . -name 'Makefile.in' -exec sed -i 's/\(..*\)check-TESTS/\1/' {} \; || die |
325 |
+ |
326 |
+ # If qtchooser is installed, it may break the build, because moc,rcc and uic binaries for wrong qt |
327 |
+ # version may be used. Setting QT_SELECT environment variable will enforce correct binaries. |
328 |
+ if use qt5; then |
329 |
+ export QT_SELECT=qt5 |
330 |
+ elif use qt4; then |
331 |
+ export QT_SELECT=qt4 |
332 |
+ fi |
333 |
+} |
334 |
+ |
335 |
+src_configure() { |
336 |
+ local myconf |
337 |
+ |
338 |
+ # Compatibility fix for Samba 4. |
339 |
+ use samba && append-cppflags "-I/usr/include/samba-4.0" |
340 |
+ |
341 |
+ # We need to disable -fstack-check if use >=gcc 4.8.0. |
342 |
+ # See bug #499996 |
343 |
+ use x86 && append-cflags $(test-flags-CC -fno-stack-check) |
344 |
+ |
345 |
+ # Needs libresid-builder from libsidplay:2 which is in another directory... |
346 |
+ # FIXME! |
347 |
+ append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" |
348 |
+ |
349 |
+ if use truetype || use projectm ; then |
350 |
+ local dejavu="/usr/share/fonts/dejavu/" |
351 |
+ myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \ |
352 |
+ --with-default-font-family=Sans \ |
353 |
+ --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf |
354 |
+ --with-default-monospace-font-family=Monospace" |
355 |
+ fi |
356 |
+ |
357 |
+ if use qt5 ; then |
358 |
+ myconf+=" --enable-qt=5" |
359 |
+ else |
360 |
+ if use qt4 ; then |
361 |
+ myconf+=" --enable-qt=4" |
362 |
+ else |
363 |
+ myconf+=" --disable-qt" |
364 |
+ fi |
365 |
+ use kde && myconf+=" --with-kde-solid" |
366 |
+ fi |
367 |
+ |
368 |
+ econf \ |
369 |
+ ${myconf} \ |
370 |
+ --enable-vlc \ |
371 |
+ --docdir=/usr/share/doc/${PF} \ |
372 |
+ --disable-dependency-tracking \ |
373 |
+ --disable-optimizations \ |
374 |
+ --disable-update-check \ |
375 |
+ --enable-fast-install \ |
376 |
+ --enable-screen \ |
377 |
+ $(use_enable a52) \ |
378 |
+ $(use_enable aalib aa) \ |
379 |
+ $(use_enable alsa) \ |
380 |
+ $(use_enable altivec) \ |
381 |
+ $(use_enable atmo) \ |
382 |
+ $(use_enable audioqueue) \ |
383 |
+ $(use_enable avcodec) \ |
384 |
+ $(use_enable avformat) \ |
385 |
+ $(use_enable bidi fribidi) \ |
386 |
+ $(use_enable bluray) \ |
387 |
+ $(use_enable cdda vcd) \ |
388 |
+ $(use_enable cddb libcddb) \ |
389 |
+ $(use_enable chromaprint) \ |
390 |
+ $(use_enable dbus) \ |
391 |
+ $(use_enable directfb) \ |
392 |
+ $(use_enable directx) \ |
393 |
+ $(use_enable dc1394) \ |
394 |
+ $(use_enable debug) \ |
395 |
+ $(use_enable dts dca) \ |
396 |
+ $(use_enable dvbpsi) \ |
397 |
+ $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ |
398 |
+ $(use_enable dxva2) \ |
399 |
+ $(use_enable encode sout) \ |
400 |
+ $(use_enable faad) \ |
401 |
+ $(use_enable fdk fdkaac) \ |
402 |
+ $(use_enable flac) \ |
403 |
+ $(use_enable fluidsynth) \ |
404 |
+ $(use_enable fontconfig) \ |
405 |
+ $(use_enable gcrypt libgcrypt) \ |
406 |
+ $(use_enable gme) \ |
407 |
+ $(use_enable gnome gnomevfs) \ |
408 |
+ $(use_enable gnutls) \ |
409 |
+ $(use_enable growl) \ |
410 |
+ $(use_enable gstreamer gst-decode) \ |
411 |
+ $(use_enable httpd) \ |
412 |
+ $(use_enable ieee1394 dv1394) \ |
413 |
+ $(use_enable jack) \ |
414 |
+ $(use_enable jpeg) \ |
415 |
+ $(use_enable kate) \ |
416 |
+ $(use_enable libass) \ |
417 |
+ $(use_enable libcaca caca) \ |
418 |
+ $(use_enable libnotify notify) \ |
419 |
+ $(use_enable libsamplerate samplerate) \ |
420 |
+ $(use_enable libtar) \ |
421 |
+ $(use_enable libtiger tiger) \ |
422 |
+ $(use_enable linsys) \ |
423 |
+ $(use_enable lirc) \ |
424 |
+ $(use_enable live live555) \ |
425 |
+ $(use_enable lua) \ |
426 |
+ $(use_enable macosx-dialog-provider) \ |
427 |
+ $(use_enable macosx-eyetv) \ |
428 |
+ $(use_enable macosx-qtkit) \ |
429 |
+ $(use_enable macosx-quartztext) \ |
430 |
+ $(use_enable matroska mkv) \ |
431 |
+ $(use_enable cpu_flags_x86_mmx mmx) \ |
432 |
+ $(use_enable modplug mod) \ |
433 |
+ $(use_enable mp3 mad) \ |
434 |
+ $(use_enable mpeg libmpeg2) \ |
435 |
+ $(use_enable mtp) \ |
436 |
+ $(use_enable musepack mpc) \ |
437 |
+ $(use_enable ncurses) \ |
438 |
+ $(use_enable neon) \ |
439 |
+ $(use_enable ogg) $(use_enable ogg mux_ogg) \ |
440 |
+ $(use_enable omxil) \ |
441 |
+ $(use_enable omxil omxil-vout) \ |
442 |
+ $(use_enable opencv) \ |
443 |
+ $(use_enable opengl glspectrum) \ |
444 |
+ $(use_enable opus) \ |
445 |
+ $(use_enable optimisememory optimize-memory) \ |
446 |
+ $(use_enable png) \ |
447 |
+ $(use_enable postproc) \ |
448 |
+ $(use_enable projectm) \ |
449 |
+ $(use_enable pulseaudio pulse) \ |
450 |
+ $(use_enable rdp freerdp) \ |
451 |
+ $(use_enable rtsp realrtsp) \ |
452 |
+ $(use_enable run-as-root) \ |
453 |
+ $(use_enable samba smbclient) \ |
454 |
+ $(use_enable schroedinger) \ |
455 |
+ $(use_enable sdl) \ |
456 |
+ $(use_enable sdl-image) \ |
457 |
+ $(use_enable sid) \ |
458 |
+ $(use_enable sftp) \ |
459 |
+ $(use_enable shout) \ |
460 |
+ $(use_enable skins skins2) \ |
461 |
+ $(use_enable speex) \ |
462 |
+ $(use_enable cpu_flags_x86_sse sse) \ |
463 |
+ $(use_enable svg) \ |
464 |
+ $(use_enable svg svgdec) \ |
465 |
+ $(use_enable swscale) \ |
466 |
+ $(use_enable taglib) \ |
467 |
+ $(use_enable theora) \ |
468 |
+ $(use_enable tremor) \ |
469 |
+ $(use_enable truetype freetype) \ |
470 |
+ $(use_enable twolame) \ |
471 |
+ $(use_enable udev) \ |
472 |
+ $(use_enable upnp) \ |
473 |
+ $(use_enable v4l v4l2) \ |
474 |
+ $(use_enable vaapi libva) \ |
475 |
+ $(use_enable vcdx) \ |
476 |
+ $(use_enable vdpau) \ |
477 |
+ $(use_enable vlm) \ |
478 |
+ $(use_enable vnc) \ |
479 |
+ $(use_enable vorbis) \ |
480 |
+ $(use_enable vpx) \ |
481 |
+ $(use_enable wma-fixed) \ |
482 |
+ $(use_with X x) \ |
483 |
+ $(use_enable x264) \ |
484 |
+ $(use_enable x265) \ |
485 |
+ $(use_enable xcb) \ |
486 |
+ $(use_enable xml libxml2) \ |
487 |
+ $(use_enable xv xvideo) \ |
488 |
+ $(use_enable zeroconf bonjour) \ |
489 |
+ $(use_enable zvbi) $(use_enable !zvbi telx) \ |
490 |
+ --disable-asdcp \ |
491 |
+ --disable-coverage \ |
492 |
+ --disable-cprof \ |
493 |
+ --disable-crystalhd \ |
494 |
+ --disable-decklink \ |
495 |
+ --disable-gles1 \ |
496 |
+ --disable-gles2 \ |
497 |
+ --disable-goom \ |
498 |
+ --disable-kai \ |
499 |
+ --disable-kva \ |
500 |
+ --disable-maintainer-mode \ |
501 |
+ --disable-merge-ffmpeg \ |
502 |
+ --disable-mfx \ |
503 |
+ --disable-mmal-codec \ |
504 |
+ --disable-mmal-vout \ |
505 |
+ --disable-opensles \ |
506 |
+ --disable-oss \ |
507 |
+ --disable-quicktime \ |
508 |
+ --disable-rpi-omxil \ |
509 |
+ --disable-shine \ |
510 |
+ --disable-sndio \ |
511 |
+ --disable-vda \ |
512 |
+ --disable-vsxu \ |
513 |
+ --disable-wasapi |
514 |
+ |
515 |
+ # ^ We don't have these disabled libraries in the Portage tree yet. |
516 |
+ |
517 |
+ # _FORTIFY_SOURCE is set to 2 in config.h, which is also the default value on Gentoo. |
518 |
+ # Other values of _FORTIFY_SOURCE may break the build (bug 523144), so definition should not be removed from config.h. |
519 |
+ # To prevent redefinition warnings, we undefine _FORTIFY_SOURCE at the very start of config.h file |
520 |
+ sed -i '1i#undef _FORTIFY_SOURCE' "${S}"/config.h || die |
521 |
+} |
522 |
+ |
523 |
+src_test() { |
524 |
+ virtx emake check-TESTS |
525 |
+} |
526 |
+ |
527 |
+src_install() { |
528 |
+ default |
529 |
+ |
530 |
+ # Punt useless libtool's .la files |
531 |
+ find "${D}" -name '*.la' -delete || die |
532 |
+} |
533 |
+ |
534 |
+pkg_postinst() { |
535 |
+ if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then |
536 |
+ einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/" |
537 |
+ "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/" |
538 |
+ else |
539 |
+ ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)" |
540 |
+ ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually" |
541 |
+ ewarn "If you do not do it, vlc will take a long time to load." |
542 |
+ fi |
543 |
+} |