diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2003-04-26 01:02:09 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2003-04-26 01:02:09 +0000 |
commit | 89ce5a1d9241118ba11e1993bdc636a9325db3c0 (patch) | |
tree | d2ef76d4840525a0504b91aac82cd51d0e5565c1 /media-video/ati-drivers | |
parent | New version (diff) | |
download | gentoo-2-89ce5a1d9241118ba11e1993bdc636a9325db3c0.tar.gz gentoo-2-89ce5a1d9241118ba11e1993bdc636a9325db3c0.tar.bz2 gentoo-2-89ce5a1d9241118ba11e1993bdc636a9325db3c0.zip |
New version
Diffstat (limited to 'media-video/ati-drivers')
-rw-r--r-- | media-video/ati-drivers/ChangeLog | 12 | ||||
-rw-r--r-- | media-video/ati-drivers/Manifest | 4 | ||||
-rw-r--r-- | media-video/ati-drivers/ati-drivers-2.9.8.ebuild | 153 | ||||
-rw-r--r-- | media-video/ati-drivers/files/digest-ati-drivers-2.9.8 | 0 |
4 files changed, 164 insertions, 5 deletions
diff --git a/media-video/ati-drivers/ChangeLog b/media-video/ati-drivers/ChangeLog index 899fc3fb3993..2df6531d6535 100644 --- a/media-video/ati-drivers/ChangeLog +++ b/media-video/ati-drivers/ChangeLog @@ -1,13 +1,19 @@ # ChangeLog for media-video/ati-drivers # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers/ChangeLog,v 1.6 2003/04/23 01:35:57 lu_zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers/ChangeLog,v 1.7 2003/04/26 00:59:00 lu_zero Exp $ + +*ati-drivers-2.9.8 (26 Apr 2003) + 26 Feb 2003 Luca Barbato <lu_zero@gentoo.org> ati-drivers-2.9.8.ebuild, + ChangeLog : + New update, should had support to the 9800 serie. + 23 Apr 2003 Luca Barbato <lu_zero@gentoo.org> ati-drivers-2.9.6.ebuild, ati-drivers-2.5.1-r1,ChangeLog : Fix some stuff -*ati-drivers-2.9.6 (3 Feb 2003) - 3 Feb 2003 Luca Barbato <lu_zero@gentoo.org> ati-drivers-2.9.6.ebuild, +*ati-drivers-2.9.6 (3 Apr 2003) + 3 Apr 2003 Luca Barbato <lu_zero@gentoo.org> ati-drivers-2.9.6.ebuild, ChangeLog : As requested I update the ebuild, I do not suggest the use of those drivers diff --git a/media-video/ati-drivers/Manifest b/media-video/ati-drivers/Manifest index 2d0104d090a7..a945f16108de 100644 --- a/media-video/ati-drivers/Manifest +++ b/media-video/ati-drivers/Manifest @@ -1,8 +1,8 @@ -MD5 3a302dadff78de8f617aeea6f9342c8f ChangeLog 1452 +MD5 d0515755bca7b2f938824b5e7fc12533 ChangeLog 1631 MD5 3ad88f17e7799066b5366eafedd86d43 ati-drivers-2.5.1-r1.ebuild 3552 MD5 1526fb1161daa618507dc4a2e2cb6699 ati-drivers-2.5.1.ebuild 3230 MD5 2a7891c630babfa3aa53bd1346a0e555 ati-drivers-2.9.6.ebuild 3730 -MD5 2a7891c630babfa3aa53bd1346a0e555 ati-drivers-2.9.8.ebuild 3730 +MD5 f2f3cb8339c4b4918dfced0fdd50c047 ati-drivers-2.9.8.ebuild 3730 MD5 e61309d064f12cc623e4d6e78aa82b36 files/09ati 39 MD5 bbaa57c2af6fb97bc2d8c9e149932f74 files/digest-ati-drivers-2.5.1 78 MD5 bbaa57c2af6fb97bc2d8c9e149932f74 files/digest-ati-drivers-2.5.1-r1 78 diff --git a/media-video/ati-drivers/ati-drivers-2.9.8.ebuild b/media-video/ati-drivers/ati-drivers-2.9.8.ebuild new file mode 100644 index 000000000000..1fcdb20812fb --- /dev/null +++ b/media-video/ati-drivers/ati-drivers-2.9.8.ebuild @@ -0,0 +1,153 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers/ati-drivers-2.9.8.ebuild,v 1.1 2003/04/26 00:59:00 lu_zero Exp $ + +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" +##SRC_URI="http://www.schneider-digital.de/download/ati/glx1_linux_X4.3.zip" +A="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.3.0 + qt? ( >=x11-libs/qt-3.0 )" + +ATIBIN="${D}/opt/ati/bin" +RESTRICT="nostrip" + +src_unpack() { + if [ ! -f ${DISTDIR}/${A} ] ; then + die "Please download ${A} from ${HOMEPAGE} or http://www.schneider-digital.de/html/body_download_ati.html (fetch glx1_linux_X4.3.zip and unpack it)" + fi + cd ${WORKDIR} + #unpack ${A} + #mv "./XFree 4.3.0-2.9.6/fglrx-glc22-4.3.0-${PV}.i586.rpm" . + 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" + check_KV + 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 + sed -e 's:`uname -r`:${KV}:' 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 +} diff --git a/media-video/ati-drivers/files/digest-ati-drivers-2.9.8 b/media-video/ati-drivers/files/digest-ati-drivers-2.9.8 new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/media-video/ati-drivers/files/digest-ati-drivers-2.9.8 |