Code: Select all
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header:
IUSE="qt kde gnome"
DESCRIPTION="Ati precompiled drivers for r300, r250 and r200 chipsets"
HOMEPAGE="http://www.ati.com"
SRC_URI="http://pdownload.mii.instacontent.net/ati/drivers/fglrx-glc22-4.3.0-${PV}.i586.rpm"
SLOT="${KV}"
LICENSE="ATI GPL-2 QPL-1.0"
KEYWORDS="-* ~x86"
DEPEND=">=virtual/linux-sources-2.4
>=sys-libs/glibc-2.2.2
app-arch/rpm2targz
>=x11-base/xfree-4.2.99
qt? ( >=x11-libs/qt-3.0 )"
ATIBIN="${D}/opt/ati/bin"
RESTRICT="nostrip"
src_unpack() {
cd ${WORKDIR}
rpm2targz ${DISTDIR}/${A}
tar zxf fglrx-glc22-4.3.0-${PV}.i586.tar.gz
}
pkg_setup(){
opengl-update xfree
}
src_compile() {
einfo "building the glx module"
cd ${WORKDIR}/lib/modules/fglrx/build_mod
#that is the dirty way to avoid the id -u check
sed -e 's:`id -u`:0:' make.sh >make.sh.new
mv make.sh.new make.sh
chmod +x make.sh
./make.sh || ewarn "glx module not built"
einfo "building the fgl_glxgears sample"
mkdir ${WORKDIR}/fglrxgears
cd ${WORKDIR}/fglrxgears
tar -xzvf ${WORKDIR}/usr/src/fglrx_sample_source.tgz
mv xc/programs/fgl_glxgears/* .
make -f Makefile.Linux || die
if [ "`use qt`" ]
then
einfo "building the qt fglx panel"
cd ${WORKDIR}
local OLDBIN="/usr/X11R6/bin"
local ATIBIN="${D}/opt/ati/bin"
mkdir fglrx_panel
cd fglrx_panel
tar -xzvf ${WORKDIR}/usr/src/fglrx_panel_sources.tgz
sed -e "s:"${OLDBIN}":"${ATIBIN}":"\
Makefile >Makefile.new
mv Makefile.new Makefile
emake || die
fi
#removing stuff
einfo "cleaning"
cd ${WORKDIR}
rm -fR usr/share
cd usr/X11R6/
rm -fR bin/firegl*.bz2 bin/LICENSE.* bin/fgl_glxgears src
}
pkg_preinst() {
# clean the dinamic libGL stuff's home to ensure
# we dont have stale libs floating around
if [ -d ${ROOT}/usr/lib/opengl/ati ]
then
rm -rf ${ROOT}/usr/lib/opengl/ati/*
fi
}
src_install() {
local ATI_ROOT="/usr/lib/opengl/ati"
cd ${WORKDIR}
#drm module
insinto /lib/modules/${KV}/video
doins lib/modules/fglrx/build_mod/fglrx.o
#dri driver
exeinto ${ATI_ROOT}/lib
doexe usr/X11R6/lib/libGL.so.1.2
dosym libGL.so.1.2 ${ATI_ROOT}/lib/libGL.so.1
dosym libGL.so.1.2 ${ATI_ROOT}/lib/libGL.so
dosym libGL.so.1.2 ${ATI_ROOT}/lib/libMesaGL.so
#that is the same as in the xfree
dosym ../../xfree/lib/libGL.la ${ATI_ROOT}/lib/libGL.la
#same as in xfree
exeinto ${ATI_ROOT}/
dosym ../xfree/include ${ATI_ROOT}/include
dosym ../xfree/extensions ${ATI_ROOT}/extensions
rm usr/X11R6/lib/libGL.so.1.2
#apps
insinto /etc/env.d
doins ${FILESDIR}/09ati
exeinto /opt/ati/bin
doexe fglrxgears/fgl_glxgears
doexe usr/X11R6/bin/*
rm usr/X11R6/bin/*
if [ "`use qt`" ]
then
doexe fglrx_panel/fireglcontrol
fi
#if ["`use kde`"] then
#if ["`use gnome`"]
cp -R usr ${D}
}
pkg_postinst() {
#switch to the ati implementation
if [ "${ROOT}" = "/" ]
then
/usr/sbin/opengl-update ati
fi
einfo
einfo "To use the xfree GLX, run \"opengl-update xfree\""
einfo
einfo
einfo "To chance your XF86Config you can use the bundled \"fglrxconfig\""
einfo
#drm-module
update-modules
}
pkg_postrm() {
opengl-update xfree
}Code: Select all
ebuild ati-drivers-2.9.6.ebuild digest
ACCEPT_KEYWORDS="~x86" emerge ati-driversCode: Select all
probing for VMA API version...
cleaning...
patching 'highmem.h'...
patching 'drmP.h'...
patching file drmP.h
Hunk #1 succeeded at 283 (offset 28 lines).
compiling 'agpgart_be.c'...
compiling 'agp3.c'...
compiling 'i7505-agp.c'...
compiling 'firegl_public.c'...
linking of fglrx kernel module...
duplication skipped - generator was not called from regular lib tree
done.
==============================
* building the fgl_glxgears sample
xc/programs/fgl_glxgears/README
xc/programs/fgl_glxgears/fgl_glxgears.c
xc/programs/fgl_glxgears/fgl_glxgears.man
xc/programs/fgl_glxgears/Imakefile
xc/programs/fgl_glxgears/Makefile.Linux
xc/programs/fglrx/fglrx_gamma/README
xc/programs/fglrx/fglrx_gamma/fglrx_xgamma.c
xc/programs/fglrx/fglrx_gamma/fglrx_xgamma.man
xc/programs/fglrx/fglrx_gamma/Imakefile
xc/programs/fglrx/fglrx_gamma/Makefile.Linux
xc/lib/fglrx_gamma/README
xc/lib/fglrx_gamma/fglrx_gamma.c
xc/lib/fglrx_gamma/fglrx_gamma.h
xc/lib/fglrx_gamma/Imakefile
gcc -o fgl_glxgears -Wall -g -I/usr/X11R6/include -L/usr/X11R6/lib -lGL -lGLU -lX11 -lm fgl_glxgears.c
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.2/../../../libGL.so: file not recognized: Is a directory
collect2: ld returned 1 exit status
make: *** [fgl_glxgears] Error 1
!!! ERROR: media-video/ati-drivers-2.9.6 failed.
!!! Function src_compile, Line 53, Exitcode 2
!!! (no error message)
Code: Select all
root@gentoo ati-drivers # ebuild /usr/local/portage/media-video/ati-drivers/ati-drivers-2.9.6.ebuild digest
doebuild(): aux_get() error; aborting.
Have you updated your /etc/X11/XF86Config?minaural wrote:or maybe it just something i need to reconfigure ??
Code: Select all
**********************************************************************
# Graphics device section
# **********************************************************************
# Any number of graphics device sections may be present
# Standard VGA Device:
Section "Device"
Identifier "Vesa"
VendorName "Unknown"
BoardName "Unknown"
Driver "vesa"
# BusID "PCI:0:10:0"
# VideoRam 256
# Clocks 25.2 28.3
EndSection
# === ATI device section ===
Section "Device"
Identifier "ATI Graphics Adapter"
Driver "fglrx"
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# === FireGL DDX driver module specific settings ===
# === Screen Management ===
Option "DesktopSetup" "0x00000000"
Option "MonitorLayout" "AUTO, AUTO"
Option "IgnoreEDID" "off"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "ScreenOverlap" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
# === Misc Options ===
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
BusID "PCI:1:0:0" # vendor=1002, device=514c
Screen 0
EndSection
Section "Device"
Identifier "ATI"
Driver "ati"
EndSection
# **********************************************************************
# Screen sections
# **********************************************************************
# Any number of screen sections may be present. Each describes
# the configuration of a single screen. A single specific screen section
# may be specified from the X server command line with the "-screen"
# option.
Section "Screen"
Identifier "Screen0"
# Device "Vesa"
Device "ATI Graphics Adapter"
# Device "ATI"
Monitor "Monitor0"
DefaultDepth 24
#Option "backingstore"
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0 # initial origin if mode is smaller than desktop
# Virtual 1280 1024
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0 # initial origin if mode is smaller than desktop
# Virtual 1280 1024
EndSubsection
EndSectionCode: Select all
Section "Module"
Load "dbe" # Double buffer extension
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "type1"
Load "speedo"
# This loads the GLX module
Load "glx"
# This loads the DRI module
Load "dri"
EndSection
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
FontPath "/usr/X11R6/lib/X11/fonts/local/"
FontPath "/usr/X11R6/lib/X11/fonts/misc/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/X11R6/lib/X11/fonts/Speedo/"
FontPath "/usr/X11R6/lib/X11/fonts/Type1/"
FontPath "/usr/X11R6/lib/X11/fonts/75dpi/"
FontPath "/usr/X11R6/lib/X11/fonts/100dpi/"
EndSection
Section "InputDevice"
Identifier "Keyboard1"
Driver "Keyboard"
Option "XkbRules" "xfree86"
Option "XkbModel" "pc101"
Option "XkbLayout" "se"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto"
Option "Device" "/dev/mouse"
EndSection
Section "Monitor"
Identifier "VG150"
HorizSync 30-62
VertRefresh 50-75
EndSection
Section "Device"
Identifier "Standard VGA"
VendorName "Unknown"
BoardName "Unknown"
Driver "vga"
EndSection
Section "Device"
Identifier "ATI GA"
Driver "fglrx"
Option "no_dri" "no"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
EndSection
Section "Device"
Identifier "RADEON"
Driver "ati"
Option "no_dri" "no"
Option "VideoOverlay" "on"
Option "OpenGLOverlay" "off"
EndSection
Section "Screen"
Identifier "Screen 1"
Device "RADEON"
Monitor "VG150"
DefaultDepth 16
Subsection "Display"
Depth 16
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
Subsection "Display"
Depth 24
Modes "1024x768" "800x600" "640x480"
ViewPort 0 0
EndSubsection
EndSection
Section "ServerLayout"
Screen "Screen 1"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
Code: Select all
Xlib: extension "XFree86-DRI" missing on display ":0.0".
Code: Select all
DefaultDepth 24I don't knowsphex wrote:i did this, but it is still the same problem :/ exact the same message like to one cappy posted...
i deleted the ati-driver-2.9.6.ebuild and the file in /files... do i have to do more than this?
