summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2002-03-07 23:42:26 +0000
committerDaniel Robbins <drobbins@gentoo.org>2002-03-07 23:42:26 +0000
commitf6f02956abac7dc165cba8aa153172b9e7d2cfc0 (patch)
treeff54be64554d30194cf8969f3cb1f73242495d71 /media-video/nvidia-glx
parentnew version (diff)
downloadhistorical-f6f02956abac7dc165cba8aa153172b9e7d2cfc0.tar.gz
historical-f6f02956abac7dc165cba8aa153172b9e7d2cfc0.tar.bz2
historical-f6f02956abac7dc165cba8aa153172b9e7d2cfc0.zip
new nvidia stuff
Diffstat (limited to 'media-video/nvidia-glx')
-rw-r--r--media-video/nvidia-glx/ChangeLog8
-rw-r--r--media-video/nvidia-glx/files/digest-nvidia-glx-1.0.28021
-rw-r--r--media-video/nvidia-glx/nvidia-glx-1.0.2802.ebuild77
3 files changed, 85 insertions, 1 deletions
diff --git a/media-video/nvidia-glx/ChangeLog b/media-video/nvidia-glx/ChangeLog
index a65d0a76c0b8..4607cecaa967 100644
--- a/media-video/nvidia-glx/ChangeLog
+++ b/media-video/nvidia-glx/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-video/nvidia-glx
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.1 2002/02/11 04:43:00 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.2 2002/03/07 23:42:26 drobbins Exp $
+
+*nvidia-glx-1.0.2802 (07 Mar 2002)
+
+ 07 Mar 2002; Daniel Robbins <drobbins@gentoo.org>: new release and a new NV_V
+ variable to hold the NVIDIA-style version number (simplifies rolling new
+ releases.)
*nvidia-glx-1.0.2313-r1 (10 Feb 2002)
diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2802 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2802
new file mode 100644
index 000000000000..4535b1bd591e
--- /dev/null
+++ b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2802
@@ -0,0 +1 @@
+MD5 8ac546db964b58b916a1c220271086b3 NVIDIA_GLX-1.0-2802.tar.gz 1525481
diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.2802.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.2802.ebuild
new file mode 100644
index 000000000000..2c385bb9cfd7
--- /dev/null
+++ b/media-video/nvidia-glx/nvidia-glx-1.0.2802.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# /space/gentoo/cvsroot/gentoo-x86/skel.build,v 1.14 2002/02/01 19:50:13 gbevin Exp
+
+# This portage installs binary XFree drivers for video cards
+# with NVIDIA chipsets. The driver is provided by NVIDIA corporation.
+
+S="${WORKDIR}/${P}"
+
+DESCRIPTION="Linux kernel module for the NVIDIA's X driver"
+
+NV_V=1.0-2802
+NV_PACKAGE=NVIDIA_GLX-${NV_V}
+NV_ARCHIVE="${NV_PACKAGE}.tar.gz"
+SRC_URI="http://205.158.109.140/XFree86_40/${NV_V}/${NV_ARCHIVE}"
+HOMEPAGE="http://www.nvidia.com/"
+DEPEND="virtual/glibc >=x11-base/xfree-4.0.2 >=media-video/nvidia-kernel-${NV_V}"
+PROVIDE="virtual/opengl"
+
+src_unpack() {
+ unpack "${NV_ARCHIVE}"
+ mv "${NV_PACKAGE}" "${P}"
+}
+
+src_install () {
+ # NVIDIA's stock makefile overwrites headers and libraries
+ # that come with XFree. I don't like it and prefer to keep
+ # NVIDIA's stuff in a totally separate place, hence it goes
+ # into /opt
+ local NVIDIA_ROOT=/opt/nvidia
+
+ # The X module
+ exeinto "${NVIDIA_ROOT}/modules/drivers"
+ doexe usr/X11R6/lib/modules/drivers/nvidia_drv.o
+ exeinto "${NVIDIA_ROOT}/modules/extensions"
+ doexe "usr/X11R6/lib/modules/extensions/libglx.so.${PV}"
+ (cd "${D}/${NVIDIA_ROOT}/modules/extensions"
+ ln -s "libglx.so.${PV}" libglx.so)
+
+ # The GLX libraries
+ exeinto "${NVIDIA_ROOT}/lib"
+ doexe "usr/lib/libGL.so.${PV}" "usr/lib/libGLcore.so.${PV}"
+ (cd "${D}/${NVIDIA_ROOT}/lib"
+ ln -s "libGL.so.${PV}" libGL.so
+ ln -s "libGL.so.${PV}" libGL.so.1
+ ln -s "libGLcore.so.${PV}" libGLcore.so
+ ln -s "libGLcore.so.${PV}" libGLcore.so.1)
+
+ # Not sure whether installing the .la file is neccessary;
+ # this is adopted from the `nvidia' ebuild
+ local ver1="`echo ${PV} |cut -d '.' -f 1`"
+ local ver2="`echo ${PV} |cut -d '.' -f 2`"
+ local ver3="`echo ${PV} |cut -d '.' -f 3`"
+ sed -e "s:\${PV}:${PV}:" \
+ -e "s:\${ver1}:${ver1}:" \
+ -e "s:\${ver2}:${ver2}:" \
+ -e "s:\${ver3}:${ver3}:" \
+ "${FILESDIR}/libGL.la" > "${D}/${NVIDIA_ROOT}/lib/libGL.la"
+
+ # Make sure /opt/NVIDIA/lib gets into ld.so.conf before xfree's libs
+ insinto /etc/env.d
+ doins "${FILESDIR}/09nvidia"
+
+ # Includes
+ insinto "${NVIDIA_ROOT}/include/GL"
+ doins usr/include/GL/*.h
+
+ # Docs
+ dodoc "${FILESDIR}/README.gentoo" usr/share/doc/*
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Make sure to read documentation in /doc/share/${P}"
+ einfo "before you attempt to tweak your XF86Config file!"
+ einfo
+}