Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 324453 | Differences between
and this patch

Collapse All | Expand All

(-)a/media-video/ffmpeg/ffmpeg-9999-r1.ebuild (-23 / +23 lines)
Lines 95-116 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 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
102
103
	use custom-cflags && myconf="${myconf} --disable-optimizations"
103
	use custom-cflags && myconf="${myconf} --disable-optimizations"
104
	use cpudetection && myconf="${myconf} --enable-runtime-cpudetect"
104
	use cpudetection && myconf="${myconf} --enable-runtime-cpudetect"
105
105
106
	# enabled by default
106
	#for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do
107
	#	use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}"
108
	#	use vdpau || myconf="${myconf} --disable-decoder=${i}"
109
	#done
110
	use video_cards_nvidia && use vdpau || myconf="${myconf} --disable-vdpau"
111
112
	# Encoders
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 128-138 src_configure() { Link Here
128
	for i in v4l v4l2 alsa oss jack ; do
133
	for i in v4l v4l2 alsa oss jack ; do
129
		use ${i} || myconf="${myconf} --disable-indev=${i}"
134
		use ${i} || myconf="${myconf} --disable-indev=${i}"
130
	done
135
	done
136
	use X && myconf="${myconf} --enable-x11grab"
131
	# Outdevs
137
	# Outdevs
132
	for i in alsa oss ; do
138
	for i in alsa oss ; do
133
		use ${i} || myconf="${myconf} --disable-outdev=${i}"
139
		use ${i} || myconf="${myconf} --disable-outdev=${i}"
134
	done
140
	done
135
	use X && myconf="${myconf} --enable-x11grab"
136
141
137
	# Threads; we only support pthread for now but ffmpeg supports more
142
	# Threads; we only support pthread for now but ffmpeg supports more
138
	use threads && myconf="${myconf} --enable-pthreads"
143
	use threads && myconf="${myconf} --enable-pthreads"
Lines 144-160 src_configure() { Link Here
144
	done
149
	done
145
	use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
150
	use jpeg2k && myconf="${myconf} --enable-libopenjpeg"
146
151
147
	#for i in h264_vdpau mpeg1_vdpau mpeg_vdpau vc1_vdpau wmv3_vdpau; do
148
	#	use video_cards_nvidia || myconf="${myconf} --disable-decoder=${i}"
149
	#	use vdpau || myconf="${myconf} --disable-decoder=${i}"
150
	#done
151
	use video_cards_nvidia || myconf="${myconf} --disable-vdpau"
152
	use vdpau || myconf="${myconf} --disable-vdpau"
153
	use vaapi || myconf="${myconf} --disable-vaapi"
154
155
	# CPU features
152
	# CPU features
156
	for i in mmx ssse3 altivec ; do
153
	for i in mmx ssse3 altivec ; do
157
		use ${i} ||  myconf="${myconf} --disable-${i}"
154
		use ${i} || myconf="${myconf} --disable-${i}"
158
	done
155
	done
159
	use mmxext || myconf="${myconf} --disable-mmx2"
156
	use mmxext || myconf="${myconf} --disable-mmx2"
160
	use 3dnow || myconf="${myconf} --disable-amd3dnow"
157
	use 3dnow || myconf="${myconf} --disable-amd3dnow"
Lines 181-189 src_configure() { Link Here
181
	done
178
	done
182
179
183
	# Mandatory configuration
180
	# Mandatory configuration
184
	myconf="${myconf} --enable-gpl --enable-version3 --enable-postproc \
181
	myconf="
185
			--enable-avfilter --enable-avfilter-lavf \
182
		--enable-gpl
186
			--disable-stripping"
183
		--enable-version3
184
		--enable-postproc
185
		--enable-avfilter
186
		--enable-avfilter-lavf
187
		--disable-stripping
188
		${myconf}"
187
189
188
	# cross compile support
190
	# cross compile support
189
	if tc-is-cross-compiler ; then
191
	if tc-is-cross-compiler ; then
Lines 203-209 src_configure() { Link Here
203
205
204
	# Misc stuff
206
	# Misc stuff
205
	use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
207
	use hardcoded-tables && myconf="${myconf} --enable-hardcoded-tables"
206
	use doc || myconf="${myconf} --disable-doc"
207
208
208
	# Specific workarounds for too-few-registers arch...
209
	# Specific workarounds for too-few-registers arch...
209
	if [[ $(tc-arch) == "x86" ]]; then
210
	if [[ $(tc-arch) == "x86" ]]; then
210
- 

Return to bug 324453