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

Collapse All | Expand All

(-)xfree-4.3.0-r5.ebuild-cvs (+26 lines)
Lines 309-314 Link Here
309
	# Fix DRI related problems
309
	# Fix DRI related problems
310
	cd ${S}/programs/Xserver/hw/xfree86/
310
	cd ${S}/programs/Xserver/hw/xfree86/
311
	epatch ${DISTDIR}/xfree86-dri-resume-v8.patch
311
	epatch ${DISTDIR}/xfree86-dri-resume-v8.patch
312
	# And, fix libGL problems for sparc: bug #19776
313
	if use sparc
314
	then
315
		cd ${S}
316
		einfo "Add patch for glx dispatch table"
317
		epatch ${FILESDIR}/sparc-glx-4.3.0.patch || die "Cannot patch glxext.c -- cannot build good libGL"
318
		einfo "Fix for overuse of __sparc_v9__ compiler define on linux"
319
		sed -i-  -e \
320
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
321
		./extras/Mesa/src/glapi.c
322
		sed -i-  -e \
323
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
324
		./extras/Mesa/src/SPARC/clip.S
325
		sed -i-  -e \
326
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
327
		./extras/Mesa/src/SPARC/glapi_sparc.S
328
		sed -i-  -e \
329
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
330
		./extras/Mesa/src/SPARC/norm.S
331
		sed -i-  -e \
332
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
333
		./extras/Mesa/src/SPARC/sparc.c
334
		sed -i-  -e \
335
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
336
		./extras/Mesa/src/SPARC/sparc_matrix.h
337
	fi	
312
338
313
	# Update Wacom Driver, hopefully resolving bug #1632
339
	# Update Wacom Driver, hopefully resolving bug #1632
314
	# The kernel driver should prob also be updated, this can be
340
	# The kernel driver should prob also be updated, this can be
(-)xfree-4.3.0-r6.ebuild-cvs (-29 / +27 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
1
# Copyright 1999-2004 Gentoo Technologies, Inc.
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: /home/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.3.0-r6.ebuild,v 1.25 2004/04/19 19:04:24 spyderous Exp $
3
# $Header: /home/cvsroot/gentoo-x86/x11-base/xfree/xfree-4.3.0-r6.ebuild,v 1.24 2004/04/19 06:14:07 spyderous Exp $
4
4
5
# TODO
5
# TODO
6
# 14 Mar. 2004 <spyderous@gentoo.org>
6
# 14 Mar. 2004 <spyderous@gentoo.org>
Lines 361-366 Link Here
361
	# Fix DRI related problems
361
	# Fix DRI related problems
362
	cd ${S}/programs/Xserver/hw/xfree86/
362
	cd ${S}/programs/Xserver/hw/xfree86/
363
	epatch ${DISTDIR}/xfree86-dri-resume-v8.patch
363
	epatch ${DISTDIR}/xfree86-dri-resume-v8.patch
364
	# And, fix libGL problems for sparc: bug #19776
365
	if use sparc
366
	then
367
		cd ${S}
368
		einfo "Add patch for glx dispatch table"
369
		epatch ${FILESDIR}/sparc-glx-4.3.0.patch || die "Cannot patch glxext.c -- cannot build good libGL"
370
		einfo "Fix for overuse of __sparc_v9__ compiler define on linux"
371
		sed -i-  -e \
372
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
373
		./extras/Mesa/src/glapi.c
374
		sed -i-  -e \
375
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
376
		./extras/Mesa/src/SPARC/clip.S
377
		sed -i-  -e \
378
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
379
		./extras/Mesa/src/SPARC/glapi_sparc.S
380
		sed -i-  -e \
381
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
382
		./extras/Mesa/src/SPARC/norm.S
383
		sed -i-  -e \
384
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
385
		./extras/Mesa/src/SPARC/sparc.c
386
		sed -i-  -e \
387
		's/#ifdef __sparc_v9__/#if (defined(__sparc_v9__) \&\& (!defined(__linux__) || defined(__linux_sparc_64__)))/' \
388
		./extras/Mesa/src/SPARC/sparc_matrix.h
389
	fi	
364
390
365
	ebegin "Setting up config/cf/host.def"
391
	ebegin "Setting up config/cf/host.def"
366
	cd ${S}; cp ${FILES_DIR}/${PV}/site.def config/cf/host.def || die
392
	cd ${S}; cp ${FILES_DIR}/${PV}/site.def config/cf/host.def || die
Lines 462-495 Link Here
462
488
463
	if use x86
489
	if use x86
464
	then
490
	then
465
		# optimize Mesa for architecture
466
		if use mmx
467
		then
468
			echo "#define HasMMXSupport	YES" >> config/cf/host.def
469
			echo "#define MesaUseMMX YES" >> config/cf/host.def
470
		else
471
			echo "#define HasMMXSupport	NO" >> config/cf/host.def
472
			echo "#define MesaUseMMX NO" >> config/cf/host.def
473
		fi
474
475
		if use 3dnow
476
		then
477
			echo "#define Has3DNowSupport YES" >> config/cf/host.def
478
			echo "#define MesaUse3DNow YES" >> config/cf/host.def
479
		else
480
			echo "#define Has3DNowSupport NO" >> config/cf/host.def
481
			echo "#define MesaUse3DNow NO" >> config/cf/host.def
482
		fi
483
484
		if use sse
485
		then
486
			echo "#define HasKatmaiSupport YES" >> config/cf/host.def
487
			echo "#define MesaUseKatmai YES" >> config/cf/host.def
488
		else
489
			echo "#define HasKatmaiSupport NO" >> config/cf/host.def
490
			echo "#define MesaUseKatmai NO" >> config/cf/host.def
491
		fi
492
493
		# build with glide3 support? (build the tdfx_dri.o module)
491
		# build with glide3 support? (build the tdfx_dri.o module)
494
		if use 3dfx
492
		if use 3dfx
495
		then
493
		then

Return to bug 19776