/[gentoo-x86]/media-video/libav/libav-10.9999.ebuild
Gentoo

Diff of /media-video/libav/libav-10.9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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/libav/libav-10.9999.ebuild,v 1.2 2014/05/15 17:12:08 ulm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/media-video/libav/libav-10.9999.ebuild,v 1.3 2014/06/04 13:34:15 lu_zero Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7if [[ ${PV} == *9999 ]] ; then 7if [[ ${PV} == *9999 ]] ; then
8 SCM="git-2" 8 SCM="git-2"
31~x64-solaris ~x86-solaris" 31~x64-solaris ~x86-solaris"
32IUSE="aac alsa amr bindist +bzip2 cdio cpudetection custom-cflags debug doc 32IUSE="aac alsa amr bindist +bzip2 cdio cpudetection custom-cflags debug doc
33 +encode faac fdk frei0r +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k mp3 33 +encode faac fdk frei0r +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k mp3
34 +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl 34 +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl
35 static-libs test theora threads tools truetype v4l vaapi vdpau vorbis vpx X 35 static-libs test theora threads tools truetype v4l vaapi vdpau vorbis vpx X
36 x264 xvid +zlib" 36 wavpack webp x264 xvid +zlib"
37 37
38# String for CPU features in the useflag[:configure_option] form 38# String for CPU features in the useflag[:configure_option] form
39# if :configure_option isn't set, it will use 'useflag' as configure option 39# if :configure_option isn't set, it will use 'useflag' as configure option
40CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext neon ssse3 vis" 40CPU_FEATURES="3dnow:amd3dnow 3dnowext:amd3dnowext altivec avx mmx mmxext neon ssse3 vis avx2"
41for i in ${CPU_FEATURES} ; do 41for i in ${CPU_FEATURES} ; do
42 IUSE+=" ${i%:*}" 42 IUSE+=" ${i%:*}"
43done 43done
44 44
45TOOLS="aviocat graph2dot ismindex pktdumper qt-faststart trasher" 45TOOLS="aviocat graph2dot ismindex pktdumper qt-faststart trasher"
64 theora? ( 64 theora? (
65 >=media-libs/libtheora-1.1.1[encode] 65 >=media-libs/libtheora-1.1.1[encode]
66 media-libs/libogg 66 media-libs/libogg
67 ) 67 )
68 vorbis? ( media-libs/libvorbis media-libs/libogg ) 68 vorbis? ( media-libs/libvorbis media-libs/libogg )
69 webp? ( media-libs/libwebp )
70 wavpack? ( media-sound/wavpack )
69 x264? ( >=media-libs/x264-0.0.20111017:= ) 71 x264? ( >=media-libs/x264-0.0.20111017:= )
70 xvid? ( >=media-libs/xvid-1.1.0 ) 72 xvid? ( >=media-libs/xvid-1.1.0 )
71 ) 73 )
72 frei0r? ( media-plugins/frei0r-plugins ) 74 frei0r? ( media-plugins/frei0r-plugins )
73 gsm? ( >=media-sound/gsm-1.0.12-r1 ) 75 gsm? ( >=media-sound/gsm-1.0.12-r1 )
121 rtmp? ( network ) 123 rtmp? ( network )
122 amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl ) 124 amr? ( gpl ) aac? ( gpl ) x264? ( gpl ) X? ( gpl ) cdio? ( gpl )
123 test? ( encode zlib ) 125 test? ( encode zlib )
124" 126"
125 127
128# Test on live ebuild are not possible as they require trunk fate
129RESTRICT="test"
130
126src_prepare() { 131src_prepare() {
127 # if we have snapshot then we need to hardcode the version 132 # if we have snapshot then we need to hardcode the version
128 if [[ ${PV%_p*} != ${PV} ]]; then 133 if [[ ${PV%_p*} != ${PV} ]]; then
129 sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die 134 sed -i -e "s/UNKNOWN/DATE-${PV#*_pre}/" "${S}/version.sh" || die
130 fi 135 fi
167 use faac && myconf+=" --enable-nonfree" 172 use faac && myconf+=" --enable-nonfree"
168 use fdk && myconf+=" --enable-nonfree --enable-libfdk-aac" 173 use fdk && myconf+=" --enable-nonfree --enable-libfdk-aac"
169 use mp3 && myconf+=" --enable-libmp3lame" 174 use mp3 && myconf+=" --enable-libmp3lame"
170 use amr && myconf+=" --enable-libvo-amrwbenc" 175 use amr && myconf+=" --enable-libvo-amrwbenc"
171 use aac && myconf+=" --enable-libvo-aacenc" 176 use aac && myconf+=" --enable-libvo-aacenc"
172 uses="faac theora vorbis x264 xvid" 177 uses="faac theora vorbis wavpack webp x264 xvid"
173 for i in ${uses}; do 178 for i in ${uses}; do
174 use ${i} && myconf+=" --enable-lib${i}" 179 use ${i} && myconf+=" --enable-lib${i}"
175 done 180 done
176 else 181 else
177 myconf+=" --disable-encoders" 182 myconf+=" --disable-encoders"

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20