# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg/ffmpeg-0.10.10.ebuild,v 1.2 2013/12/10 12:28:38 polynomial-c Exp $ EAPI="5" SCM="" if [ "${PV#9999}" != "${PV}" ] ; then SCM="git-2" EGIT_REPO_URI="git://git.videolan.org/ffmpeg.git" fi inherit eutils flag-o-matic multilib toolchain-funcs ${SCM} multilib-minimal DESCRIPTION="Complete solution to record, convert and stream audio and video. Includes libavcodec." HOMEPAGE="http://ffmpeg.org/" if [ "${PV#9999}" != "${PV}" ] ; then SRC_URI="" elif [ "${PV%_p*}" != "${PV}" ] ; then # Snapshot SRC_URI="mirror://gentoo/${P}.tar.bz2" else # Release SRC_URI="http://ffmpeg.org/releases/${P/_/-}.tar.bz2" fi FFMPEG_REVISION="${PV#*_p}" LICENSE="GPL-2 amr? ( GPL-3 ) encode? ( aac? ( GPL-3 ) )" SLOT="0.10" if [ "${PV#9999}" = "${PV}" ] ; then KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux" fi IUSE=" aac aacplus alsa amr bindist +bzip2 cdio celt cpudetection debug dirac doc +encode faac frei0r gnutls gsm +hardcoded-tables ieee1394 jack jpeg2k libass libv4l modplug mp3 +network openal openssl oss pic pulseaudio rtmp schroedinger sdl speex static-libs test theora threads truetype v4l vaapi vdpau vorbis vpx X x264 xvid +zlib " # String for CPU features in the useflag[:configure_option] form # if :configure_option isn't set, it will use 'useflag' as configure option CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext:mmx2 ssse3 vis neon" for i in ${CPU_FEATURES}; do IUSE="${IUSE} ${i%:*}" done DOCS="" RDEPEND=" alsa? ( media-libs/alsa-lib[${MULTILIB_USEDEP}] ) amr? ( media-libs/opencore-amr[${MULTILIB_USEDEP}] ) bzip2? ( app-arch/bzip2[${MULTILIB_USEDEP}] ) cdio? ( dev-libs/libcdio-paranoia[${MULTILIB_USEDEP}] ) celt? ( >=media-libs/celt-0.11.1[${MULTILIB_USEDEP}] ) dirac? ( media-video/dirac[${MULTILIB_USEDEP}] ) encode? ( aac? ( media-libs/vo-aacenc[${MULTILIB_USEDEP}] ) aacplus? ( media-libs/libaacplus[${MULTILIB_USEDEP}] ) amr? ( media-libs/vo-amrwbenc[${MULTILIB_USEDEP}] ) faac? ( media-libs/faac[${MULTILIB_USEDEP}] ) mp3? ( >=media-sound/lame-3.98.3[${MULTILIB_USEDEP}] ) theora? ( >=media-libs/libtheora-1.1.1[encode,${MULTILIB_USEDEP}] media-libs/libogg[${MULTILIB_USEDEP}] ) vorbis? ( media-libs/libvorbis[${MULTILIB_USEDEP}] media-libs/libogg[${MULTILIB_USEDEP}] ) x264? ( >=media-libs/x264-0.0.20111017:=[${MULTILIB_USEDEP}] ) xvid? ( >=media-libs/xvid-1.1.0[${MULTILIB_USEDEP}] ) ) frei0r? ( media-plugins/frei0r-plugins[${MULTILIB_USEDEP}] ) gnutls? ( >=net-libs/gnutls-2.12.16[${MULTILIB_USEDEP}] ) gsm? ( >=media-sound/gsm-1.0.12-r1[${MULTILIB_USEDEP}] ) ieee1394? ( media-libs/libdc1394[${MULTILIB_USEDEP}] sys-libs/libraw1394[${MULTILIB_USEDEP}] ) jack? ( media-sound/jack-audio-connection-kit[${MULTILIB_USEDEP}] ) jpeg2k? ( >=media-libs/openjpeg-1.3-r2:0[${MULTILIB_USEDEP}] ) libass? ( media-libs/libass[${MULTILIB_USEDEP}] ) libv4l? ( media-libs/libv4l[${MULTILIB_USEDEP}] ) modplug? ( media-libs/libmodplug[${MULTILIB_USEDEP}] ) openal? ( >=media-libs/openal-1.1[${MULTILIB_USEDEP}] ) openssl? ( dev-libs/openssl[${MULTILIB_USEDEP}] ) pulseaudio? ( media-sound/pulseaudio[${MULTILIB_USEDEP}] ) rtmp? ( >=media-video/rtmpdump-2.2f[${MULTILIB_USEDEP}] ) schroedinger? ( media-libs/schroedinger[${MULTILIB_USEDEP}] ) sdl? ( >=media-libs/libsdl-1.2.13-r1[audio,video,${MULTILIB_USEDEP}] ) speex? ( >=media-libs/speex-1.2_beta3[${MULTILIB_USEDEP}] ) truetype? ( media-libs/freetype:2[${MULTILIB_USEDEP}] ) vaapi? ( >=x11-libs/libva-0.32[${MULTILIB_USEDEP}] ) vdpau? ( x11-libs/libvdpau[${MULTILIB_USEDEP}] ) vpx? ( >=media-libs/libvpx-0.9.6[${MULTILIB_USEDEP}] ) X? ( x11-libs/libX11[${MULTILIB_USEDEP}] x11-libs/libXext[${MULTILIB_USEDEP}] x11-libs/libXfixes[${MULTILIB_USEDEP}] ) zlib? ( sys-libs/zlib[${MULTILIB_USEDEP}] ) !