/[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.183 Revision 1.188
1# Copyright 1999-2013 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.183 2013/03/02 22:44:15 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.188 2013/05/16 19:21:23 ulm Exp $
4 4
5EAPI="4" 5EAPI="5"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git-2 9 SCM=git-2
10 EGIT_BOOTSTRAP="bootstrap" 10 EGIT_BOOTSTRAP="bootstrap"
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="108" 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 )
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 x11-libs/libXinerama ) 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
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 )
140 win32codecs? ( media-libs/win32codecs )
141 X? ( x11-libs/libX11 ) 138 X? ( x11-libs/libX11 )
142 x264? ( >=media-libs/x264-0.0.20090923 ) 139 x264? ( >=media-libs/x264-0.0.20090923 )
143 xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 ) 140 xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 )
144 xml? ( dev-libs/libxml2 ) 141 xml? ( dev-libs/libxml2 )
145 zvbi? ( >=media-libs/zvbi-0.2.25 ) 142 zvbi? ( >=media-libs/zvbi-0.2.25 )
146 " 143 "
147 144
148DEPEND="${RDEPEND} 145DEPEND="${RDEPEND}
149 alsa? ( >=media-sound/alsa-headers-1.0.23 )
150 kde? ( >=kde-base/kdelibs-4 ) 146 kde? ( >=kde-base/kdelibs-4 )
151 xcb? ( x11-proto/xproto ) 147 xcb? ( x11-proto/xproto )
152 app-arch/xz-utils 148 app-arch/xz-utils
153 virtual/pkgconfig" 149 virtual/pkgconfig"
154 150
164 gnutls? ( gcrypt ) 160 gnutls? ( gcrypt )
165 httpd? ( lua ) 161 httpd? ( lua )
166 libcaca? ( X ) 162 libcaca? ( X )
167 libtar? ( skins ) 163 libtar? ( skins )
168 libtiger? ( kate ) 164 libtiger? ( kate )
169 media-library? ( sqlite )
170 qt4? ( X ) 165 qt4? ( X )
171 sdl? ( X ) 166 sdl? ( X )
172 skins? ( truetype qt4 X ) 167 skins? ( truetype qt4 X )
173 switcher? ( avcodec )
174 vaapi? ( avcodec X ) 168 vaapi? ( avcodec X )
175 vlm? ( encode ) 169 vlm? ( encode )
176 xv? ( xcb ) 170 xv? ( xcb )
177" 171"
178 172
179S="${WORKDIR}/${MY_P}" 173S="${WORKDIR}/${MY_P}"
180 174
181src_unpack() { 175src_unpack() {
182 unpack ${A}
183 if [ "${PV%9999}" != "${PV}" ] ; then 176 if [ "${PV%9999}" != "${PV}" ] ; then
184 git-2_src_unpack 177 git-2_src_unpack
185 fi 178 fi
186} 179}
187 180
188src_prepare() { 181src_prepare() {
189 # Make it build with libtool 1.5 182 # Make it build with libtool 1.5
190 rm -f m4/lt* m4/libtool.m4 183 rm -f m4/lt* m4/libtool.m4
191 184
192 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" 185# EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
193 eautoreconf 186 eautoreconf
194} 187}
195 188
196src_configure() { 189src_configure() {
197 # needs libresid-builder from libsidplay:2 which is in another directory... 190 # needs libresid-builder from libsidplay:2 which is in another directory...
198 # FIXME! 191 # FIXME!
199 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" 192 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
200 193
194 if use truetype || use projectm; then
195 local dejavu="/usr/share/fonts/dejavu/"
196 myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
197 --with-default-font-family=Sans \
198 --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
199 --with-default-monospace-font-family=Monospace"
200 fi
201
201 econf \ 202 econf \
203 ${myconf} \
202 --docdir=/usr/share/doc/${PF} \ 204 --docdir=/usr/share/doc/${PF} \
203 $(use_enable a52) \ 205 $(use_enable a52) \
204 $(use_enable aalib aa) \ 206 $(use_enable aalib aa) \
205 $(use_enable aac faad) \ 207 $(use_enable aac faad) \
206 $(use_enable alsa) \ 208 $(use_enable alsa) \
212 $(use_enable avformat) \ 214 $(use_enable avformat) \
213 $(use_enable bidi fribidi) \ 215 $(use_enable bidi fribidi) \
214 $(use_enable bluray) \ 216 $(use_enable bluray) \
215 $(use_enable cdda vcd) \ 217 $(use_enable cdda vcd) \
216 $(use_enable cddb libcddb) \ 218 $(use_enable cddb libcddb) \
217 $(use_enable dbus) $(use_enable dbus dbus-control) \ 219 $(use_enable dbus) \
218 $(use_enable dirac) \ 220 $(use_enable dirac) \
219 $(use_enable direct2d) \
220 $(use_enable directfb) \ 221 $(use_enable directfb) \
221 $(use_enable directx) \ 222 $(use_enable directx) \
222 $(use_enable dc1394) \ 223 $(use_enable dc1394) \
223 $(use_enable debug) \ 224 $(use_enable debug) \
224 $(use_enable dshow) \
225 $(use_enable dts dca) \ 225 $(use_enable dts dca) \
226 $(use_enable dvbpsi) \ 226 $(use_enable dvbpsi) \
227 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \ 227 $(use_enable dvd dvdread) $(use_enable dvd dvdnav) \
228 $(use_enable dxva2) \ 228 $(use_enable dxva2) \
229 $(use_enable egl) \ 229 $(use_enable egl) \
243 $(use_enable kate) \ 243 $(use_enable kate) \
244 $(use_with kde kde-solid) \ 244 $(use_with kde kde-solid) \
245 $(use_enable libass) \ 245 $(use_enable libass) \
246 $(use_enable libcaca caca) \ 246 $(use_enable libcaca caca) \
247 $(use_enable libnotify notify) \ 247 $(use_enable libnotify notify) \
248 $(use_enable libproxy) \
249 $(use_enable libsamplerate samplerate) \ 248 $(use_enable libsamplerate samplerate) \
250 $(use_enable libtar) \ 249 $(use_enable libtar) \
251 $(use_enable libtiger tiger) \ 250 $(use_enable libtiger tiger) \
252 $(use_enable linsys) \ 251 $(use_enable linsys) \
253 $(use_enable lirc) \ 252 $(use_enable lirc) \
258 $(use_enable macosx-eyetv) \ 257 $(use_enable macosx-eyetv) \
259 $(use_enable macosx-qtkit) \ 258 $(use_enable macosx-qtkit) \
260 $(use_enable macosx-quartztext) \ 259 $(use_enable macosx-quartztext) \
261 $(use_enable macosx-vout) \ 260 $(use_enable macosx-vout) \
262 $(use_enable matroska mkv) \ 261 $(use_enable matroska mkv) \
263 $(use_enable media-library) \
264 $(use_enable mmx) \ 262 $(use_enable mmx) \
265 $(use_enable modplug mod) \ 263 $(use_enable modplug mod) \
266 $(use_enable mp3 mad) \ 264 $(use_enable mp3 mad) \
267 $(use_enable mpeg libmpeg2) \ 265 $(use_enable mpeg libmpeg2) \
268 $(use_enable mtp) \ 266 $(use_enable mtp) \
276 $(use_enable oss) \ 274 $(use_enable oss) \
277 $(use_enable png) \ 275 $(use_enable png) \
278 $(use_enable postproc) \ 276 $(use_enable postproc) \
279 $(use_enable projectm) \ 277 $(use_enable projectm) \
280 $(use_enable pulseaudio pulse) \ 278 $(use_enable pulseaudio pulse) \
281 $(use_enable pvr) \
282 $(use_enable qt4 qt) \ 279 $(use_enable qt4 qt) \
283 $(use_enable rtsp realrtsp) \ 280 $(use_enable rtsp realrtsp) \
284 $(use_enable run-as-root) \ 281 $(use_enable run-as-root) \
285 $(use_enable samba smb) \ 282 $(use_enable samba smbclient) \
286 $(use_enable schroedinger) \ 283 $(use_enable schroedinger) \
287 $(use_enable sdl) \ 284 $(use_enable sdl) \
288 $(use_enable sdl-image) \ 285 $(use_enable sdl-image) \
289 $(use_enable shine) \ 286 $(use_enable shine) \
290 $(use_enable sid) \ 287 $(use_enable sid) \
291 $(use_enable shout) \ 288 $(use_enable shout) \
292 $(use_enable skins skins2) \ 289 $(use_enable skins skins2) \
293 $(use_enable speex) \ 290 $(use_enable speex) \
294 $(use_enable sqlite) \
295 $(use_enable sse) \ 291 $(use_enable sse) \
296 $(use_enable svg) \ 292 $(use_enable svg) \
297 $(use_enable switcher) \
298 $(use_enable swscale) \ 293 $(use_enable swscale) \
299 $(use_enable taglib) \ 294 $(use_enable taglib) \
300 $(use_enable theora) \ 295 $(use_enable theora) \
301 $(use_enable truetype freetype) \ 296 $(use_enable truetype freetype) \
302 $(use_enable twolame) \ 297 $(use_enable twolame) \
306 $(use_enable vaapi libva) \ 301 $(use_enable vaapi libva) \
307 $(use_enable vcdx) \ 302 $(use_enable vcdx) \
308 $(use_enable vlm) \ 303 $(use_enable vlm) \
309 $(use_enable vorbis) \ 304 $(use_enable vorbis) \
310 $(use_enable waveout) \ 305 $(use_enable waveout) \
311 $(use_enable win32codecs loader) \
312 $(use_enable wingdi) \
313 $(use_enable wma-fixed) \ 306 $(use_enable wma-fixed) \
314 $(use_with X x) \ 307 $(use_with X x) \
315 $(use_enable x264) \ 308 $(use_enable x264) \
316 $(use_enable xcb) \ 309 $(use_enable xcb) \
317 $(use_enable xml libxml2) \ 310 $(use_enable xml libxml2) \

Legend:
Removed from v.1.183  
changed lines
  Added in v.1.188

  ViewVC Help
Powered by ViewVC 1.1.20