summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2004-02-23 23:48:50 +0000
committerLuca Barbato <lu_zero@gentoo.org>2004-02-23 23:48:50 +0000
commiteb6168e5adf4b6b6941882935f2b786d0a1075d4 (patch)
treeed6079068993e6cbcfe8fd3c45f37e63d71e2ef7 /media-video/ati-drivers-extra
parentSplit ebuild: drivers (Manifest recommit) (diff)
downloadgentoo-2-eb6168e5adf4b6b6941882935f2b786d0a1075d4.tar.gz
gentoo-2-eb6168e5adf4b6b6941882935f2b786d0a1075d4.tar.bz2
gentoo-2-eb6168e5adf4b6b6941882935f2b786d0a1075d4.zip
Split ebuild: optional stuff
Diffstat (limited to 'media-video/ati-drivers-extra')
-rw-r--r--media-video/ati-drivers-extra/ChangeLog10
-rw-r--r--media-video/ati-drivers-extra/ati-drivers-extra-3.2.8-r1.ebuild78
-rw-r--r--media-video/ati-drivers-extra/metadata.xml8
3 files changed, 96 insertions, 0 deletions
diff --git a/media-video/ati-drivers-extra/ChangeLog b/media-video/ati-drivers-extra/ChangeLog
new file mode 100644
index 000000000000..914aa94c1b6b
--- /dev/null
+++ b/media-video/ati-drivers-extra/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-video/ati-drivers-extra
+# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers-extra/ChangeLog,v 1.1 2004/02/23 23:48:50 lu_zero Exp $
+
+*ati-drivers-extra-3.2.8-r1 (24 Feb 2004)
+
+ 24 Feb 2004; Luca Barbato <lu_zero@gentoo.org>
+ ati-drivers-extra-3.2.8-r1.ebuild, metadata.xml:
+ First import, split from ati-drivers
+
diff --git a/media-video/ati-drivers-extra/ati-drivers-extra-3.2.8-r1.ebuild b/media-video/ati-drivers-extra/ati-drivers-extra-3.2.8-r1.ebuild
new file mode 100644
index 000000000000..a41c297a59cb
--- /dev/null
+++ b/media-video/ati-drivers-extra/ati-drivers-extra-3.2.8-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/ati-drivers-extra/ati-drivers-extra-3.2.8-r1.ebuild,v 1.1 2004/02/23 23:48:50 lu_zero Exp $
+
+IUSE="qt kde gnome"
+
+DESCRIPTION="Ati precompiled drivers extra applications"
+HOMEPAGE="http://www.ati.com"
+SRC_URI="http://www2.ati.com/drivers/linux/fglrx-glc22-4.3.0-${PV}.i586.rpm"
+SLOT="${KV}"
+LICENSE="ATI GPL-2 QPL-1.0"
+KEYWORDS="-* x86"
+
+DEPEND="app-arch/rpm2targz
+ >=x11-base/xfree-4.3.0
+ =media-video/ati-drivers-${PV}-r1
+ qt? ( >=x11-libs/qt-3.0 )"
+
+RDEPEND=">=x11-base/xfree-4.3.0
+ =media-video/ati-drivers-${PV}-r1
+ qt? ( >=x11-libs/qt-3.0 )"
+
+ATIBIN="${D}/opt/ati/bin"
+RESTRICT="nostrip"
+
+src_unpack() {
+ cd ${WORKDIR}
+ rpm2targz ${DISTDIR}/${A} ||die
+ tar zxf ${WORKDIR}/fglrx-glc22-4.3.0-${PV}.i586.tar.gz || die
+ mkdir ${WORKDIR}/fglrxgears
+ cd ${WORKDIR}/fglrxgears
+ tar zxf ${WORKDIR}/usr/src/ATI/fglrx_sample_source.tgz || die
+ mv xc/programs/fgl_glxgears/* .
+ cp Makefile.Linux Makefile.Linux.orig || die
+ #defining USE_GLU allows this to compile with NVIDIA headers just fine
+ sed -e "s:-I/usr/X11R6/include:-D USE_GLU -I/usr/X11R6/include:" Makefile.Linux.orig > Makefile.Linux || die
+ cd ${WORKDIR}
+ local OLDBIN="/usr/X11R6/bin"
+ local ATIBIN="${D}/opt/ati/bin"
+ mkdir fglrx_panel
+ cd fglrx_panel
+ tar zxf ${WORKDIR}/usr/src/ATI/fglrx_panel_sources.tgz || die
+ sed -e "s:"${OLDBIN}":"${ATIBIN}":"\
+ Makefile >Makefile.new
+ mv Makefile.new Makefile
+}
+
+pkg_setup(){
+ check_KV || die "please ensure /usr/src/linux points to your kernel symlink"
+}
+
+
+src_compile() {
+ einfo "building the fgl_glxgears sample"
+ cd ${WORKDIR}/fglrxgears
+ make -f Makefile.Linux || ewarn "fgl_glxgears sample not build"
+
+ if [ "`use qt`" ]
+ then
+ einfo "building the qt fglx panel"
+ cd ${WORKDIR}/fglrx_panel
+ emake || die
+ fi
+}
+
+
+src_install() {
+ local ATI_ROOT="/usr/lib/opengl/ati"
+ cd ${WORKDIR}
+ exeinto /opt/ati/bin
+ doexe fglrxgears/fgl_glxgears
+ rm usr/X11R6/bin/*
+
+ if [ "`use qt`" ]
+ then
+ doexe fglrx_panel/fireglcontrol
+ fi
+}
diff --git a/media-video/ati-drivers-extra/metadata.xml b/media-video/ati-drivers-extra/metadata.xml
new file mode 100644
index 000000000000..72cb6bccefda
--- /dev/null
+++ b/media-video/ati-drivers-extra/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>xfree</herd>
+<maintainer>
+ <email>lu_zero@gentoo.org</email>
+</maintainer>
+</pkgmetadata>