/[gentoo-x86]/media-video/vlc/vlc-2.0.2.ebuild
Gentoo

Contents of /media-video/vlc/vlc-2.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Jan 12 16:16:26 2013 UTC (4 months, 1 week ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Redux versions a bit to keep stable as oldest around.

(Portage version: 2.2.0_alpha151/cvs/Linux x86_64, signed Manifest commit with key 8EEE3BE8)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-2.0.2.ebuild,v 1.5 2012/12/11 05:46:05 patrick Exp $
4
5 EAPI="4"
6
7 SCM=""
8 if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git-2
10 EGIT_BOOTSTRAP="bootstrap"
11 if [ "${PV%.9999}" != "${PV}" ] ; then
12 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
13 else
14 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
15 fi
16 fi
17
18 inherit eutils multilib autotools toolchain-funcs flag-o-matic ${SCM}
19
20 MY_PV="${PV/_/-}"
21 MY_PV="${MY_PV/-beta/-test}"
22 MY_P="${PN}-${MY_PV}"
23
24 PATCHLEVEL="101"
25 DESCRIPTION="VLC media player - Video player and streamer"
26 HOMEPAGE="http://www.videolan.org/vlc/"
27 if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
28 SRC_URI=""
29 elif [[ "${MY_P}" == "${P}" ]]; then
30 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
31 else
32 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
33 fi
34
35 SRC_URI="${SRC_URI}
36 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
37
38 LICENSE="LGPL-2.1 GPL-2"
39 SLOT="0"
40
41 if [ "${PV%9999}" = "${PV}" ] ; then
42 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd"
43 else
44 KEYWORDS=""
45 fi
46 IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
47 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac direct2d
48 directfb directx dshow dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode
49 fbosd fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
50 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
51 libproxy libsamplerate libtiger linsys libtar lirc live lua +macosx
52 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
53 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
54 mtp musepack ncurses neon ogg omxil opengl optimisememory oss png portaudio
55 +postproc projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger
56 sdl sdl-image shine shout sid skins speex sqlite sse svg +swscale switcher
57 taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vorbis waveout
58 win32codecs wingdi wma-fixed +X x264 +xcb xml xosd xv zvbi"
59
60 RDEPEND="
61 >=sys-libs/zlib-1.2.5.1-r2[minizip]
62 a52? ( >=media-libs/a52dec-0.7.4-r3 )
63 aalib? ( media-libs/aalib )
64 aac? ( >=media-libs/faad2-2.6.1 )
65 alsa? ( >=media-libs/alsa-lib-1.0.23 )
66 avahi? ( >=net-dns/avahi-0.6[dbus] )
67 avcodec? ( virtual/ffmpeg )
68 avformat? ( virtual/ffmpeg )
69 bidi? ( >=dev-libs/fribidi-0.10.4 )
70 bluray? ( >=media-libs/libbluray-0.2.1 )
71 cddb? ( >=media-libs/libcddb-1.2.0 )
72 dbus? ( >=sys-apps/dbus-1.0.2 )
73 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
74 dirac? ( >=media-video/dirac-0.10.0 )
75 directfb? ( dev-libs/DirectFB sys-libs/zlib )
76 dts? ( media-libs/libdca )
77 dvbpsi? ( >=media-libs/libdvbpsi-0.2.1 )
78 dvd? ( media-libs/libdvdread >=media-libs/libdvdnav-0.1.9 )
79 egl? ( virtual/opengl )
80 elibc_glibc? ( >=sys-libs/glibc-2.8 )
81 flac? ( media-libs/libogg >=media-libs/flac-1.1.2 )
82 fluidsynth? ( media-sound/fluidsynth )
83 fontconfig? ( media-libs/fontconfig )
84 gcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
85 gme? ( media-libs/game-music-emu )
86 gnome? ( gnome-base/gnome-vfs )
87 gnutls? ( >=net-libs/gnutls-2.0.0 )
88 ieee1394? ( >=sys-libs/libraw1394-2.0.1 >=sys-libs/libavc1394-0.5.3 )
89 ios-vout? ( virtual/opengl )
90 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
91 kate? ( >=media-libs/libkate-0.1.1 )
92 libass? ( >=media-libs/libass-0.9.8 media-libs/fontconfig )
93 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
94 libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 )
95 libproxy? ( net-libs/libproxy )
96 libsamplerate? ( media-libs/libsamplerate )
97 libtar? ( >=dev-libs/libtar-1.2.11-r3 )
98 libtiger? ( media-libs/libtiger )
99 linsys? ( >=media-libs/zvbi-0.2.28 )
100 lirc? ( app-misc/lirc )
101 live? ( >=media-plugins/live-2011.12.23 )
102 lua? ( >=dev-lang/lua-5.1 )
103 macosx-vout? ( virtual/opengl )
104 matroska? ( >=dev-libs/libebml-1.0.0 >=media-libs/libmatroska-1.0.0 )
105 modplug? ( >=media-libs/libmodplug-0.8.8.1 )
106 mp3? ( media-libs/libmad )
107 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
108 mtp? ( >=media-libs/libmtp-1.0.0 )
109 musepack? ( >=media-sound/musepack-tools-444 )
110 ncurses? ( sys-libs/ncurses[unicode] )
111 ogg? ( media-libs/libogg )
112 opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 )
113 png? ( media-libs/libpng sys-libs/zlib )
114 portaudio? ( >=media-libs/portaudio-19_pre )
115 postproc? ( || ( media-video/ffmpeg media-libs/libpostproc ) )
116 projectm? ( media-libs/libprojectm )
117 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
118 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 )
119 samba? ( >=net-fs/samba-3.4.6[smbclient] )
120 schroedinger? ( >=media-libs/schroedinger-1.0.10 )
121 sdl? ( >=media-libs/libsdl-1.2.8
122 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
123 shout? ( media-libs/libshout )
124 sid? ( media-libs/libsidplay:2 )
125 skins? ( x11-libs/libXext x11-libs/libXpm x11-libs/libXinerama )
126 speex? ( media-libs/speex )
127 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
128 svg? ( >=gnome-base/librsvg-2.9.0 )
129 swscale? ( virtual/ffmpeg )
130 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
131 theora? ( >=media-libs/libtheora-1.0_beta3 )
132 truetype? ( media-libs/freetype virtual/ttf-fonts
133 !fontconfig? ( media-fonts/dejavu ) )
134 twolame? ( media-sound/twolame )
135 udev? ( virtual/udev )
136 upnp? ( net-libs/libupnp )
137 v4l? ( media-libs/libv4l )
138 vaapi? ( x11-libs/libva )
139 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
140 vorbis? ( media-libs/libvorbis )
141 win32codecs? ( media-libs/win32codecs )
142 X? ( x11-libs/libX11 )
143 x264? ( >=media-libs/x264-0.0.20090923 )
144 xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 )
145 xml? ( dev-libs/libxml2 )
146 xosd? ( x11-libs/xosd )
147 zvbi? ( >=media-libs/zvbi-0.2.25 )
148 "
149
150 DEPEND="${RDEPEND}
151 alsa? ( >=media-sound/alsa-headers-1.0.23 )
152 fbosd? ( sys-kernel/linux-headers )
153 kde? ( >=kde-base/kdelibs-4 )
154 xcb? ( x11-proto/xproto )
155 app-arch/xz-utils
156 virtual/pkgconfig"
157
158 REQUIRED_USE="
159 aalib? ( X )
160 bidi? ( truetype )
161 cddb? ( cdda )
162 dvb? ( dvbpsi )
163 dxva2? ( avcodec )
164 egl? ( X )
165 ffmpeg? ( avcodec avformat swscale postproc )
166 fontconfig? ( truetype )
167 gnutls? ( gcrypt )
168 httpd? ( lua )
169 libcaca? ( X )
170 libtar? ( skins )
171 libtiger? ( kate )
172 media-library? ( sqlite )
173 qt4? ( X )
174 sdl? ( X )
175 skins? ( truetype qt4 X )
176 switcher? ( avcodec )
177 vaapi? ( avcodec X )
178 vlm? ( encode )
179 xosd? ( X )
180 xv? ( xcb )
181 "
182
183 S="${WORKDIR}/${MY_P}"
184
185 src_unpack() {
186 unpack ${A}
187 if [ "${PV%9999}" != "${PV}" ] ; then
188 git-2_src_unpack
189 fi
190 }
191
192 src_prepare() {
193 # Make it build with libtool 1.5
194 rm -f m4/lt* m4/libtool.m4
195
196 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
197 eautoreconf
198 }
199
200 src_configure() {
201 # needs libresid-builder from libsidplay:2 which is in another directory...
202 # FIXME!
203 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
204
205 econf \
206 --docdir=/usr/share/doc/${PF} \
207 $(use_enable a52) \
208 $(use_enable aalib aa) \
209 $(use_enable aac faad) \
210 $(use_enable alsa) \
211 $(use_enable altivec) \
212 $(use_enable atmo) \
213 $(use_enable audioqueue) \
214 $(use_enable avahi bonjour) \
215 $(use_enable avcodec) \
216 $(use_enable avformat) \
217 $(use_enable bidi fribidi) \
218 $(use_enable bluray) \
219 $(use_enable cdda vcd) \
220 $(use_enable cddb libcddb) \
221 $(use_enable dbus) $(use_enable dbus dbus-control) \
222 $(use_enable dirac) \
223 $(use_enable direct2d) \
224 $(use_enable directfb) \
225 $(use_enable directx) \
226 $(use_enable dc1394) \
227 $(use_enable debug) \
228 $(use_enable dshow) \
229 $(use_enable dts dca) \
230 $(use_enable dvbpsi) \
231 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
232 $(use_enable dxva2) \
233 $(use_enable egl) \
234 $(use_enable encode sout) \
235 $(use_enable fbosd) \
236 $(use_enable flac) \
237 $(use_enable fluidsynth) \
238 $(use_enable fontconfig) \
239 $(use_enable gcrypt libgcrypt) \
240 $(use_enable gme) \
241 $(use_enable gnome gnomevfs) \
242 $(use_enable gnutls) \
243 $(use_enable growl) \
244 $(use_enable httpd) \
245 $(use_enable ieee1394 dv) \
246 $(use_enable ios-vout) \
247 $(use_enable jack) \
248 $(use_enable kate) \
249 $(use_with kde kde-solid) \
250 $(use_enable libass) \
251 $(use_enable libcaca caca) \
252 $(use_enable libnotify notify) \
253 $(use_enable libproxy) \
254 $(use_enable libsamplerate samplerate) \
255 $(use_enable libtar) \
256 $(use_enable libtiger tiger) \
257 $(use_enable linsys) \
258 $(use_enable lirc) \
259 $(use_enable live live555) \
260 $(use_enable lua) \
261 $(use_enable macosx-audio) \
262 $(use_enable macosx-dialog-provider) \
263 $(use_enable macosx-eyetv) \
264 $(use_enable macosx-qtkit) \
265 $(use_enable macosx-quartztext) \
266 $(use_enable macosx-vout) \
267 $(use_enable matroska mkv) \
268 $(use_enable media-library) \
269 $(use_enable mmx) \
270 $(use_enable modplug mod) \
271 $(use_enable mp3 mad) \
272 $(use_enable mpeg libmpeg2) \
273 $(use_enable mtp) \
274 $(use_enable musepack mpc) \
275 $(use_enable ncurses) \
276 $(use_enable neon) \
277 $(use_enable ogg) \
278 $(use_enable omxil) \
279 $(use_enable opengl glx) \
280 $(use_enable optimisememory optimize-memory) \
281 $(use_enable oss) \
282 $(use_enable png) \
283 $(use_enable portaudio) \
284 $(use_enable postproc) \
285 $(use_enable projectm) \
286 $(use_enable pulseaudio pulse) \
287 $(use_enable pvr) \
288 $(use_enable qt4) \
289 $(use_enable rtsp realrtsp) \
290 $(use_enable run-as-root) \
291 $(use_enable samba smb) \
292 $(use_enable schroedinger) \
293 $(use_enable sdl) \
294 $(use_enable sdl-image) \
295 $(use_enable shine) \
296 $(use_enable sid) \
297 $(use_enable shout) \
298 $(use_enable skins skins2) \
299 $(use_enable speex) \
300 $(use_enable sqlite) \
301 $(use_enable sse) \
302 $(use_enable svg) \
303 $(use_enable switcher) \
304 $(use_enable swscale) \
305 $(use_enable taglib) \
306 $(use_enable theora) \
307 $(use_enable truetype freetype) \
308 $(use_enable twolame) \
309 $(use_enable udev) \
310 $(use_enable upnp) \
311 $(use_enable v4l v4l2) \
312 $(use_enable vaapi libva) \
313 $(use_enable vcdx) \
314 $(use_enable vlm) \
315 $(use_enable vorbis) \
316 $(use_enable waveout) \
317 $(use_enable win32codecs loader) \
318 $(use_enable wingdi) \
319 $(use_enable wma-fixed) \
320 $(use_with X x) \
321 $(use_enable x264) \
322 $(use_enable xcb) \
323 $(use_enable xml libxml2) \
324 $(use_enable xosd) \
325 $(use_enable xv xvideo) \
326 $(use_enable zvbi) $(use_enable !zvbi telx) \
327 --disable-optimizations \
328 --without-tuning \
329 --enable-fast-install
330 }
331
332 src_install() {
333 emake DESTDIR="${D}" install || die "make install failed"
334
335 dodoc AUTHORS THANKS NEWS README \
336 doc/fortunes.txt doc/intf-vcd.txt
337
338 # Punt useless libtool's .la files
339 find "${D}" -name '*.la' -delete
340 }
341
342 pkg_postinst() {
343 if [ "$ROOT" = "/" ] && [ -x "/usr/$(get_libdir)/vlc/vlc-cache-gen" ] ; then
344 einfo "Running /usr/$(get_libdir)/vlc/vlc-cache-gen on /usr/$(get_libdir)/vlc/plugins/"
345 "/usr/$(get_libdir)/vlc/vlc-cache-gen" -f "/usr/$(get_libdir)/vlc/plugins/"
346 else
347 ewarn "We cannot run vlc-cache-gen (most likely ROOT!=/)"
348 ewarn "Please run /usr/$(get_libdir)/vlc/vlc-cache-gen manually"
349 ewarn "If you do not do it, vlc will take a long time to load."
350 fi
351 }

  ViewVC Help
Powered by ViewVC 1.1.13