ffmpeg-0.4.6.20030304.ebuildJ55mBIN# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.4.6-r1.ebuild,v 1.5 2003/03/10 22:37:16 wwoods Exp $ DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec." #SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" SRC_URI="http://www.videolan.org/pub/vlc/0.5.3/contrib/ffmpeg-20030304.tar.gz" HOMEPAGE="http://ffmpeg.sourceforge.net/" IUSE="mmx encode oggvorbis doc" inherit flag-o-matic filter-flags "-fforce-addr -fPIC" # fixes bug #16281 use alpha && append-flags "-fPIC" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~alpha" DEPEND="encode? ( >=media-sound/lame-3.92 ) oggvorbis? ( >=media-libs/libvorbis-1.0-r1 ) doc? ( >=app-text/texi2html-1.64 )" #release version #S=${WORKDIR}/${P} #cvs version S=${WORKDIR}/${PN}-cvs-2003-03-04 src_unpack() { unpack ${A} || die cd ${S} # ffmpeg doesn't use autoconf (etc.), so... patch -p0 < ${FILESDIR}/${P}-Makefiles.diff || die \ "Patch #1 failed." } src_compile() { local myconf use mmx || myconf="--disable-mmx" use encode && myconf="${myconf} --enable-mp3lame" use oggvorbis && myconf="${myconf} --enable-vorbis" # this is a cvs version, so no dynamic linkingA # add --enable-shared to configure for releases ./configure ${myconf} \ --prefix=/usr || die "./configure failed." make || die "make failed." use doc && make -C doc all } src_install() { # cd ${WORKDIR}/${PN}-cvs-2003-03-04 einstall || die "Installation failed." dosym /usr/bin/ffmpeg /usr/bin/ffplay # no dynamic linking with cvs releases # dosym /usr/lib/libavcodec-${PV}.so /usr/lib/libavcodec.so dodoc COPYING CREDITS Changelog INSTALL README docinto doc dodoc doc/TODO doc/*.html doc/*.texi insinto /etc doins doc/ffserver.conf }