/[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.21 Revision 1.24
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.21 2009/07/13 09:10:54 aballier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/vlc/vlc-9999.ebuild,v 1.24 2009/07/21 09:31:48 aballier Exp $
4 4
5EAPI="1" 5EAPI="2"
6 6
7SCM="" 7SCM=""
8if [ "${PV%9999}" != "${PV}" ] ; then 8if [ "${PV%9999}" != "${PV}" ] ; then
9 SCM=git 9 SCM=git
10 EGIT_REPO_URI="git://git.videolan.org/vlc.git" 10 EGIT_REPO_URI="git://git.videolan.org/vlc.git"
55 schroedinger sdl sdl-image seamonkey shine shout skins speex sse stream 55 schroedinger sdl sdl-image seamonkey shine shout skins speex sse stream
56 svg svga taglib theora truetype twolame upnp v4l v4l2 vcdinfo vcdx vlm 56 svg svga taglib theora truetype twolame upnp v4l v4l2 vcdinfo vcdx vlm
57 vorbis win32codecs wma-fixed X x264 xcb xinerama xml xosd xv zvbi" 57 vorbis win32codecs wma-fixed X x264 xcb xinerama xml xosd xv zvbi"
58 58
59RDEPEND=" 59RDEPEND="
60 !!<=media-video/vlc-1.0.99999
60 sys-libs/zlib 61 sys-libs/zlib
61 >=media-libs/libdvbpsi-0.1.6 62 >=media-libs/libdvbpsi-0.1.6
62 a52? ( >=media-libs/a52dec-0.7.4-r3 ) 63 a52? ( >=media-libs/a52dec-0.7.4-r3 )
63 aalib? ( media-libs/aalib ) 64 aalib? ( media-libs/aalib )
64 aac? ( >=media-libs/faad2-2.6.1 ) 65 aac? ( >=media-libs/faad2-2.6.1 )
188 echo "--disable-$2" 189 echo "--disable-$2"
189 fi 190 fi
190} 191}
191 192
192pkg_setup() { 193pkg_setup() {
193 if has_version '<=media-video/vlc-0.9.9999'; then 194 if has_version '<=media-video/vlc-1.0.99999'; then
194 eerror "Please unmerge vlc-0.9.x first before installing ${P}" 195 eerror "Please unmerge vlc-1.0.x first before installing ${P}"
195 eerror "If you don't do that, some plugins will get linked against" 196 eerror "If you don't do that, some plugins will get linked against"
196 eerror "the old ${PN} version and will not work." 197 eerror "the old ${PN} version and will not work."
197 die "Unmerge vlc 0.9.x first" 198 die "Unmerge vlc 1.0.x first"
198 fi 199 fi
199 vlc_use_needs skins truetype 200 vlc_use_needs skins truetype
200 vlc_use_force skins qt4 201 vlc_use_force skins qt4
201 vlc_use_needs cddax cdio 202 vlc_use_needs cddax cdio
202 vlc_use_needs vcdx cdio 203 vlc_use_needs vcdx cdio
219src_unpack() { 220src_unpack() {
220 unpack ${A} 221 unpack ${A}
221 if [ "${PV%9999}" != "${PV}" ] ; then 222 if [ "${PV%9999}" != "${PV}" ] ; then
222 git_src_unpack 223 git_src_unpack
223 fi 224 fi
224 cd "${S}" 225}
225 226
227src_prepare() {
228 if [ "${PV%9999}" != "${PV}" ] ; then
229 git_src_prepare
230 fi
226 # Make it build with libtool 1.5 231 # Make it build with libtool 1.5
227 rm -f m4/lt* m4/libtool.m4 232 rm -f m4/lt* m4/libtool.m4
228 233
229 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" 234 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
230 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf 235 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf
231} 236}
232 237
233src_compile () { 238src_configure() {
234 239
235 # It would fail if -fforce-addr is used due to too few registers... 240 # It would fail if -fforce-addr is used due to too few registers...
236 use x86 && filter-flags -fforce-addr 241 use x86 && filter-flags -fforce-addr
237 242
238 local MOZILLA_PC 243 local MOZILLA_PC
358 --disable-optimizations \ 363 --disable-optimizations \
359 --enable-fast-install \ 364 --enable-fast-install \
360 $(vlc_use_enable_force vlm vlm sout) \ 365 $(vlc_use_enable_force vlm vlm sout) \
361 $(vlc_use_enable_force skins skins2 qt4) \ 366 $(vlc_use_enable_force skins skins2 qt4) \
362 $(vlc_use_enable_force remoteosd remoteosd libgcrypt) 367 $(vlc_use_enable_force remoteosd remoteosd libgcrypt)
363
364 emake || die "make of VLC failed"
365} 368}
366 369
367src_install() { 370src_install() {
368 emake DESTDIR="${D}" install || die "make install failed" 371 emake DESTDIR="${D}" install || die "make install failed"
369 372

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.24

  ViewVC Help
Powered by ViewVC 1.1.20