/[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.191 Revision 1.192
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.191 2013/09/20 23:30:16 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.192 2013/10/21 01:15:02 tomwij Exp $
4 4
5EAPI="5" 5EAPI="5"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git-2 9 SCM="git-r3"
10 EGIT_BOOTSTRAP="bootstrap" 10
11 if [ "${PV%.9999}" != "${PV}" ] ; then 11 if [ "${PV%.9999}" != "${PV}" ] ; then
12 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git" 12 EGIT_REPO_URI="git://git.videolan.org/vlc/vlc-${PV%.9999}.git"
13 else 13 else
14 EGIT_REPO_URI="git://git.videolan.org/vlc.git" 14 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
15 fi 15 fi
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
35# SRC_URI="${SRC_URI}
36# mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
37
38LICENSE="LGPL-2.1 GPL-2" 35LICENSE="LGPL-2.1 GPL-2"
39SLOT="0" 36SLOT="0"
40 37
41if [ "${PV%9999}" = "${PV}" ] ; then 38if [ "${PV%9999}" = "${PV}" ] ; then
42 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd" 39 KEYWORDS="~alpha ~amd64 ~arm ~ppc ~ppc64 -sparc ~x86 ~amd64-fbsd ~x86-fbsd"
43else 40else
44 KEYWORDS="" 41 KEYWORDS=""
45fi 42fi
46IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec 43IUSE="a52 aac aalib alsa altivec atmo +audioqueue avahi +avcodec
47 +avformat bidi bluray cdda cddb dbus dc1394 debug dirac 44 +avformat bidi bluray cdda cddb chromaprint dbus dc1394 debug dirac
48 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode 45 directfb directx dts dvb +dvbpsi dvd dxva2 elibc_glibc egl +encode
49 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls 46 fluidsynth +ffmpeg flac fontconfig +gcrypt gme gnome gnutls
50 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify 47 growl httpd ieee1394 ios-vout jack kate kde libass libcaca libnotify
51 libsamplerate libtiger linsys libtar lirc live lua +macosx 48 libsamplerate libtiger linsys libtar lirc live lua +macosx
52 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext 49 +macosx-audio +macosx-dialog-provider +macosx-eyetv +macosx-quartztext
53 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg 50 +macosx-qtkit +macosx-vout matroska media-library mmx modplug mp3 mpeg
54 mtp musepack ncurses neon ogg omxil opengl optimisememory oss png 51 mtp musepack ncurses neon ogg omxil opencv opengl optimisememory oss png
55 +postproc projectm pulseaudio +qt4 rtsp run-as-root samba schroedinger 52 +postproc projectm pulseaudio +qt4 rdp rtsp run-as-root samba schroedinger
56 sdl sdl-image shine shout sid skins speex sse svg +swscale 53 sdl sdl-image sftp shine shout sid skins speex sse svg +swscale
57 taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vorbis waveout 54 taglib theora truetype twolame udev upnp vaapi v4l vcdx vlm vnc vorbis
58 wma-fixed +X x264 +xcb xml xv zvbi" 55 waveout wma-fixed +X x264 +xcb xml xv zvbi"
59 56
60RDEPEND=" 57RDEPEND="
58 >=sys-devel/gettext-0.18.3
61 >=sys-libs/zlib-1.2.5.1-r2[minizip] 59 >=sys-libs/zlib-1.2.5.1-r2[minizip]
62 a52? ( >=media-libs/a52dec-0.7.4-r3 ) 60 a52? ( >=media-libs/a52dec-0.7.4-r3 )
63 aalib? ( media-libs/aalib ) 61 aalib? ( media-libs/aalib )
64 aac? ( >=media-libs/faad2-2.6.1 ) 62 aac? ( >=media-libs/faad2-2.6.1 )
65 alsa? ( >=media-libs/alsa-lib-1.0.23 ) 63 alsa? ( >=media-libs/alsa-lib-1.0.23 )
67 avcodec? ( virtual/ffmpeg ) 65 avcodec? ( virtual/ffmpeg )
68 avformat? ( virtual/ffmpeg ) 66 avformat? ( virtual/ffmpeg )
69 bidi? ( >=dev-libs/fribidi-0.10.4 ) 67 bidi? ( >=dev-libs/fribidi-0.10.4 )
70 bluray? ( >=media-libs/libbluray-0.2.1 ) 68 bluray? ( >=media-libs/libbluray-0.2.1 )
71 cddb? ( >=media-libs/libcddb-1.2.0 ) 69 cddb? ( >=media-libs/libcddb-1.2.0 )
70 chromaprint? ( >=media-libs/chromaprint-0.6 )
72 dbus? ( >=sys-apps/dbus-1.0.2 ) 71 dbus? ( >=sys-apps/dbus-1.0.2 )
73 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 ) 72 dc1394? ( >=sys-libs/libraw1394-2.0.1 >=media-libs/libdc1394-2.0.2 )
74 dirac? ( >=media-video/dirac-0.10.0 ) 73 dirac? ( >=media-video/dirac-0.10.0 )
75 directfb? ( dev-libs/DirectFB sys-libs/zlib ) 74 directfb? ( dev-libs/DirectFB sys-libs/zlib )
76 dts? ( media-libs/libdca ) 75 dts? ( media-libs/libdca )
106 mpeg? ( >=media-libs/libmpeg2-0.3.2 ) 105 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
107 mtp? ( >=media-libs/libmtp-1.0.0 ) 106 mtp? ( >=media-libs/libmtp-1.0.0 )
108 musepack? ( >=media-sound/musepack-tools-444 ) 107 musepack? ( >=media-sound/musepack-tools-444 )
109 ncurses? ( sys-libs/ncurses[unicode] ) 108 ncurses? ( sys-libs/ncurses[unicode] )
110 ogg? ( media-libs/libogg ) 109 ogg? ( media-libs/libogg )
110 opencv? ( >=media-libs/opencv-2.0 )
111 opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 ) 111 opengl? ( virtual/opengl >=x11-libs/libX11-1.3.99.901 )
112 png? ( media-libs/libpng sys-libs/zlib ) 112 png? ( media-libs/libpng sys-libs/zlib )
113 postproc? ( || ( media-video/ffmpeg:0 media-libs/libpostproc ) ) 113 postproc? ( || ( media-video/ffmpeg:0 media-libs/libpostproc ) )
114 projectm? ( media-libs/libprojectm media-fonts/dejavu ) 114 projectm? ( media-libs/libprojectm media-fonts/dejavu )
115 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 ) 115 pulseaudio? ( >=media-sound/pulseaudio-0.9.22 )
116 qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 ) 116 qt4? ( dev-qt/qtgui:4 dev-qt/qtcore:4 )
117 rdp? ( net-misc/freerdp )
117 samba? ( >=net-fs/samba-3.4.6[smbclient] ) 118 samba? ( >=net-fs/samba-3.4.6[smbclient] )
118 schroedinger? ( >=media-libs/schroedinger-1.0.10 ) 119 schroedinger? ( >=media-libs/schroedinger-1.0.10 )
119 sdl? ( >=media-libs/libsdl-1.2.8 120 sdl? ( >=media-libs/libsdl-1.2.8
120 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) ) 121 sdl-image? ( media-libs/sdl-image sys-libs/zlib ) )
122 sftp? ( net-libs/libssh2 )
121 shout? ( media-libs/libshout ) 123 shout? ( media-libs/libshout )
122 sid? ( media-libs/libsidplay:2 ) 124 sid? ( media-libs/libsidplay:2 )
123 skins? ( x11-libs/libXext x11-libs/libXpm x11-libs/libXinerama ) 125 skins? ( x11-libs/libXext x11-libs/libXpm x11-libs/libXinerama )
124 speex? ( media-libs/speex ) 126 speex? ( media-libs/speex )
125 svg? ( >=gnome-base/librsvg-2.9.0 ) 127 svg? ( >=gnome-base/librsvg-2.9.0 )
133 upnp? ( net-libs/libupnp ) 135 upnp? ( net-libs/libupnp )
134 v4l? ( media-libs/libv4l ) 136 v4l? ( media-libs/libv4l )
135 vaapi? ( x11-libs/libva ) 137 vaapi? ( x11-libs/libva )
136 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 ) 138 vcdx? ( >=dev-libs/libcdio-0.78.2 >=media-video/vcdimager-0.7.22 )
137 vorbis? ( media-libs/libvorbis ) 139 vorbis? ( media-libs/libvorbis )
140 vnc? ( >=net-libs/libvncserver-0.9.9 )
138 X? ( x11-libs/libX11 ) 141 X? ( x11-libs/libX11 )
139 x264? ( >=media-libs/x264-0.0.20090923:= ) 142 x264? ( >=media-libs/x264-0.0.20090923:= )
140 xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 ) 143 xcb? ( >=x11-libs/libxcb-1.6 >=x11-libs/xcb-util-0.3.4 )
141 xml? ( dev-libs/libxml2 ) 144 xml? ( dev-libs/libxml2 )
142 zvbi? ( >=media-libs/zvbi-0.2.25 ) 145 zvbi? ( >=media-libs/zvbi-0.2.25 )
143 " 146 "
144 147
145DEPEND="${RDEPEND} 148DEPEND="${RDEPEND}
149 >=sys-devel/gettext-0.18.3
146 kde? ( >=kde-base/kdelibs-4 ) 150 kde? ( >=kde-base/kdelibs-4 )
147 xcb? ( x11-proto/xproto ) 151 xcb? ( x11-proto/xproto )
148 app-arch/xz-utils 152 app-arch/xz-utils
149 >=sys-devel/gettext-0.18.3
150 virtual/pkgconfig" 153 virtual/pkgconfig"
151 154
152REQUIRED_USE=" 155REQUIRED_USE="
153 aalib? ( X ) 156 aalib? ( X )
154 bidi? ( truetype ) 157 bidi? ( truetype )
173 176
174S="${WORKDIR}/${MY_P}" 177S="${WORKDIR}/${MY_P}"
175 178
176src_unpack() { 179src_unpack() {
177 if [ "${PV%9999}" != "${PV}" ] ; then 180 if [ "${PV%9999}" != "${PV}" ] ; then
178 git-2_src_unpack 181 git-r3_src_unpack
182 else
183 unpack ${A}
179 fi 184 fi
180} 185}
181 186
182src_prepare() { 187src_prepare() {
188 # Remove unnecessary warnings about unimplemented pragmas on gcc for now.
189 # Need to recheck this with gcc 4.9 and every subsequent minor bump of gcc.
190 #
191 # config.h:792: warning: ignoring #pragma STDC FENV_ACCESS [-Wunknown-pragmas]
192 # config.h:793: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
193 #
194 # http://gcc.gnu.org/c99status.html
195 if [[ "$(tc-getCC)" == *"gcc"* ]] ; then
196 sed -i 's/ifndef __FAST_MATH__/if 0/g' configure.ac || die
197 fi
198
199 # Bootstrap when we are on a git checkout.
200 if [[ "${PV%9999}" != "${PV}" ]] ; then
201 ./bootstrap
202 fi
203
183 # Make it build with libtool 1.5 204 # Make it build with libtool 1.5
184 rm -f m4/lt* m4/libtool.m4 205 rm -f m4/lt* m4/libtool.m4 || die
185 206
186# EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" 207 # We are not in a real git checkout due to the absence of a .git directory.
208 touch src/revision.txt || die
209
210 # Patch up problems and reconfigure autotools.
211 epatch "${FILESDIR}"/${PN}-2.1.0-freetype-proper-default-font.patch
212 epatch "${FILESDIR}"/${PN}-2.1.0-newer-rdp.patch
213 epatch "${FILESDIR}"/${PN}-2.1.0-libva-1.2.1-compat.patch
214
187 eautoreconf 215 eautoreconf
188} 216}
189 217
190src_configure() { 218src_configure() {
191 # needs libresid-builder from libsidplay:2 which is in another directory... 219 # Needs libresid-builder from libsidplay:2 which is in another directory...
192 # FIXME! 220 # FIXME!
193 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/" 221 use sid && append-ldflags "-L/usr/$(get_libdir)/sidplay/builders/"
194 222
223 # Need to check if this works and is correct so we can drop the patch above.
224 # TODO!
195 if use truetype || use projectm; then 225 if use truetype || use projectm ; then
196 local dejavu="/usr/share/fonts/dejavu/" 226 local dejavu="/usr/share/fonts/dejavu/"
197 myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \ 227 myconf="--with-default-font=${dejavu}/DejaVuSans.ttf \
198 --with-default-font-family=Sans \ 228 --with-default-font-family=Sans \
199 --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf 229 --with-default-monospace-font=${dejavu}/DejaVuSansMono.ttf
200 --with-default-monospace-font-family=Monospace" 230 --with-default-monospace-font-family=Monospace"
215 $(use_enable avformat) \ 245 $(use_enable avformat) \
216 $(use_enable bidi fribidi) \ 246 $(use_enable bidi fribidi) \
217 $(use_enable bluray) \ 247 $(use_enable bluray) \
218 $(use_enable cdda vcd) \ 248 $(use_enable cdda vcd) \
219 $(use_enable cddb libcddb) \ 249 $(use_enable cddb libcddb) \
250 $(use_enable chromaprint) \
220 $(use_enable dbus) \ 251 $(use_enable dbus) \
221 $(use_enable dirac) \ 252 $(use_enable dirac) \
222 $(use_enable directfb) \ 253 $(use_enable directfb) \
223 $(use_enable directx) \ 254 $(use_enable directx) \
224 $(use_enable dc1394) \ 255 $(use_enable dc1394) \
268 $(use_enable musepack mpc) \ 299 $(use_enable musepack mpc) \
269 $(use_enable ncurses) \ 300 $(use_enable ncurses) \
270 $(use_enable neon) \ 301 $(use_enable neon) \
271 $(use_enable ogg) $(use_enable ogg mux_ogg) \ 302 $(use_enable ogg) $(use_enable ogg mux_ogg) \
272 $(use_enable omxil) \ 303 $(use_enable omxil) \
304 $(use_enable opencv) \
273 $(use_enable opengl glx) \ 305 $(use_enable opengl glx) \
274 $(use_enable optimisememory optimize-memory) \ 306 $(use_enable optimisememory optimize-memory) \
275 $(use_enable oss) \ 307 $(use_enable oss) \
276 $(use_enable png) \ 308 $(use_enable png) \
277 $(use_enable postproc) \ 309 $(use_enable postproc) \
278 $(use_enable projectm) \ 310 $(use_enable projectm) \
279 $(use_enable pulseaudio pulse) \ 311 $(use_enable pulseaudio pulse) \
280 $(use_enable qt4 qt) \ 312 $(use_enable qt4 qt) \
313 $(use_enable rdp freerdp) \
281 $(use_enable rtsp realrtsp) \ 314 $(use_enable rtsp realrtsp) \
282 $(use_enable run-as-root) \ 315 $(use_enable run-as-root) \
283 $(use_enable samba smbclient) \ 316 $(use_enable samba smbclient) \
284 $(use_enable schroedinger) \ 317 $(use_enable schroedinger) \
285 $(use_enable sdl) \ 318 $(use_enable sdl) \
300 $(use_enable upnp) \ 333 $(use_enable upnp) \
301 $(use_enable v4l v4l2) \ 334 $(use_enable v4l v4l2) \
302 $(use_enable vaapi libva) \ 335 $(use_enable vaapi libva) \
303 $(use_enable vcdx) \ 336 $(use_enable vcdx) \
304 $(use_enable vlm) \ 337 $(use_enable vlm) \
338 $(use_enable vnc) \
305 $(use_enable vorbis) \ 339 $(use_enable vorbis) \
306 $(use_enable waveout) \ 340 $(use_enable waveout) \
307 $(use_enable wma-fixed) \ 341 $(use_enable wma-fixed) \
308 $(use_with X x) \ 342 $(use_with X x) \
309 $(use_enable x264) \ 343 $(use_enable x264) \
310 $(use_enable xcb) \ 344 $(use_enable xcb) \
311 $(use_enable xml libxml2) \ 345 $(use_enable xml libxml2) \
312 $(use_enable xv xvideo) \ 346 $(use_enable xv xvideo) \
313 $(use_enable zvbi) $(use_enable !zvbi telx) \ 347 $(use_enable zvbi) $(use_enable !zvbi telx) \
314 --disable-optimizations \ 348 --disable-optimizations \
315 --enable-fast-install 349 --enable-fast-install \
350 --disable-decklink \
351 --disable-goom \
352 --disable-mfx \
353 --disable-vsxu
354
355 # ^ We don't have decklink, goom, mfx or vsxu in the Portage tree.
316} 356}
317 357
318src_install() { 358src_install() {
319 emake DESTDIR="${D}" install || die "make install failed" 359 emake DESTDIR="${D}" install || die "make install failed"
320 360

Legend:
Removed from v.1.191  
changed lines
  Added in v.1.192

  ViewVC Help
Powered by ViewVC 1.1.20