Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/vlc: ChangeLog vlc-0.9.0_alpha20071022.ebuild
Date: Mon, 22 Oct 2007 17:02:36
Message-Id: E1Ik0fZ-0003kr-BW@stork.gentoo.org
1 aballier 07/10/22 17:02:25
2
3 Modified: ChangeLog
4 Added: vlc-0.9.0_alpha20071022.ebuild
5 Log:
6 Version bump, fixing bug #157746, big thanks to Martin Schlemmer and courmisch
7 (Portage version: 2.1.3.15)
8
9 Revision Changes Path
10 1.269 media-video/vlc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.269&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.269&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?r1=1.268&r2=1.269
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
19 retrieving revision 1.268
20 retrieving revision 1.269
21 diff -u -r1.268 -r1.269
22 --- ChangeLog 13 Oct 2007 00:12:21 -0000 1.268
23 +++ ChangeLog 22 Oct 2007 17:02:24 -0000 1.269
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-video/vlc
26 # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.268 2007/10/13 00:12:21 dirtyepic Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.269 2007/10/22 17:02:24 aballier Exp $
29 +
30 +*vlc-0.9.0_alpha20071022 (22 Oct 2007)
31 +
32 + 22 Oct 2007; Alexis Ballier <aballier@g.o>
33 + +vlc-0.9.0_alpha20071022.ebuild:
34 + Version bump, fixing bug #157746, big thanks to Martin Schlemmer and courmisch
35
36 13 Oct 2007; Ryan Hill <dirtyepic@g.o> vlc-0.8.6c.ebuild,
37 vlc-0.9.0_alpha20071009.ebuild:
38
39
40
41 1.1 media-video/vlc/vlc-0.9.0_alpha20071022.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20071022.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20071022.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vlc-0.9.0_alpha20071022.ebuild
47 ===================================================================
48 # Copyright 1999-2007 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.9.0_alpha20071022.ebuild,v 1.1 2007/10/22 17:02:24 aballier Exp $
51
52 WANT_AUTOMAKE=latest
53 WANT_AUTOCONF=latest
54
55 inherit eutils wxwidgets multilib autotools toolchain-funcs gnome2 nsplugins
56
57 MY_PV="${PV/_/-}"
58 MY_PV="${MY_PV/-beta/-test}"
59 MY_P="${PN}-${MY_PV}"
60 VLC_SNAPSHOT_TIME="0211"
61
62 # Used for live ebuilds
63 # ESVN_REPO_URI="svn://svn.videolan.org/vlc/trunk"
64 # ESVN_PROJECT="${PN}-trunk"
65 # ESVN_BOOTSTRAP="bootstrap"
66 # ESVN_PATCHES="${WORKDIR}/patches/*.patch"
67
68 PATCHLEVEL="43"
69 DESCRIPTION="VLC media player - Video player and streamer"
70 HOMEPAGE="http://www.videolan.org/vlc/"
71 if [[ "${P}" == *_alpha* ]]; then # Snapshots taken from nightlies.videolan.org
72 SRC_URI="http://nightlies.videolan.org/build/source/trunk-${PV/*_alpha/}-${VLC_SNAPSHOT_TIME}/${PN}-snapshot-${PV/*_alpha/}.tar.bz2"
73 MY_P="${P/_alpha*/}-svn"
74 elif [[ "${P}" == *_p* ]]; then # Snapshots
75 SRC_URI="mirror://gentoo/${P}.tar.bz2"
76 MY_P="${P}"
77 elif [[ "${MY_P}" == "${P}" ]]; then
78 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
79 else
80 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
81 fi
82
83 SRC_URI="${SRC_URI}
84 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
85
86 LICENSE="GPL-2"
87 SLOT="0"
88
89 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
90 IUSE="3dfx a52 aalib alsa altivec arts avahi bidi cdda cddb cdio daap dbus dc1394
91 debug directfb dts dvb dvd esd fbcon ffmpeg flac ggi gnome gnutls hal httpd
92 id3tag jack libcaca libgcrypt libnotify lirc live lua matroska mod mp3 mpeg
93 musepack musicbrainz ncurses nsplugin ogg opengl optimisememory oss png pvr
94 rtsp samba sdl sdl-image seamonkey shout skins speex stream svg svga taglib
95 theora truetype twolame upnp v4l v4l2 vcd vcdx vlm vorbis win32codecs wxwindows
96 X x264 xinerama xml xosd xulrunner xv"
97
98 RDEPEND="
99 sys-libs/zlib
100 media-libs/libdvbpsi
101 3dfx? ( media-libs/glide-v3 )
102 a52? ( >=media-libs/a52dec-0.7.4-r3 )
103 aalib? ( media-libs/aalib )
104 alsa? ( media-libs/alsa-lib )
105 arts? ( kde-base/arts )
106 avahi? ( >=net-dns/avahi-0.6 )
107 bidi? ( >=dev-libs/fribidi-0.10.4 )
108 cdda? ( >=dev-libs/libcdio-0.72
109 cddb? ( >=media-libs/libcddb-1.2.0 ) )
110 cdio? ( >=dev-libs/libcdio-0.78.2
111 >=media-video/vcdimager-0.7.22 )
112 daap? ( >=media-libs/libopendaap-0.3.0 )
113 dbus? ( >=sys-apps/dbus-1.0.2 )
114 dc1394? ( sys-libs/libraw1394
115 <media-libs/libdc1394-1.9.99 )
116 directfb? ( dev-libs/DirectFB )
117 dts? ( media-libs/libdca )
118 dvb? ( sys-kernel/linux-headers )
119 dvd? ( media-libs/libdvdread
120 media-libs/libdvdcss
121 >=media-libs/libdvdnav-0.1.9
122 media-libs/libdvdplay )
123 esd? ( media-sound/esound )
124 ffmpeg? ( >=media-video/ffmpeg-0.4.9_p20050226-r1 )
125 flac? ( media-libs/libogg
126 >=media-libs/flac-1.1.2 )
127 ggi? ( media-libs/libggi )
128 gnome? ( gnome-base/gnome-vfs )
129 gnutls? ( >=net-libs/gnutls-1.3.3 )
130 hal? ( sys-apps/hal )
131 id3tag? ( media-libs/libid3tag
132 sys-libs/zlib )
133 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
134 libcaca? ( media-libs/libcaca )
135 libgcrypt? ( >=dev-libs/libgcrypt-1.2.0 )
136 libnotify? ( x11-libs/libnotify )
137 lirc? ( app-misc/lirc )
138 live? ( >=media-plugins/live-2007.02.20 )
139 lua? ( >=dev-lang/lua-5.1 )
140 matroska? (
141 >=dev-libs/libebml-0.7.6
142 >=media-libs/libmatroska-0.8.0 )
143 mod? ( media-libs/libmodplug )
144 mp3? ( media-libs/libmad )
145 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
146 musepack? ( media-libs/libmpcdec )
147 musicbrainz? ( media-libs/musicbrainz )
148 ncurses? ( sys-libs/ncurses )
149 nsplugin? (
150 xulrunner? ( net-libs/xulrunner )
151 !xulrunner? ( seamonkey? ( www-client/seamonkey ) )
152 !xulrunner? ( !seamonkey? ( www-client/mozilla-firefox ) )
153 )
154 ogg? ( media-libs/libogg )
155 png? ( media-libs/libpng )
156 samba? ( net-fs/samba )
157 sdl? ( >=media-libs/libsdl-1.2.8
158 sdl-image? ( media-libs/sdl-image ) )
159 shout? ( media-libs/libshout )
160 speex? ( media-libs/speex )
161 svg? ( >=gnome-base/librsvg-2.9.0 )
162 svga? ( media-libs/svgalib )
163 taglib? ( media-libs/taglib )
164 theora? ( media-libs/libtheora )
165 truetype? ( media-libs/freetype
166 media-fonts/ttf-bitstream-vera )
167 twolame? ( media-sound/twolame )
168 upnp? ( net-libs/libupnp )
169 v4l? ( sys-kernel/linux-headers )
170 v4l2? ( sys-kernel/linux-headers )
171 vorbis? ( media-libs/libvorbis )
172 win32codecs? ( media-libs/win32codecs )
173 wxwindows? ( =x11-libs/wxGTK-2.6* )
174 X? (
175 x11-libs/libX11
176 x11-libs/libXext
177 xv? ( x11-libs/libXv )
178 xinerama? ( x11-libs/libXinerama )
179 opengl? ( virtual/opengl )
180 )
181 x264? ( >=media-libs/x264-svn-20061014 )
182 xml? ( dev-libs/libxml2 )
183 xosd? ( x11-libs/xosd )
184 "
185
186 # Disabled features and reasons:
187 # xvmc? ( x11-libs/libXvMC )
188 # Will probably compile only on x86
189 # dirac? ( media-video/dirac )
190 # Needs testing but can be ok
191 # qt4? ( $(qt4_min_version 4.2.0 ) )
192 # Main addition of 0.9.0, will enable it when it'll be released
193 # zvbi? ( >=media-libs/zvbi-0.2.25 )
194 # Dep not up to date enough
195 # fluidsynth? ( media-sound/fluidsynth )
196 # Will enable it later
197
198 # libgcrypt is mandatory at buildtime, and that's not only a matter of missing
199 # m4s. Bug #195322
200 DEPEND="${RDEPEND}
201 X? ( xinerama? ( x11-proto/xineramaproto ) )
202 dev-util/pkgconfig
203 >=dev-libs/libgcrypt-1.2.0"
204
205 S="${WORKDIR}/${MY_P}"
206
207 # Dispalys a warning if the first use flag is set but not the second
208 vlc_use_needs() {
209 use $1 && use !$2 && ewarn "USE=$1 requires $2, $1 will be disabled."
210 }
211
212 pkg_setup() {
213 if use wxwindows || use skins; then
214 WX_GTK_VER="2.6"
215 need-wxwidgets unicode || die "You need to install wxGTK with unicode support."
216 fi
217 vlc_use_needs skins truetype
218 vlc_use_needs skins wxwindows
219 vlc_use_needs cdda cdio
220 vlc_use_needs vcdx cdio
221 vlc_use_needs libgcrypt gnutls
222 vlc_use_needs bidi truetype
223 }
224
225 src_unpack() {
226 unpack ${A}
227 cd "${S}"
228
229 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
230 AT_M4DIR="m4" eautoreconf
231 }
232
233 src_compile () {
234 local XPIDL=""
235 local MOZILLA_CONFIG=""
236
237 use vlm && \
238 myconf="${myconf} --enable-vlm --enable-sout" || \
239 myconf="${myconf} --disable-vlm"
240
241 if use nsplugin; then
242 if use xulrunner; then
243 XPIDL=/usr/$(get_libdir)/xulrunner
244 MOZILLA_CONFIG=/usr/bin/xulrunner-config
245 elif use seamonkey; then
246 XPIDL=/usr/$(get_libdir)/seamonkey
247 MOZILLA_CONFIG=/usr/$(get_libdir)/seamonkey/seamonkey-config
248 else
249 XPIDL=/usr/$(get_libdir)/mozilla-firefox
250 MOZILLA_CONFIG=/usr/$(get_libdir)/mozilla-firefox/firefox-config
251 fi
252 fi
253
254 econf \
255 $(use_enable 3dfx glide) \
256 $(use_enable a52) \
257 $(use_enable aalib aa) \
258 $(use_enable alsa) \
259 $(use_enable altivec) \
260 $(use_enable arts) \
261 $(use_enable avahi bonjour) \
262 $(use_enable bidi fribidi) \
263 $(use_enable cdda) $(use_enable cdda cddax)\
264 $(use_enable cddb libcddb) \
265 $(use_enable cdio libcdio) \
266 $(use_enable daap) \
267 $(use_enable dbus) $(use_enable dbus dbus-control) \
268 --disable-dirac \
269 $(use_enable directfb) \
270 $(use_enable dc1394) \
271 $(use_enable dts dca) \
272 --disable-dv \
273 $(use_enable dvb) \
274 $(use_enable dvd dvdread) $(use_enable dvd dvdplay) $(use_enable dvd dvdnav) \
275 $(use_enable esd) \
276 --disable-faad \
277 $(use_enable fbcon fb) \
278 $(use_enable ffmpeg) \
279 $(use_enable flac) \
280 --disable-fluidsynth \
281 $(use_enable ggi) \
282 $(use_enable gnome gnomevfs) \
283 $(use_enable gnutls) \
284 $(use_enable hal) \
285 $(use_enable httpd) \
286 $(use_enable id3tag) \
287 $(use_enable jack) \
288 $(use_enable libcaca caca) \
289 $(use_enable libgcrypt) \
290 $(use_enable libnotify notify) \
291 --disable-libtar \
292 $(use_enable lirc) \
293 $(use_enable live live555) \
294 $(use_enable lua) \
295 $(use_enable matroska mkv) \
296 $(use_enable mod) \
297 $(use_enable mp3 mad) \
298 $(use_enable mpeg libmpeg2) \
299 $(use_enable musepack mpc) \
300 $(use_enable musicbrainz) \
301 $(use_enable ncurses) \
302 $(use_enable nsplugin mozilla) XPIDL="${XPIDL}" MOZILLA_CONFIG="${MOZILLA_CONFIG}" \
303 $(use_enable ogg) \
304 $(use_enable opengl glx) $(use_enable opengl) $(use_enable opengl galaktos) \
305 $(use_enable optimisememory optimize-memory) \
306 $(use_enable oss) \
307 $(use_enable png) \
308 --disable-portaudio \
309 $(use_enable pvr) \
310 --disable-qt4 \
311 $(use_enable rtsp) $(use_enable rtsp realrtsp) \
312 $(use_enable samba smb) \
313 $(use_enable sdl) \
314 $(use_enable sdl-image) \
315 $(use_enable shout) \
316 $(use_enable skins skins2) \
317 $(use_enable speex) \
318 $(use_enable stream sout) \
319 $(use_enable svg) \
320 $(use_enable svga svgalib) \
321 $(use_enable taglib) \
322 $(use_enable theora) \
323 $(use_enable truetype freetype) \
324 $(use_enable twolame) \
325 $(use_enable upnp) \
326 $(use_enable v4l) \
327 $(use_enable v4l2) \
328 $(use_enable vcd) \
329 $(use_enable vcdx vcdx) \
330 $(use_enable vorbis) \
331 $(use_enable win32codecs loader) \
332 $(use_enable wxwindows wxwidgets) WX_CONFIG="${WX_CONFIG}" \
333 $(use_enable X x11) $(use_enable X screen) \
334 $(use_enable x264) \
335 $(use_enable xinerama) \
336 $(use_enable xml libxml2) \
337 $(use_enable xosd) \
338 $(use_enable xv xvideo) \
339 --disable-xvmc \
340 --disable-zvbi \
341 --disable-libvc1 \
342 --disable-snapshot \
343 --disable-growl \
344 --disable-pth \
345 --disable-optimizations \
346 --enable-utf8 \
347 --enable-libtool \
348 --enable-fast-install \
349 ${myconf} || die "configuration failed"
350
351 if [[ $(gcc-major-version) == 2 ]]; then
352 sed -i -e s:"-fomit-frame-pointer":: vlc-config || die "-fomit-frame-pointer patching failed"
353 fi
354
355 emake || die "make of VLC failed"
356 }
357
358 src_install() {
359 emake DESTDIR="${D}" install || die "make install failed"
360
361 dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \
362 doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt
363
364 rm -rf "${D}/usr/share/doc/vlc" \
365 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
366
367 if use nsplugin; then
368 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
369 mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
370 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
371 fi
372
373 use skins || rm -rf "${D}/usr/share/vlc/skins2"
374
375 for res in 16 32 48; do
376 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
377 newins "${S}"/share/vlc${res}x${res}.png vlc.png
378 done
379
380 use wxwindows || rm "${D}/usr/share/applications/vlc.desktop"
381 }
382
383
384
385 --
386 gentoo-commits@g.o mailing list