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.8.6d.ebuild
Date: Thu, 10 Jan 2008 23:35:14
Message-Id: E1JD6nF-0007rH-SU@stork.gentoo.org
1 aballier 08/01/10 23:26:37
2
3 Modified: ChangeLog
4 Added: vlc-0.8.6d.ebuild
5 Log:
6 bump to 0.8.6d, applying some security patches
7 (Portage version: 2.1.4_rc14)
8
9 Revision Changes Path
10 1.276 media-video/vlc/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.276&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?rev=1.276&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/ChangeLog?r1=1.275&r2=1.276
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v
19 retrieving revision 1.275
20 retrieving revision 1.276
21 diff -u -r1.275 -r1.276
22 --- ChangeLog 10 Jan 2008 22:21:26 -0000 1.275
23 +++ ChangeLog 10 Jan 2008 23:26:37 -0000 1.276
24 @@ -1,6 +1,11 @@
25 # ChangeLog for media-video/vlc
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.275 2008/01/10 22:21:26 aballier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/ChangeLog,v 1.276 2008/01/10 23:26:37 aballier Exp $
29 +
30 +*vlc-0.8.6d (10 Jan 2008)
31 +
32 + 10 Jan 2008; Alexis Ballier <aballier@g.o> +vlc-0.8.6d.ebuild:
33 + bump to 0.8.6d, applying some security patches
34
35 *vlc-0.9.0_alpha20080110 (10 Jan 2008)
36
37
38
39
40 1.1 media-video/vlc/vlc-0.8.6d.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.8.6d.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vlc/vlc-0.8.6d.ebuild?rev=1.1&content-type=text/plain
44
45 Index: vlc-0.8.6d.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-0.8.6d.ebuild,v 1.1 2008/01/10 23:26:37 aballier Exp $
50
51 WANT_AUTOMAKE=latest
52 WANT_AUTOCONF=latest
53
54 inherit eutils wxwidgets multilib autotools toolchain-funcs gnome2 nsplugins
55
56 MY_PV="${PV/_/-}"
57 MY_PV="${MY_PV/-beta/-test}"
58 MY_P="${PN}-${MY_PV}"
59
60 PATCHLEVEL="46"
61 DESCRIPTION="VLC media player - Video player and streamer"
62 HOMEPAGE="http://www.videolan.org/vlc/"
63
64 if [[ "${P}" == *_p* ]]; then # Snapshots
65 SRC_URI="mirror://gentoo/${P}.tar.bz2"
66 MY_P="${P}"
67 elif [[ "${MY_P}" == "${P}" ]]; then
68 SRC_URI="http://download.videolan.org/pub/videolan/${PN}/${PV}/${P}.tar.bz2"
69 else
70 SRC_URI="http://download.videolan.org/pub/videolan/testing/${MY_P}/${MY_P}.tar.bz2"
71 fi
72
73 SRC_URI="${SRC_URI}
74 mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
75
76 LICENSE="GPL-2"
77 SLOT="0"
78
79 KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
80 IUSE="a52 3dfx debug altivec httpd vlm gnutls live v4l cdda ogg matroska
81 dvb dvd vcd dts flac mpeg vorbis theora X opengl truetype svg fbcon svga
82 oss aalib ggi libcaca esd arts alsa wxwindows ncurses xosd lirc stream
83 mp3 xv bidi sdl sdl-image png xml samba daap corba modplug speex shout rtsp
84 win32codecs skins hal avahi xinerama cddb directfb upnp nsplugin seamonkey
85 optimisememory libnotify jack musepack x264 dc1394 gnome"
86
87 RDEPEND="
88 >=media-video/ffmpeg-0.4.9_p20050226-r1
89 cdda? ( >=dev-libs/libcdio-0.71
90 cddb? ( >=media-libs/libcddb-1.2.0 ) )
91 live? ( >=media-plugins/live-2005.01.29 )
92 dvd? ( media-libs/libdvdread
93 media-libs/libdvdcss
94 >=media-libs/libdvdnav-0.1.9
95 media-libs/libdvdplay )
96 esd? ( media-sound/esound )
97 gnome? ( gnome-base/gnome-vfs )
98 ogg? ( media-libs/libogg )
99 matroska? (
100 >=dev-libs/libebml-0.7.6
101 >=media-libs/libmatroska-0.8.0 )
102 mp3? ( media-libs/libmad )
103 a52? ( >=media-libs/a52dec-0.7.4-r3 )
104 dts? ( || ( media-libs/libdca >=media-libs/libdts-0.0.2-r3 ) )
105 flac? ( media-libs/libogg
106 >=media-libs/flac-1.1.2 )
107 mpeg? ( >=media-libs/libmpeg2-0.3.2 )
108 vorbis? ( media-libs/libvorbis )
109 theora? ( media-libs/libtheora )
110 truetype? ( media-libs/freetype
111 media-fonts/ttf-bitstream-vera )
112 svga? ( media-libs/svgalib )
113 ggi? ( media-libs/libggi )
114 aalib? ( media-libs/aalib )
115 libcaca? ( media-libs/libcaca )
116 arts? ( kde-base/arts )
117 alsa? ( media-libs/alsa-lib )
118 wxwindows? ( =x11-libs/wxGTK-2.6* )
119 skins? ( =x11-libs/wxGTK-2.6*
120 media-libs/freetype
121 media-fonts/ttf-bitstream-vera )
122 ncurses? ( sys-libs/ncurses )
123 xosd? ( x11-libs/xosd )
124 lirc? ( app-misc/lirc )
125 3dfx? ( media-libs/glide-v3 )
126 bidi? ( >=dev-libs/fribidi-0.10.4 )
127 gnutls? ( >=net-libs/gnutls-1.2.9 )
128 sys-libs/zlib
129 png? ( media-libs/libpng )
130 media-libs/libdvbpsi
131 sdl? ( >=media-libs/libsdl-1.2.8
132 sdl-image? ( media-libs/sdl-image ) )
133 xml? ( dev-libs/libxml2 )
134 samba? ( net-fs/samba )
135 vcd? ( >=dev-libs/libcdio-0.72
136 >=media-video/vcdimager-0.7.21 )
137 daap? ( >=media-libs/libopendaap-0.3.0 )
138 corba? ( >=gnome-base/orbit-2.8.0
139 >=dev-libs/glib-2.3.2 )
140 modplug? ( media-libs/libmodplug )
141 speex? ( media-libs/speex )
142 svg? ( >=gnome-base/librsvg-2.5.0 )
143 shout? ( media-libs/libshout )
144 win32codecs? ( media-libs/win32codecs )
145 hal? ( sys-apps/hal )
146 avahi? ( >=net-dns/avahi-0.6 )
147 X? (
148 x11-libs/libX11
149 x11-libs/libXext
150 xv? ( x11-libs/libXv )
151 xinerama? ( x11-libs/libXinerama )
152 opengl? ( virtual/opengl )
153 )
154 directfb? ( dev-libs/DirectFB )
155 upnp? ( net-libs/libupnp )
156 nsplugin? (
157 !seamonkey? ( www-client/mozilla-firefox )
158 seamonkey? ( www-client/seamonkey )
159 )
160 libnotify? ( x11-libs/libnotify )
161 musepack? ( media-libs/libmpcdec )
162 x264? ( >=media-libs/x264-svn-20061014 )
163 jack? ( >=media-sound/jack-audio-connection-kit-0.99.0-r1 )
164 dc1394? ( sys-libs/libraw1394
165 <media-libs/libdc1394-1.9.99 )"
166
167 DEPEND="${RDEPEND}
168 v4l? ( sys-kernel/linux-headers )
169 dvb? ( sys-kernel/linux-headers )
170 X? ( xinerama? ( x11-proto/xineramaproto ) )
171 dev-util/pkgconfig"
172
173 S="${WORKDIR}/${MY_P}"
174
175 pkg_setup() {
176 if use wxwindows || use skins; then
177 WX_GTK_VER="2.6"
178 need-wxwidgets unicode || die "You need to install wxGTK with unicode support."
179 fi
180
181 if use skins && ! use truetype; then
182 ewarn "Trying to build with skins support but without truetype."
183 ewarn "Enabling truetype."
184 fi
185 if use skins && ! use wxwindows; then
186 ewarn "Trying to build with skins support but without wxwindows."
187 ewarn "Enabling wxwindows."
188 fi
189 }
190
191 src_unpack() {
192 unpack ${A}
193 cd "${S}"
194
195 has_version '>=dev-libs/libcdio-0.78' || \
196 export EPATCH_EXCLUDE="230_all_libcdio-0.78.2.patch"
197
198 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
199 AT_M4DIR="m4" eautoreconf
200 }
201
202 src_compile () {
203 local XPIDL=""
204 local MOZILLA_CONFIG=""
205
206 use vlm && \
207 myconf="${myconf} --enable-vlm --enable-sout" || \
208 myconf="${myconf} --disable-vlm"
209
210 if use nsplugin; then
211 if use seamonkey; then
212 XPIDL=/usr/lib/seamonkey
213 MOZILLA_CONFIG=/usr/lib/seamonkey/seamonkey-config
214 else
215 XPIDL=/usr/lib/mozilla-firefox
216 MOZILLA_CONFIG=/usr/lib/mozilla-firefox/firefox-config
217 fi
218 fi
219
220 if use live && ! has_version '>=media-plugins/live-2006.12.08'; then
221 myconf="${myconf} --enable-live555 --with-live555-tree=/usr/$(get_libdir)/live"
222 else
223 myconf="${myconf} $(use_enable live live555)"
224 fi
225
226 if use truetype || use skins; then
227 myconf="${myconf} --enable-freetype"
228 else
229 myconf="${myconf} --disable-freetype"
230 fi
231
232 if use wxwindows || use skins; then
233 myconf="${myconf} --enable-wxwidgets"
234 else
235 myconf="${myconf} --disable-wxwidgets"
236 fi
237
238 econf \
239 $(use_enable altivec) \
240 $(use_enable stream sout) \
241 $(use_enable httpd) \
242 $(use_enable gnutls) \
243 $(use_enable v4l) \
244 $(use_enable cdda) $(use_enable cdda cddax)\
245 $(use_enable cddb libcddb) \
246 $(use_enable vcd) $(use_enable vcd vcdx) \
247 $(use_enable dvb) $(use_enable dvb pvr) \
248 $(use_enable ogg) \
249 $(use_enable matroska mkv) \
250 $(use_enable flac) \
251 $(use_enable vorbis) \
252 $(use_enable theora) \
253 $(use_enable X x11) \
254 $(use_enable xv xvideo) \
255 $(use_enable xinerama) \
256 $(use_enable opengl glx) $(use_enable opengl) \
257 $(use_enable bidi fribidi) \
258 $(use_enable dvd dvdread) $(use_enable dvd dvdplay) $(use_enable dvd dvdnav) \
259 $(use_enable fbcon fb) \
260 $(use_enable svga svgalib) \
261 $(use_enable 3dfx glide) \
262 $(use_enable aalib aa) \
263 $(use_enable libcaca caca) \
264 $(use_enable oss) \
265 $(use_enable esd) \
266 $(use_enable arts) \
267 $(use_enable alsa) \
268 $(use_enable ncurses) \
269 $(use_enable gnome gnomevfs) \
270 $(use_enable xosd) \
271 $(use_enable lirc) \
272 $(use_enable mp3 mad) \
273 $(use_enable a52) \
274 $(use_enable dts) \
275 $(use_enable mpeg libmpeg2) \
276 $(use_enable ggi) \
277 $(use_enable 3dfx glide) \
278 $(use_enable sdl) \
279 $(use_enable sdl-image) \
280 $(use_enable png) \
281 $(use_enable xml libxml2) \
282 $(use_enable samba smb) \
283 $(use_enable daap) \
284 $(use_enable corba) \
285 $(use_enable modplug mod) \
286 $(use_enable speex) \
287 $(use_enable shout) \
288 $(use_enable rtsp) $(use_enable rtsp realrtsp) \
289 $(use_enable win32codecs loader) \
290 $(use_enable skins skins2) \
291 $(use_enable hal) \
292 $(use_enable avahi bonjour) \
293 $(use_enable upnp) \
294 $(use_enable optimisememory optimize-memory) \
295 $(use_enable libnotify notify) \
296 $(use_enable jack) \
297 $(use_enable musepack mpc) \
298 $(use_enable x264) \
299 $(use_enable dc1394) \
300 $(use_enable directfb) \
301 --enable-ffmpeg \
302 --disable-faad \
303 --disable-dv \
304 --disable-libvc1 \
305 --disable-snapshot \
306 --disable-growl \
307 --disable-pth \
308 --disable-portaudio \
309 --disable-libtar \
310 --disable-optimizations \
311 --enable-utf8 \
312 --enable-libtool \
313 $(use_enable nsplugin mozilla) \
314 XPIDL="${XPIDL}" MOZILLA_CONFIG="${MOZILLA_CONFIG}" \
315 WX_CONFIG="${WX_CONFIG}" \
316 ${myconf} || die "configuration failed"
317
318 if [[ $(gcc-major-version) == 2 ]]; then
319 sed -i -e s:"-fomit-frame-pointer":: vlc-config || die "-fomit-frame-pointer patching failed"
320 fi
321
322 emake || die "make of VLC failed"
323 }
324
325 src_install() {
326 # First install the library, to avoid screwups during relinking.select
327 emake -j1 DESTDIR="${D}" install || die "make install failed"
328
329 dodoc AUTHORS MAINTAINERS HACKING THANKS NEWS README \
330 doc/fortunes.txt doc/intf-cdda.txt doc/intf-vcd.txt
331
332 if use nsplugin; then
333 dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
334 mv "${D}"/usr/$(get_libdir)/mozilla/{components,plugins}/* \
335 "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
336 fi
337
338 rm -rf "${D}/usr/share/doc/vlc" \
339 "${D}"/usr/share/vlc/vlc{16x16,32x32,48x48,128x128}.{png,xpm,ico}
340
341 use skins || rm -rf "${D}/usr/share/vlc/skins2"
342
343 for res in 16 32 48; do
344 insinto /usr/share/icons/hicolor/${res}x${res}/apps/
345 newins "${S}"/share/vlc${res}x${res}.png vlc.png
346 done
347
348 use wxwindows || use skins || rm "${D}/usr/share/applications/vlc.desktop"
349 }
350
351
352
353 --
354 gentoo-commits@l.g.o mailing list