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

Diff of /media-video/vlc/vlc-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.174 Revision 1.185
1# Copyright 1999-2012 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.174 2012/05/29 16:05:51 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.185 2013/04/27 15:05:06 scarabeus Exp $
4 4
5EAPI="4" 5EAPI="4"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
19 19
20MY_PV="${PV/_/-}" 20MY_PV="${PV/_/-}"
21MY_PV="${MY_PV/-beta/-test}" 21MY_PV="${MY_PV/-beta/-test}"
22MY_P="${PN}-${MY_PV}" 22MY_P="${PN}-${MY_PV}"
23 23
24PATCHLEVEL="101" 24# PATCHLEVEL="108"
25DESCRIPTION="VLC media player - Video player and streamer" 25DESCRIPTION="VLC media player - Video player and streamer"
26HOMEPAGE="http://www.videolan.org/vlc/" 26HOMEPAGE="http://www.videolan.org/vlc/"
27if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild 27if [ "${PV%9999}" != "${PV}" ] ; then # Live ebuild
28 SRC_URI="" 28 SRC_URI=""
29elif [[ "${MY_P}" == "${P}" ]]; then 29elif [[ "${MY_P}" == "${P}" ]]; then
30 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz" 30 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.xz"
31else 31else
32 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz" 32 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.xz"
33fi 33fi
34 34
35SRC_URI="${SRC_URI} 35# SRC_URI="${SRC_URI}
36 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2" 36# mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
37 37
38LICENSE="LGPL-2.1 GPL-2" 38LICENSE="LGPL-2.1 GPL-2"
39SLOT="0" 39SLOT="0"
40 40
41if [ "${PV%9999}" = "${PV}" ] ; then 41if [ "${PV%9999}" = "${PV}" ] ; then
42 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd" 42 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd"
43else 43else
44 KEYWORDS="" 44 KEYWORDS=""
45fi 45fi
46IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec 46IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
47 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac direct2d 47 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac
48 directfb directx dshow dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode 48 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode
49 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls 49 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
50 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify 50 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
51 libproxy libsamplerate libtiger linsys libtar lirc live lua +macosx 51 libsamplerate libtiger linsys libtar lirc live lua +macosx
52 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext 52 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
53 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg 53 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
54 mtp musepack ncurses neon ogg omxil opengl optimisememory oss png 54 mtp musepack ncurses neon ogg omxil opengl optimisememory oss png
55 +postproc projectm pulseaudio pvr +qt4 rtsp run-as-root samba schroedinger 55 +postproc projectm pulseaudio +qt4 rtsp run-as-root samba schroedinger
56 sdl sdl-image shine shout sid skins speex sqlite sse svg +swscale switcher 56 sdl sdl-image shine shout sid skins speex sse svg +swscale
57 taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vorbis waveout 57 taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vorbis waveout
58 win32codecs wingdi wma-fixed +X x264 +xcb xml xv zvbi" 58 wma-fixed +X x264 +xcb xml xv zvbi"
59 59
60RDEPEND=" 60RDEPEND="
61 >=sys-libs/zlib-1.2.5.1-r2[minizip] 61 >=sys-libs/zlib-1.2.5.1-r2[minizip]
62 a52? ( >=media-libs/a52dec-0.7.4-r3 ) 62 a52? ( >=media-libs/a52dec-0.7.4-r3 )
63 aalib? ( media-libs/aalib ) 63 aalib? ( media-libs/aalib )
90 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 ) 90 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
91 kate? ( >=media-libs/libkate-0.1.1 ) 91 kate? ( >=media-libs/libkate-0.1.1 )
92 libass? ( >=media-libs/libass-0.9.8 media-libs/fontconfig ) 92 libass? ( >=media-libs/libass-0.9.8 media-libs/fontconfig )
93 libcaca? ( >=media-libs/libcaca-0.99_beta14 ) 93 libcaca? ( >=media-libs/libcaca-0.99_beta14 )
94 libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 ) 94 libnotify? ( x11-libs/libnotify x11-libs/gtk+:2 )
95 libproxy? ( net-libs/libproxy )
96 libsamplerate? ( media-libs/libsamplerate ) 95 libsamplerate? ( media-libs/libsamplerate )
97 libtar? ( >=dev-libs/libtar-1.2.11-r3 ) 96 libtar? ( >=dev-libs/libtar-1.2.11-r3 )
98 libtiger? ( media-libs/libtiger ) 97 libtiger? ( media-libs/libtiger )
99 linsys? ( >=media-libs/zvbi-0.2.28 ) 98 linsys? ( >=media-libs/zvbi-0.2.28 )
100 lirc? ( app-misc/lirc ) 99 lirc? ( app-misc/lirc )
110 ncurses? ( sys-libs/ncurses[unicode] ) 109 ncurses? ( sys-libs/ncurses[unicode] )
111 ogg? ( media-libs/libogg ) 110 ogg? ( media-libs/libogg )
112 opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 ) 111 opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 )
113 png? ( media-libs/libpng sys-libs/zlib ) 112 png? ( media-libs/libpng sys-libs/zlib )
114 postproc? ( || ( media-video/ffmpeg media-libs/libpostproc ) ) 113 postproc? ( || ( media-video/ffmpeg media-libs/libpostproc ) )
115 projectm? ( media-libs/libprojectm ) 114 projectm? ( media-libs/libprojectm media-fonts/dejavu )
116 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 ) 115 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
117 qt4? ( x11-libs/qt-gui:4 x11-libs/qt-core:4 ) 116 qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 )
118 samba? ( >=net-fs/samba-3.4.6[smbclient] ) 117 samba? ( >=net-fs/samba-3.4.6[smbclient] )
119 schroedinger? ( >=media-libs/schroedinger-1.0.10 ) 118 schroedinger? ( >=media-libs/schroedinger-1.0.10 )
120 sdl? ( >=media-libs/libsdl-1.2.8 119 sdl? ( >=media-libs/libsdl-1.2.8
121 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) ) 120 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
122 shout? ( media-libs/libshout ) 121 shout? ( media-libs/libshout )
123 sid? ( media-libs/libsidplay:2 ) 122 sid? ( media-libs/libsidplay:2 )
124 skins? ( x11-libs/libXext x11-libs/libXpm ) 123 skins? ( x11-libs/libXext x11-libs/libXpm x11-libs/libXinerama )
125 speex? ( media-libs/speex ) 124 speex? ( media-libs/speex )
126 sqlite? ( >=dev-db/sqlite-3.6.0:3 )
127 svg? ( >=gnome-base/librsvg-2.9.0 ) 125 svg? ( >=gnome-base/librsvg-2.9.0 )
128 swscale? ( virtual/ffmpeg ) 126 swscale? ( virtual/ffmpeg )
129 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib ) 127 taglib? ( >=media-libs/taglib-1.5 sys-libs/zlib )
130 theora? ( >=media-libs/libtheora-1.0_beta3 ) 128 theora? ( >=media-libs/libtheora-1.0_beta3 )
131 truetype? ( media-libs/freetype virtual/ttf-fonts 129 truetype? ( media-libs/freetype virtual/ttf-fonts
132 !fontconfig? ( media-fonts/dejavu ) ) 130 !fontconfig? ( media-fonts/dejavu ) )
133 twolame? ( media-sound/twolame ) 131 twolame? ( media-sound/twolame )
134 udev? ( >=sys-fs/udev-142 ) 132 udev? ( virtual/udev )
135 upnp? ( net-libs/libupnp ) 133 upnp? ( net-libs/libupnp )
136 v4l? ( media-libs/libv4l ) 134 v4l? ( media-libs/libv4l )
137 vaapi? ( x11-libs/libva ) 135 vaapi? ( x11-libs/libva )
138 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 ) 136 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
139 vorbis? ( media-libs/libvorbis ) 137 vorbis? ( media-libs/libvorbis )
157 bidi? ( truetype ) 155 bidi? ( truetype )
158 cddb? ( cdda ) 156 cddb? ( cdda )
159 dvb? ( dvbpsi ) 157 dvb? ( dvbpsi )
160 dxva2? ( avcodec ) 158 dxva2? ( avcodec )
161 egl? ( X ) 159 egl? ( X )
162 avcodec? ( ffmpeg ) 160 ffmpeg? ( avcodec avformat swscale postproc )
163 avformat? ( ffmpeg )
164 swscale? ( ffmpeg )
165 fontconfig? ( truetype ) 161 fontconfig? ( truetype )
166 gnutls? ( gcrypt ) 162 gnutls? ( gcrypt )
163 httpd? ( lua )
167 libcaca? ( X ) 164 libcaca? ( X )
168 libtar? ( skins ) 165 libtar? ( skins )
169 libtiger? ( kate ) 166 libtiger? ( kate )
170 media-library? ( sqlite )
171 qt4? ( X ) 167 qt4? ( X )
172 sdl? ( X ) 168 sdl? ( X )
173 skins? ( truetype qt4 X ) 169 skins? ( truetype qt4 X )
174 switcher? ( avcodec )
175 vaapi? ( avcodec X ) 170 vaapi? ( avcodec X )
176 vlm? ( encode ) 171 vlm? ( encode )
177 xv? ( xcb ) 172 xv? ( xcb )
178" 173"
179 174
180S="${WORKDIR}/${MY_P}" 175S="${WORKDIR}/${MY_P}"
181 176
182src_unpack() { 177src_unpack() {
183 unpack ${A}
184 if [ "${PV%9999}" != "${PV}" ] ; then 178 if [ "${PV%9999}" != "${PV}" ] ; then
185 git-2_src_unpack 179 git-2_src_unpack
186 fi 180 fi
187} 181}
188 182
189src_prepare() { 183src_prepare() {
190 # Make it build with libtool 1.5 184 # Make it build with libtool 1.5
191 rm -f m4/lt* m4/libtool.m4 185 rm -f m4/lt* m4/libtool.m4
192 186
193 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" 187# EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
194 eautoreconf 188 eautoreconf
195} 189}
196 190
197src_configure() { 191src_configure() {
198 # needs libresid-builder from libsidplay:2 which is in another directory... 192 # needs libresid-builder from libsidplay:2 which is in another directory...
199 # FIXME! 193 # FIXME!
200 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" 194 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
201 195
196 if use truetype || use projectm; then
197 local dejavu="/usr/share/fonts/dejavu/"
198 myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
199 --with-default-font-family=Sans \
200 --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
201 --with-default-monospace-font-family=Monospace"
202 fi
203
202 econf \ 204 econf \
205 ${myconf} \
203 --docdir=/usr/share/doc/${PF} \ 206 --docdir=/usr/share/doc/${PF} \
204 $(use_enable a52) \ 207 $(use_enable a52) \
205 $(use_enable aalib aa) \ 208 $(use_enable aalib aa) \
206 $(use_enable aac faad) \ 209 $(use_enable aac faad) \
207 $(use_enable alsa) \ 210 $(use_enable alsa) \
213 $(use_enable avformat) \ 216 $(use_enable avformat) \
214 $(use_enable bidi fribidi) \ 217 $(use_enable bidi fribidi) \
215 $(use_enable bluray) \ 218 $(use_enable bluray) \
216 $(use_enable cdda vcd) \ 219 $(use_enable cdda vcd) \
217 $(use_enable cddb libcddb) \ 220 $(use_enable cddb libcddb) \
218 $(use_enable dbus) $(use_enable dbus dbus-control) \ 221 $(use_enable dbus) \
219 $(use_enable dirac) \ 222 $(use_enable dirac) \
220 $(use_enable direct2d) \
221 $(use_enable directfb) \ 223 $(use_enable directfb) \
222 $(use_enable directx) \ 224 $(use_enable directx) \
223 $(use_enable dc1394) \ 225 $(use_enable dc1394) \
224 $(use_enable debug) \ 226 $(use_enable debug) \
225 $(use_enable dshow) \
226 $(use_enable dts dca) \ 227 $(use_enable dts dca) \
227 $(use_enable dvbpsi) \ 228 $(use_enable dvbpsi) \
228 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ 229 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
229 $(use_enable dxva2) \ 230 $(use_enable dxva2) \
230 $(use_enable egl) \ 231 $(use_enable egl) \
244 $(use_enable kate) \ 245 $(use_enable kate) \
245 $(use_with kde kde-solid) \ 246 $(use_with kde kde-solid) \
246 $(use_enable libass) \ 247 $(use_enable libass) \
247 $(use_enable libcaca caca) \ 248 $(use_enable libcaca caca) \
248 $(use_enable libnotify notify) \ 249 $(use_enable libnotify notify) \
249 $(use_enable libproxy) \
250 $(use_enable libsamplerate samplerate) \ 250 $(use_enable libsamplerate samplerate) \
251 $(use_enable libtar) \ 251 $(use_enable libtar) \
252 $(use_enable libtiger tiger) \ 252 $(use_enable libtiger tiger) \
253 $(use_enable linsys) \ 253 $(use_enable linsys) \
254 $(use_enable lirc) \ 254 $(use_enable lirc) \
259 $(use_enable macosx-eyetv) \ 259 $(use_enable macosx-eyetv) \
260 $(use_enable macosx-qtkit) \ 260 $(use_enable macosx-qtkit) \
261 $(use_enable macosx-quartztext) \ 261 $(use_enable macosx-quartztext) \
262 $(use_enable macosx-vout) \ 262 $(use_enable macosx-vout) \
263 $(use_enable matroska mkv) \ 263 $(use_enable matroska mkv) \
264 $(use_enable media-library) \
265 $(use_enable mmx) \ 264 $(use_enable mmx) \
266 $(use_enable modplug mod) \ 265 $(use_enable modplug mod) \
267 $(use_enable mp3 mad) \ 266 $(use_enable mp3 mad) \
268 $(use_enable mpeg libmpeg2) \ 267 $(use_enable mpeg libmpeg2) \
269 $(use_enable mtp) \ 268 $(use_enable mtp) \
270 $(use_enable musepack mpc) \ 269 $(use_enable musepack mpc) \
271 $(use_enable ncurses) \ 270 $(use_enable ncurses) \
272 $(use_enable neon) \ 271 $(use_enable neon) \
273 $(use_enable ogg) \ 272 $(use_enable ogg) $(use_enable ogg mux_ogg) \
274 $(use_enable omxil) \ 273 $(use_enable omxil) \
275 $(use_enable opengl glx) \ 274 $(use_enable opengl glx) \
276 $(use_enable optimisememory optimize-memory) \ 275 $(use_enable optimisememory optimize-memory) \
277 $(use_enable oss) \ 276 $(use_enable oss) \
278 $(use_enable png) \ 277 $(use_enable png) \
279 $(use_enable postproc) \ 278 $(use_enable postproc) \
280 $(use_enable projectm) \ 279 $(use_enable projectm) \
281 $(use_enable pulseaudio pulse) \ 280 $(use_enable pulseaudio pulse) \
282 $(use_enable pvr) \
283 $(use_enable qt4) \ 281 $(use_enable qt4 qt) \
284 $(use_enable rtsp realrtsp) \ 282 $(use_enable rtsp realrtsp) \
285 $(use_enable run-as-root) \ 283 $(use_enable run-as-root) \
286 $(use_enable samba smb) \ 284 $(use_enable samba smbclient) \
287 $(use_enable schroedinger) \ 285 $(use_enable schroedinger) \
288 $(use_enable sdl) \ 286 $(use_enable sdl) \
289 $(use_enable sdl-image) \ 287 $(use_enable sdl-image) \
290 $(use_enable shine) \ 288 $(use_enable shine) \
291 $(use_enable sid) \ 289 $(use_enable sid) \
292 $(use_enable shout) \ 290 $(use_enable shout) \
293 $(use_enable skins skins2) \ 291 $(use_enable skins skins2) \
294 $(use_enable speex) \ 292 $(use_enable speex) \
295 $(use_enable sqlite) \
296 $(use_enable sse) \ 293 $(use_enable sse) \
297 $(use_enable svg) \ 294 $(use_enable svg) \
298 $(use_enable switcher) \
299 $(use_enable swscale) \ 295 $(use_enable swscale) \
300 $(use_enable taglib) \ 296 $(use_enable taglib) \
301 $(use_enable theora) \ 297 $(use_enable theora) \
302 $(use_enable truetype freetype) \ 298 $(use_enable truetype freetype) \
303 $(use_enable twolame) \ 299 $(use_enable twolame) \
307 $(use_enable vaapi libva) \ 303 $(use_enable vaapi libva) \
308 $(use_enable vcdx) \ 304 $(use_enable vcdx) \
309 $(use_enable vlm) \ 305 $(use_enable vlm) \
310 $(use_enable vorbis) \ 306 $(use_enable vorbis) \
311 $(use_enable waveout) \ 307 $(use_enable waveout) \
312 $(use_enable win32codecs loader) \
313 $(use_enable wingdi) \
314 $(use_enable wma-fixed) \ 308 $(use_enable wma-fixed) \
315 $(use_with X x) \ 309 $(use_with X x) \
316 $(use_enable x264) \ 310 $(use_enable x264) \
317 $(use_enable xcb) \ 311 $(use_enable xcb) \
318 $(use_enable xml libxml2) \ 312 $(use_enable xml libxml2) \

Legend:
Removed from v.1.174  
changed lines
  Added in v.1.185

  ViewVC Help
Powered by ViewVC 1.1.20