Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 381

Summary: glide patch to X4.2.0
Product: Gentoo Linux Reporter: Travis Tilley <lordviram>
Component: New packagesAssignee: Martin Schlemmer (RETIRED) <azarah>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: glx and dri support patch for xfree86 4.2.0

Description Travis Tilley 2002-01-28 04:16:47 UTC
this patch makes the xfree86 4.2.0 ebuild check for glide in USE, and if found
compile X with glide support, which adds glx and dri extensions for voodoo
cards. note that you must either have voodoo3 or voodoo4 in USE in order for my
glide ebuild to build.

the patch is as follows:

--- ./xfree-4.2.0-r5.ebuild     Sun Jan 27 04:19:53 2002
+++ ./xfree-4.2.0-r6.ebuild     Sun Jan 27 18:55:28 2002
@@ -22,6 +22,7 @@
 DEPEND=">=sys-libs/ncurses-5.1
         >=sys-libs/zlib-1.1.3-r2
         sys-devel/flex
+       glide? ( media-libs/glide )
         sys-devel/perl"
        
 RDEPEND=">=sys-libs/ncurses-5.1"
@@ -39,6 +40,10 @@
        echo "#define DefaultGcc2i386Opt ${CFLAGS}" >>  config/cf/host.def
        echo "#define GccWarningOptions -Wno" >>  config/cf/host.def
        echo "#define DefaultCCOptions -ansi" >>  config/cf/host.def
+       if [ "`use glide`" ]; then
+               echo "#define HasGlide3 YES" >> config/cf/host.def
+               echo "#define Glide3IncDir /usr/include/glide3" >>
config/cf/host.def
+       fi
 
        # fix build problem (XFree86 server among others, was not
        #                    linked against libXau)
Comment 1 Travis Tilley 2002-01-28 04:17:47 UTC
Created attachment 93 [details, diff]
glx and dri support patch for xfree86 4.2.0
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-02-11 10:03:55 UTC
implemented in 4.2.0-r6