summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2003-04-06 02:26:25 +0000
committerLuca Barbato <lu_zero@gentoo.org>2003-04-06 02:26:25 +0000
commit9d29309e281dfaaa4b5c9833e30e4d602fa4a2d8 (patch)
treeacf0f3606652ee5328fee251ee409fd8c9838d8e /media-video/ati-drivers
parentfixed antlr-2.7.2 (diff)
downloadhistorical-9d29309e281dfaaa4b5c9833e30e4d602fa4a2d8.tar.gz
historical-9d29309e281dfaaa4b5c9833e30e4d602fa4a2d8.tar.bz2
historical-9d29309e281dfaaa4b5c9833e30e4d602fa4a2d8.zip
New drivers
Diffstat (limited to 'media-video/ati-drivers')
-rw-r--r--media-video/ati-drivers/ChangeLog8
-rw-r--r--media-video/ati-drivers/ati-drivers-2.9.6.ebuild157
-rw-r--r--media-video/ati-drivers/files/digest-ati-drivers-2.9.61
3 files changed, 165 insertions, 1 deletions
diff --git a/media-video/ati-drivers/ChangeLog b/media-video/ati-drivers/ChangeLog
index cf98b353fc17..747a22132231 100644
--- a/media-video/ati-drivers/ChangeLog
+++ b/media-video/ati-drivers/ChangeLog
@@ -1,6 +1,12 @@
# 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.4 2003/03/01 16:39:07 lu_zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers/ChangeLog,v 1.5 2003/04/06 02:26:25 lu_zero Exp $
+
+*ati-drivers-2.9.6 (3 Feb 2003)
+ 3 Feb 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
1 Mar 2003 Luca Barbato <lu_zero@gentoo.org> ati-drivers-2.5.1-r1.ebuild,
ChangeLog:
diff --git a/media-video/ati-drivers/ati-drivers-2.9.6.ebuild b/media-video/ati-drivers/ati-drivers-2.9.6.ebuild
new file mode 100644
index 000000000000..f2eab19074b9
--- /dev/null
+++ b/media-video/ati-drivers/ati-drivers-2.9.6.ebuild
@@ -0,0 +1,157 @@
+# 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.6.ebuild,v 1.1 2003/04/06 02:26:25 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 or ${HOMEPAGE} or http://www.schneider-digital.de/html/body_download_ati.html (fetch glx1_linux_X4.3.zip an 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"
+
+ 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
+}
diff --git a/media-video/ati-drivers/files/digest-ati-drivers-2.9.6 b/media-video/ati-drivers/files/digest-ati-drivers-2.9.6
new file mode 100644
index 000000000000..dbb614be7dd4
--- /dev/null
+++ b/media-video/ati-drivers/files/digest-ati-drivers-2.9.6
@@ -0,0 +1 @@
+MD5 d6a428c32df586e959f9916bdac9c0ec glx1_linux_X4.3.zip 3851200