Lines 95-104
src_configure() {
Link Here
|
95 |
local myconf="${EXTRA_FFMPEG_CONF}" |
95 |
local myconf="${EXTRA_FFMPEG_CONF}" |
96 |
|
96 |
|
97 |
# enabled by default |
97 |
# enabled by default |
98 |
use debug || myconf="${myconf} --disable-debug" |
98 |
for i in debug doc network vaapi vdpau zlib; do |
99 |
use zlib || myconf="${myconf} --disable-zlib" |
99 |
use ${i} || myconf="${myconf} --disable-${i}" |
|
|
100 |
done |
100 |
use sdl || myconf="${myconf} --disable-ffplay" |
101 |
use sdl || myconf="${myconf} --disable-ffplay" |
101 |
use network || myconf="${myconf} --disable-network" |
102 |
|
|
|
103 |
#for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do |
104 |
# use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}" |
105 |
# use vdpau || myconf="${myconf} --disable-decoder=${i}" |
106 |
#done |
107 |
use video_cards_nvidia || myconf="${myconf} --disable-vdpau" |
102 |
|
108 |
|
103 |
use custom-cflags && myconf="${myconf} --disable-optimizations" |
109 |
use custom-cflags && myconf="${myconf} --disable-optimizations" |
104 |
use cpudetection && myconf="${myconf} --enable-runtime-cpudetect" |
110 |
use cpudetection && myconf="${myconf} --enable-runtime-cpudetect" |
Lines 107-116
src_configure() {
Link Here
|
107 |
if use encode |
113 |
if use encode |
108 |
then |
114 |
then |
109 |
use mp3 && myconf="${myconf} --enable-libmp3lame" |
115 |
use mp3 && myconf="${myconf} --enable-libmp3lame" |
110 |
use vorbis && myconf="${myconf} --enable-libvorbis" |
116 |
for i in theora vorbis x264 xvid; do |
111 |
use theora && myconf="${myconf} --enable-libtheora" |
117 |
use ${i} && myconf="${myconf} --enable-lib${i}" |
112 |
use x264 && myconf="${myconf} --enable-libx264" |
118 |
done |
113 |
use xvid && myconf="${myconf} --enable-libxvid" |
|
|
114 |
if use bindist |
119 |
if use bindist |
115 |
then |
120 |
then |
116 |
use faac && ewarn "faac is nonfree and cannot be distributed; |
121 |
use faac && ewarn "faac is nonfree and cannot be distributed; |
Lines 145-161
src_configure() {
Link Here
|
145 |
done |
150 |
done |
146 |
use jpeg2k && myconf="${myconf} --enable-libopenjpeg" |
151 |
use jpeg2k && myconf="${myconf} --enable-libopenjpeg" |
147 |
|
152 |
|
148 |
#for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do |
|
|
149 |
# use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}" |
150 |
# use vdpau || myconf="${myconf} --disable-decoder=${i}" |
151 |
#done |
152 |
use video_cards_nvidia || myconf="${myconf} --disable-vdpau" |
153 |
use vdpau || myconf="${myconf} --disable-vdpau" |
154 |
use vaapi || myconf="${myconf} --disable-vaapi" |
155 |
|
156 |
# CPU features |
153 |
# CPU features |
157 |
for i in mmx ssse3 altivec ; do |
154 |
for i in mmx ssse3 altivec ; do |
158 |
use ${i} || myconf="${myconf} --disable-${i}" |
155 |
use ${i} || myconf="${myconf} --disable-${i}" |
159 |
done |
156 |
done |
160 |
use mmxext || myconf="${myconf} --disable-mmx2" |
157 |
use mmxext || myconf="${myconf} --disable-mmx2" |
161 |
use 3dnow || myconf="${myconf} --disable-amd3dnow" |
158 |
use 3dnow || myconf="${myconf} --disable-amd3dnow" |
Lines 209-215
src_configure() {
Link Here
|
209 |
|
206 |
|
210 |
# Misc stuff |
207 |
# Misc stuff |
211 |
use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables" |
208 |
use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables" |
212 |
use doc || myconf="${myconf} --disable-doc" |
|
|
213 |
|
209 |
|
214 |
# Specific workarounds for too-few-registers arch... |
210 |
# Specific workarounds for too-few-registers arch... |
215 |
if [[ $(tc-arch) == "x86" ]]; then |
211 |
if [[ $(tc-arch) == "x86" ]]; then |
216 |
- |
|
|