summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2003-04-26 13:15:13 +0000
committerMartin Schlemmer <azarah@gentoo.org>2003-04-26 13:15:13 +0000
commitd317e1e6c6e50060ab0e02f1d4910b7f992998ec (patch)
tree5fff44a2a97218359de81e6fd7b67171ad9896d7 /media-video/nvidia-glx
parentnew version (diff)
downloadgentoo-2-d317e1e6c6e50060ab0e02f1d4910b7f992998ec.tar.gz
gentoo-2-d317e1e6c6e50060ab0e02f1d4910b7f992998ec.tar.bz2
gentoo-2-d317e1e6c6e50060ab0e02f1d4910b7f992998ec.zip
new version
Diffstat (limited to 'media-video/nvidia-glx')
-rw-r--r--media-video/nvidia-glx/ChangeLog7
-rw-r--r--media-video/nvidia-glx/Manifest5
-rw-r--r--media-video/nvidia-glx/files/digest-nvidia-glx-1.0.43631
-rw-r--r--media-video/nvidia-glx/nvidia-glx-1.0.4363.ebuild117
4 files changed, 126 insertions, 4 deletions
diff --git a/media-video/nvidia-glx/ChangeLog b/media-video/nvidia-glx/ChangeLog
index 0fd7fda94073..7791d6def7e5 100644
--- a/media-video/nvidia-glx/ChangeLog
+++ b/media-video/nvidia-glx/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/nvidia-glx
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.19 2003/04/21 15:50:22 pfeifer Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.20 2003/04/26 13:14:10 azarah Exp $
+
+*nvidia-glx-1.0.4363 (26 Apr 2003)
+
+ 26 Apr 2003; Martin Schlemmer <azarah@gentoo.org> nvidia-glx-1.0.4363.ebuild :
+ Update version.
*nvidia-glx-1.0.4349 (21 Apr 2003)
diff --git a/media-video/nvidia-glx/Manifest b/media-video/nvidia-glx/Manifest
index bdcf18fb5a58..58c4f7d16e2b 100644
--- a/media-video/nvidia-glx/Manifest
+++ b/media-video/nvidia-glx/Manifest
@@ -1,12 +1,11 @@
MD5 e38d931344afe435a5c06b419d1a64c8 nvidia-glx-1.0.2960-r1.ebuild 2721
-MD5 59f1d14f4ee88c808f3c10431d61aff9 ChangeLog 2903
+MD5 90ab62179bd6e4abf639627fb6dc7c50 ChangeLog 2902
MD5 df731a6e32dcbdc8ba416add3d11c15b nvidia-glx-1.0.2880.ebuild 2679
MD5 234657b19a6d19a6981c4aab1ad09fcf nvidia-glx-1.0.3123.ebuild 2658
MD5 8b0b8ebf993ec078f34e39fb0a0cfbba nvidia-glx-1.0.4191.ebuild 2665
MD5 bf9e94e04d62c167baface9cbd58be34 nvidia-glx-1.0.4191-r1.ebuild 2801
MD5 15b46a42f05c684c7c39bb18fcde2d45 nvidia-glx-1.0.4349.ebuild 3163
-MD5 17bd49b6401f75837cb0db91174a16a3 nvidia-glx-1.0.4363.ebuild 3100
-MD5 f288bc685d5ad7db5f50936bf727cb08 .nvidia-glx-1.0.4363.ebuild.swp 12288
+MD5 a73942f1b90b9ec5aac55c0e40c00100 nvidia-glx-1.0.4363.ebuild 3099
MD5 c3afc69f917a783ebd53cf2de38065dc files/09nvidia 61
MD5 cea66cc5b458a313a9ac72b56e32e10b files/README.gentoo 200
MD5 db715a5b58ba38f9d757cf6be06778e7 files/digest-nvidia-glx-1.0.2880 72
diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.4363 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.4363
new file mode 100644
index 000000000000..93573750677d
--- /dev/null
+++ b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.4363
@@ -0,0 +1 @@
+MD5 49803f02a88e31f5db0c6ffdf0ac1a1f NVIDIA_GLX-1.0-4363.tar.gz 4197816
diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.4363.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.4363.ebuild
new file mode 100644
index 000000000000..3429f18363b0
--- /dev/null
+++ b/media-video/nvidia-glx/nvidia-glx-1.0.4363.ebuild
@@ -0,0 +1,117 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.4363.ebuild,v 1.1 2003/04/26 13:14:10 azarah Exp $
+
+inherit eutils
+
+# Make sure Portage does _NOT_ strip symbols. Need both lines for
+# Portage 1.8.9+
+DEBUGBUILD="yes"
+RESTRICT="nostrip"
+
+NV_V="${PV/1.0./1.0-}"
+NV_PACKAGE="NVIDIA_GLX-${NV_V}"
+S="${WORKDIR}/NVIDIA_GLX-${NV_V}"
+DESCRIPTION="XFree86 GLX libraries for the NVIDIA's X driver"
+SRC_URI="http://download.nvidia.com/XFree86/Linux-x86/${NV_V}/${NV_PACKAGE}.tar.gz"
+HOMEPAGE="http://www.nvidia.com/"
+
+LICENSE="NVIDIA"
+SLOT="0"
+KEYWORDS="~x86 -ppc -sparc -alpha -hppa -mips -arm"
+
+# We need xfree-4.2.0-r9 to support the dynamic libGL* stuff
+DEPEND="virtual/glibc
+ >=x11-base/xfree-4.2.0-r9
+ >=x11-base/opengl-update-1.3
+ ~media-video/nvidia-kernel-${PV}"
+
+PROVIDE="virtual/opengl"
+
+src_unpack() {
+ unpack ${A}
+
+ # correct defines to make gtkglext build work
+ cd ${S}; epatch ${FILESDIR}/${PN}-1.0.4191-defines.patch
+}
+
+src_install() {
+ local NV_ROOT="/usr/lib/opengl/nvidia"
+ local TLS=
+
+ # Check if we should install TLS versions of the libraries
+ ${S}/usr/bin/tls_test 2> /dev/null
+ # Only trust this if we are merging to /
+ if [ "$?" = "0" -a "${ROOT}" = "/" ]
+ then
+ einfo "Using TLS..."
+ TLS="tls/"
+ fi
+
+ # The X module
+ exeinto /usr/X11R6/lib/modules/drivers
+ doexe usr/X11R6/lib/modules/drivers/nvidia_drv.o
+
+ # The GLX extension
+ exeinto ${NV_ROOT}/extensions
+ newexe usr/X11R6/lib/modules/extensions/${TLS}libglx.so.${PV} libglx.so
+
+ # The GLX libraries
+ exeinto ${NV_ROOT}/lib
+ doexe usr/lib/${TLS}libGL.so.${PV} \
+ usr/lib/${TLS}libGLcore.so.${PV}
+ dosym libGL.so.${PV} ${NV_ROOT}/lib/libGL.so
+ dosym libGL.so.${PV} ${NV_ROOT}/lib/libGL.so.1
+ dosym libGLcore.so.${PV} ${NV_ROOT}/lib/libGLcore.so
+ dosym libGLcore.so.${PV} ${NV_ROOT}/lib/libGLcore.so.1
+
+ insinto /usr/X11R6/lib
+ doins usr/X11R6/lib/libXvMCNVIDIA.a
+ exeinto /usr/X11R6/lib
+ doexe usr/X11R6/lib/libXvMCNVIDIA.so.${PV}
+
+ # Includes
+ insinto ${NV_ROOT}/include
+ doins usr/include/GL/*.h
+
+ # Docs
+ dodoc usr/share/doc/*
+
+ # 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.1 > ${D}/${NV_ROOT}/lib/libGL.la
+}
+
+pkg_preinst() {
+ #clean the dinamic libGL stuff's home to ensure
+ #we dont have stale libs floating around
+ if [ -d ${ROOT}/usr/lib/opengl/nvidia ]
+ then
+ rm -rf ${ROOT}/usr/lib/opengl/nvidia/*
+ fi
+ #make sure we nuke the old nvidia-glx's env.d file
+ if [ -e ${ROOT}/etc/env.d/09nvidia ]
+ then
+ rm -f ${ROOT}/etc/env.d/09nvidia
+ fi
+}
+
+pkg_postinst() {
+ #switch to the nvidia implementation
+ if [ "${ROOT}" = "/" ]
+ then
+ /usr/sbin/opengl-update nvidia
+ fi
+
+ einfo
+ einfo "To use the Nvidia GLX, run \"opengl-update nvidia\""
+ einfo
+}
+