Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 412931
Collapse All | Expand All

(-)a/media-libs/mesa/mesa-8.0.2-r1.ebuild (+15 lines)
Lines 169-174 src_prepare() { Link Here
169
	base_src_prepare
169
	base_src_prepare
170
170
171
	eautoreconf
171
	eautoreconf
172
	
173
	# In order for mesa to complete it's build process we need to use a tool
174
	# that it compiles. When we cross compile this clearly does not work
175
	# so we require mesa to be built on the host system first. -solar
176
	if tc-is-cross-compiler; then
177
		sed -e 's/\.\/builtin_compiler/\.\/native_builtin_compiler/' -i src/glsl/Makefile
178
	fi
172
}
179
}
173
180
174
src_configure() {
181
src_configure() {
Lines 255-260 src_configure() { Link Here
255
		--with-dri-drivers=${DRI_DRIVERS} \
262
		--with-dri-drivers=${DRI_DRIVERS} \
256
		--with-gallium-drivers=${GALLIUM_DRIVERS} \
263
		--with-gallium-drivers=${GALLIUM_DRIVERS} \
257
		${myconf}
264
		${myconf}
265
	
266
	if tc-is-cross-compiler; then
267
		emake CC=$(tc-getBUILD_CC) \
268
			CXX=$(tc-getBUILD_CXX) \
269
			-C src/glsl builtin_compiler || die
270
		mv src/glsl/{,native_}builtin_compiler
271
		emake -C src/glsl clean
272
	fi
258
}
273
}
259
274
260
src_install() {
275
src_install() {

Return to bug 412931