From d29e534057bc9891ef6ebc64b946abe6dc7edc87 Mon Sep 17 00:00:00 2001 From: Nikoli Date: Thu, 17 Jun 2010 20:37:40 +0400 Subject: [PATCH 11/14] ffmpeg: add +tools USE flag - ability to build libs only Most packages (except scripts) need only libs, so installing only shared libraries is useful feature. 'tools' is not global USE and should not be in make.conf, by default ffmpeg will continue installing all binaries, this patch should not break anything. --- media-video/ffmpeg/ffmpeg-9999-r1.ebuild | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/media-video/ffmpeg/ffmpeg-9999-r1.ebuild b/media-video/ffmpeg/ffmpeg-9999-r1.ebuild index 54ff259..67d6d38 100644 --- a/media-video/ffmpeg/ffmpeg-9999-r1.ebuild +++ b/media-video/ffmpeg/ffmpeg-9999-r1.ebuild @@ -33,7 +33,7 @@ fi IUSE="+3dnow +3dnowext alsa altivec amr bindist +bzip2 cpudetection custom-cflags debug dirac doc +encode faac faad gsm +hardcoded-tables ieee1394 jack jpeg2k +mmx +mmxext mp3 network oss pic rtmp schroedinger sdl speex +ssse3 static-libs test theora -threads v4l v4l2 vaapi vdpau vorbis vpx X x264 xvid +zlib" +threads +tools v4l v4l2 vaapi vdpau vorbis vpx X x264 xvid +zlib" VIDEO_CARDS="nvidia" @@ -75,7 +75,7 @@ RDEPEND=" X? ( x11-libs/libX11 x11-libs/libXext - sdl? ( >=media-libs/libsdl-1.2.10[audio,alsa?,oss?,video,X] ) + tools? ( sdl? ( >=media-libs/libsdl-1.2.10[audio,alsa?,oss?,video,X] ) ) vaapi? ( x11-libs/libva[video_cards_nvidia?] ) video_cards_nvidia? ( vdpau? ( x11-libs/libvdpau ) @@ -116,6 +116,12 @@ src_configure() { use bzip2 || myconf="${myconf} --disable-bzlib" use sdl || myconf="${myconf} --disable-ffplay" use static-libs || myconf="${myconf} --disable-static" + use tools || myconf+=" + --disable-ffmpeg + --disable-ffplay + --disable-ffprobe + --disable-ffserver + " #for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do # use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}" @@ -256,10 +262,11 @@ src_compile() { } src_install() { - emake DESTDIR="${D}" install install-man || die "Install Failed" + use tools && Tman+="install-man" || Tman="" + emake DESTDIR="${D}" install ${Tman} || die "emake install failed" # until fixed upstream - if use !encode || use !x264 ; then + if use tools && { use !encode || use !x264; } ; then rm -f "${D}"/usr/share/ffmpeg/libx264*.ffpreset rmdir "${D}"/usr/share/ffmpeg fi -- 1.7.1