/[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.23
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.23 2009/07/21 09:29:01 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"
188 echo "--disable-$2" 188 echo "--disable-$2"
189 fi 189 fi
190} 190}
191 191
192pkg_setup() { 192pkg_setup() {
193 if has_version '<=media-video/vlc-0.9.9999'; then 193 if has_version '<=media-video/vlc-1.0.99999'; then
194 eerror "Please unmerge vlc-0.9.x first before installing ${P}" 194 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" 195 eerror "If you don't do that, some plugins will get linked against"
196 eerror "the old ${PN} version and will not work." 196 eerror "the old ${PN} version and will not work."
197 die "Unmerge vlc 0.9.x first" 197 die "Unmerge vlc 1.0.x first"
198 fi 198 fi
199 vlc_use_needs skins truetype 199 vlc_use_needs skins truetype
200 vlc_use_force skins qt4 200 vlc_use_force skins qt4
201 vlc_use_needs cddax cdio 201 vlc_use_needs cddax cdio
202 vlc_use_needs vcdx cdio 202 vlc_use_needs vcdx cdio
219src_unpack() { 219src_unpack() {
220 unpack ${A} 220 unpack ${A}
221 if [ "${PV%9999}" != "${PV}" ] ; then 221 if [ "${PV%9999}" != "${PV}" ] ; then
222 git_src_unpack 222 git_src_unpack
223 fi 223 fi
224 cd "${S}" 224}
225 225
226src_prepare() {
227 if [ "${PV%9999}" != "${PV}" ] ; then
228 git_src_prepare
229 fi
226 # Make it build with libtool 1.5 230 # Make it build with libtool 1.5
227 rm -f m4/lt* m4/libtool.m4 231 rm -f m4/lt* m4/libtool.m4
228 232
229 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches" 233 EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
230 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf 234 AT_M4DIR="m4 ${WORKDIR}/${PN}-m4" eautoreconf
231} 235}
232 236
233src_compile () { 237src_configure() {
234 238
235 # It would fail if -fforce-addr is used due to too few registers... 239 # It would fail if -fforce-addr is used due to too few registers...
236 use x86 && filter-flags -fforce-addr 240 use x86 && filter-flags -fforce-addr
237 241
238 local MOZILLA_PC 242 local MOZILLA_PC
358 --disable-optimizations \ 362 --disable-optimizations \
359 --enable-fast-install \ 363 --enable-fast-install \
360 $(vlc_use_enable_force vlm vlm sout) \ 364 $(vlc_use_enable_force vlm vlm sout) \
361 $(vlc_use_enable_force skins skins2 qt4) \ 365 $(vlc_use_enable_force skins skins2 qt4) \
362 $(vlc_use_enable_force remoteosd remoteosd libgcrypt) 366 $(vlc_use_enable_force remoteosd remoteosd libgcrypt)
363
364 emake || die "make of VLC failed"
365} 367}
366 368
367src_install() { 369src_install() {
368 emake DESTDIR="${D}" install || die "make install failed" 370 emake DESTDIR="${D}" install || die "make install failed"
369 371

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

  ViewVC Help
Powered by ViewVC 1.1.20