summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bevitt <cyfred@gentoo.org>2004-07-18 02:51:18 +0000
committerAndrew Bevitt <cyfred@gentoo.org>2004-07-18 02:51:18 +0000
commit1c3a9dd84154fd7baf8a9b2314ea7b7acc5ef720 (patch)
tree20b0019cbfc6da5db2a4a33c9f270abf3f2e0cd4 /media-video/nvidia-glx
parentMaking /usr/lib/tls back into a directory again, for future compatibility (diff)
downloadgentoo-2-1c3a9dd84154fd7baf8a9b2314ea7b7acc5ef720.tar.gz
gentoo-2-1c3a9dd84154fd7baf8a9b2314ea7b7acc5ef720.tar.bz2
gentoo-2-1c3a9dd84154fd7baf8a9b2314ea7b7acc5ef720.zip
Making /usr/lib/tls into a directory again; future compatibility as azarah put it.
Diffstat (limited to 'media-video/nvidia-glx')
-rw-r--r--media-video/nvidia-glx/ChangeLog12
-rw-r--r--media-video/nvidia-glx/Manifest44
-rw-r--r--media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r12
-rw-r--r--media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r22
-rw-r--r--media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r3 (renamed from media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106)0
-rw-r--r--media-video/nvidia-glx/nvidia-glx-1.0.6106-r2.ebuild195
-rw-r--r--media-video/nvidia-glx/nvidia-glx-1.0.6106-r3.ebuild (renamed from media-video/nvidia-glx/nvidia-glx-1.0.6106-r1.ebuild)10
-rw-r--r--media-video/nvidia-glx/nvidia-glx-1.0.6106.ebuild169
8 files changed, 36 insertions, 398 deletions
diff --git a/media-video/nvidia-glx/ChangeLog b/media-video/nvidia-glx/ChangeLog
index 047bb1da5355..e9c332783702 100644
--- a/media-video/nvidia-glx/ChangeLog
+++ b/media-video/nvidia-glx/ChangeLog
@@ -1,6 +1,16 @@
# ChangeLog for media-video/nvidia-glx
# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.54 2004/07/17 22:21:14 azarah Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.55 2004/07/18 02:51:18 cyfred Exp $
+
+*nvidia-glx-1.0.6106-r3 (18 Jul 2004)
+
+ 18 Jul 2004; Andrew Bevitt <cyfred@gentoo.org>;
+ -nvidia-glx-1.0.6106-r1.ebuild, -nvidia-glx-1.0.6106-r2.ebuild,
+ +nvidia-glx-1.0.6106-r3.ebuild, -nvidia-glx-1.0.6106.ebuild:
+ Taking Azarahs' advice, making /usr/lib/tls into a directory and creating
+ symlinks under it.. Changing opengl-update-1.8.1 to account for this thank
+ fully links are easier to remove than directories, this will be a transparent
+ update
*nvidia-glx-1.0.6106-r2 (18 Jul 2004)
diff --git a/media-video/nvidia-glx/Manifest b/media-video/nvidia-glx/Manifest
index aad11f8cbf12..74a62c1e8971 100644
--- a/media-video/nvidia-glx/Manifest
+++ b/media-video/nvidia-glx/Manifest
@@ -1,36 +1,32 @@
+MD5 30625d4053cb03c505077141edf94976 nvidia-glx-1.0.5336-r2.ebuild 3443
MD5 c79e7c8a94dd542020eec47fcc960e9b nvidia-glx-1.0.5332-r2.ebuild 3686
-MD5 5eb20c5294063f5553d246f3c97bf8cd nvidia-glx-1.0.4496-r1.ebuild 3376
MD5 d40244500cd750887c4c2074678b91df nvidia-glx-1.0.4499.ebuild 2726
-MD5 9b16efaa40c1e759930d06958cba5842 ChangeLog 10472
-MD5 30625d4053cb03c505077141edf94976 nvidia-glx-1.0.5336-r2.ebuild 3443
MD5 65ab1b807374ee2f065e75be6ce4c587 nvidia-glx-1.0.4496.ebuild 3056
-MD5 ec76697170ba0841f10a3f4b2901a1bb nvidia-glx-1.0.5328-r1.ebuild 3231
-MD5 37e94c0213dc16d73d122ac22df67b78 nvidia-glx-1.0.6106.ebuild 4855
+MD5 29e6a7a981f6a0e25ae31a2bb96deed8 nvidia-glx-1.0.6106-r3.ebuild 5791
+MD5 5eb20c5294063f5553d246f3c97bf8cd nvidia-glx-1.0.4496-r1.ebuild 3376
MD5 01ed7d4ae6ca52293e63a39723d83eb6 nvidia-glx-1.0.4363.ebuild 2984
+MD5 ec76697170ba0841f10a3f4b2901a1bb nvidia-glx-1.0.5328-r1.ebuild 3231
+MD5 9b16efaa40c1e759930d06958cba5842 ChangeLog 10472
MD5 cf991042be5789d00fe389f31166412a metadata.xml 290
-MD5 94acbb107b57f0a9b51743c5e38b4167 nvidia-glx-1.0.6106-r1.ebuild 5351
-MD5 29e6a7a981f6a0e25ae31a2bb96deed8 nvidia-glx-1.0.6106-r2.ebuild 5791
-MD5 0d5c4f6eb9edce633b87a6ff09bd0c32 files/nvidia-glx-1.0.5336-glheader.patch 826
MD5 97f35a7b23f2e60d2abc5eff121bea3f files/nvidia-glx-1.0.4499-defines.patch 437
+MD5 cea66cc5b458a313a9ac72b56e32e10b files/README.gentoo 200
+MD5 fda10e01c37b4518535e3b258be78fa5 files/libGL.la.1 747
MD5 49e1d59847fbcc32cb582d9df7e1c1b3 files/libGL.la.2 751
-MD5 e13e0b5c25d53130e1d21f13ffd0b8a6 files/digest-nvidia-glx-1.0.4499 72
MD5 0cedd89265dd9ffbcc19e2b72d05569d files/nvidia-glx-1.0.5332-glheader.patch 832
-MD5 70373b1b0e250ed889f9694176a73e3f files/nvidia-glx-1.0.5328-glheader.patch 941
-MD5 50ffea0f5eb12d252905f379bc7be2d6 files/digest-nvidia-glx-1.0.6106 163
-MD5 1316f73c0eecd8832bb362a3d5ca4892 files/digest-nvidia-glx-1.0.5336-r2 80
-MD5 a88479c177f936b6ef19fc73bb39d149 files/digest-nvidia-glx-1.0.4496 80
-MD5 c3afc69f917a783ebd53cf2de38065dc files/09nvidia 61
+MD5 0d5c4f6eb9edce633b87a6ff09bd0c32 files/nvidia-glx-1.0.5336-glheader.patch 826
MD5 ffa1654d23ef713b0d6273d4d844fd0c files/digest-nvidia-glx-1.0.4363 72
-MD5 497ffcbd6a91ed9447dfdf7b736925bd files/digest-nvidia-glx-1.0.5328-r1 80
-MD5 cf7b2bb276c568f0f66d10951b4ce3ad files/digest-nvidia-glx-1.0.5332-r2 83
-MD5 cea66cc5b458a313a9ac72b56e32e10b files/README.gentoo 200
+MD5 a88479c177f936b6ef19fc73bb39d149 files/digest-nvidia-glx-1.0.4496 80
+MD5 e13e0b5c25d53130e1d21f13ffd0b8a6 files/digest-nvidia-glx-1.0.4499 72
MD5 170bb6132a96be6319329909ea5ef37b files/nvidia-glx-1.0.4363-defines.patch 906
-MD5 3d8b3ecb3827e2e3a9a45ac6c3210a0a files/nvidia-glx-1.0.5328-defines.patch 437
-MD5 a88479c177f936b6ef19fc73bb39d149 files/digest-nvidia-glx-1.0.4496-r1 80
-MD5 fda10e01c37b4518535e3b258be78fa5 files/libGL.la.1 747
MD5 3d8b3ecb3827e2e3a9a45ac6c3210a0a files/nvidia-glx-1.0.4496-defines.patch 437
-MD5 50ffea0f5eb12d252905f379bc7be2d6 files/digest-nvidia-glx-1.0.6106-r1 163
-MD5 50ffea0f5eb12d252905f379bc7be2d6 files/digest-nvidia-glx-1.0.6106-r2 163
-MD5 6f55327ce020f7ed0d433ea99dacb315 files/1.0.6106/NVIDIA_glx-1.0.6106-makefile.patch 593
-MD5 3d8b3ecb3827e2e3a9a45ac6c3210a0a files/1.0.6106/NVIDIA_glx-1.0.6106-defines.patch 437
+MD5 a88479c177f936b6ef19fc73bb39d149 files/digest-nvidia-glx-1.0.4496-r1 80
+MD5 70373b1b0e250ed889f9694176a73e3f files/nvidia-glx-1.0.5328-glheader.patch 941
+MD5 3d8b3ecb3827e2e3a9a45ac6c3210a0a files/nvidia-glx-1.0.5328-defines.patch 437
+MD5 497ffcbd6a91ed9447dfdf7b736925bd files/digest-nvidia-glx-1.0.5328-r1 80
+MD5 cf7b2bb276c568f0f66d10951b4ce3ad files/digest-nvidia-glx-1.0.5332-r2 83
+MD5 1316f73c0eecd8832bb362a3d5ca4892 files/digest-nvidia-glx-1.0.5336-r2 80
+MD5 50ffea0f5eb12d252905f379bc7be2d6 files/digest-nvidia-glx-1.0.6106-r3 163
+MD5 c3afc69f917a783ebd53cf2de38065dc files/09nvidia 61
MD5 f6c702c19de46ece719928dc99ef0ad6 files/1.0.6106/NVIDIA_glx-1.0.6106-glheader.patch 419
+MD5 3d8b3ecb3827e2e3a9a45ac6c3210a0a files/1.0.6106/NVIDIA_glx-1.0.6106-defines.patch 437
+MD5 6f55327ce020f7ed0d433ea99dacb315 files/1.0.6106/NVIDIA_glx-1.0.6106-makefile.patch 593
diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r1 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r1
deleted file mode 100644
index a343b4b8810a..000000000000
--- a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r1
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 5432f919f0211ce36b854d87108d7db0 NVIDIA-Linux-x86-1.0-6106-pkg1.run 8160802
-MD5 024f21a3fa134bee8339adac64bdc77a NVIDIA-Linux-x86_64-1.0-6106-pkg2.run 7331301
diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r2 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r2
deleted file mode 100644
index a343b4b8810a..000000000000
--- a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r2
+++ /dev/null
@@ -1,2 +0,0 @@
-MD5 5432f919f0211ce36b854d87108d7db0 NVIDIA-Linux-x86-1.0-6106-pkg1.run 8160802
-MD5 024f21a3fa134bee8339adac64bdc77a NVIDIA-Linux-x86_64-1.0-6106-pkg2.run 7331301
diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r3
index a343b4b8810a..a343b4b8810a 100644
--- a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106
+++ b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.6106-r3
diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.6106-r2.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.6106-r2.ebuild
deleted file mode 100644
index 923293f1cc86..000000000000
--- a/media-video/nvidia-glx/nvidia-glx-1.0.6106-r2.ebuild
+++ /dev/null
@@ -1,195 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.6106-r2.ebuild,v 1.1 2004/07/17 22:21:14 azarah Exp $
-
-inherit eutils
-
-X86_PKG_V="pkg1"
-AMD64_PKG_V="pkg2"
-NV_V="${PV/1.0./1.0-}"
-X86_NV_PACKAGE="NVIDIA-Linux-x86-${NV_V}"
-AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${NV_V}"
-
-DESCRIPTION="NVIDIA X11 driver and GLX libraries"
-HOMEPAGE="http://www.nvidia.com/"
-SRC_URI="x86? (ftp://download.nvidia.com/XFree86/Linux-x86/${NV_V}/${X86_NV_PACKAGE}-${X86_PKG_V}.run)
- amd64? (http://download.nvidia.com/XFree86/Linux-x86_64/${NV_V}/${AMD64_NV_PACKAGE}-${AMD64_PKG_V}.run)"
-
-if use x86; then
- PKG_V="${X86_PKG_V}"
- NV_PACKAGE="${X86_NV_PACKAGE}"
-elif use amd64; then
- PKG_V="${AMD64_PKG_V}"
- NV_PACKAGE="${AMD64_NV_PACKAGE}"
-fi
-
-S="${WORKDIR}/${NV_PACKAGE}-${PKG_V}"
-
-LICENSE="NVIDIA"
-SLOT="0"
-KEYWORDS="-* ~x86 ~amd64"
-RESTRICT="nostrip"
-IUSE="multilib"
-
-DEPEND="virtual/libc
- virtual/x11
- >=x11-base/opengl-update-1.8
- ~media-video/nvidia-kernel-${PV}"
-
-PDEPEND="amd64? ( multilib? ( >=app-emulation/emul-linux-x86-nvidia-${PV}-r1 ) )"
-
-PROVIDE="virtual/opengl"
-export _POSIX2_VERSION="199209"
-
-pkg_setup() {
- # We need xfree-4.2.0-r9 to support the dynamic libGL* stuff
- if has_version "x11-base/xfree"
- then
- if has_version "<x11-base/xfree-4.2.0-r9"
- then
- die "Upgrade to xfree 4.2.0-r9 or greater."
- fi
- fi
- # Provide some information to the users
- if use amd64 ; then
- einfo
- einfo "This release of nvidia-glx contains 32 bit compatibility"
- einfo "libraries. These can be installed by either"
- einfo " 1) emerge app-emulation/emul-linux-x86-nvidia"
- einfo " 2) USE=\"multilib\" emerge media-video/nvidia-glx"
- einfo " (or /etc/portage/package.use, see portage manual)"
- einfo
- fi
-}
-
-src_unpack() {
- cd ${WORKDIR}
- bash ${DISTDIR}/${NV_PACKAGE}-${PKG_V}.run --extract-only
-
- # Patchs go below here, add breif description
-
- cd ${S}
-
- # nVidia wants us to use nvidia-installer, removing warning.
- epatch ${FILESDIR}/${PV}/NVIDIA_glx-${PV}-makefile.patch
- # Use the correct defines to make gtkglext build work
- epatch ${FILESDIR}/${PV}/NVIDIA_glx-${PV}-defines.patch
- # Use some more sensible gl headers and make way for new glext.h
- epatch ${FILESDIR}/${PV}/NVIDIA_glx-${PV}-glheader.patch
-}
-
-src_install() {
- local NV_ROOT="/usr/lib/opengl/nvidia"
-
- # 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/libglx.so.${PV} libglx.so
-
- # The GLX libraries
- exeinto ${NV_ROOT}/lib
- doexe usr/lib/libGL.so.${PV} \
- usr/lib/libGLcore.so.${PV} \
- usr/lib/libnvidia-tls.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
- dosym libnvidia-tls.so.${PV} ${NV_ROOT}/lib/libnvidia-tls.so
- dosym libnvidia-tls.so.${PV} ${NV_ROOT}/lib/libnvidia-tls.so.1
-
- local TLS_ROOT="/usr/lib/opengl/nvidia/tls"
- dodir ${TLS_ROOT}
- exeinto ${TLS_ROOT}
- doexe usr/lib/tls/libnvidia-tls.so.${PV}
- dosym libnvidia-tls.so.${PV} ${TLS_ROOT}/libnvidia-tls.so
- dosym libnvidia-tls.so.${PV} ${TLS_ROOT}/libnvidia-tls.so.1
-
- # Install tls_test
- dodir /usr/lib/misc
- exeinto /usr/lib/misc
- doexe usr/bin/tls_test
- doexe usr/bin/tls_test_dso.so
-
- insinto /usr/X11R6/lib
- doins usr/X11R6/lib/libXvMCNVIDIA.a
- exeinto /usr/X11R6/lib
- doexe usr/X11R6/lib/libXvMCNVIDIA.so.${PV}
-
- # Closing bug #37517 by letting virtual/x11 provide system wide glext.h
- # 16 July 2004, opengl-update is now supplying glext.h for system wide
- # compatibility, so we still need to remove this.
- rm -f usr/include/GL/glext.h
-
- # Includes
- insinto ${NV_ROOT}/include
- doins usr/include/GL/*.h
-
- # Docs, remove nvidia-settings as provided by media-video/nvidia-settings
- rm -f usr/share/doc/nvidia-settings*
- dodoc usr/share/doc/*
-
- # nVidia want bug reports using this script
- exeinto /usr/bin
- doexe usr/bin/nvidia-bug-report.sh
-
- # 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.2 > ${D}/${NV_ROOT}/lib/libGL.la
-
- # Should we install the .la for the 32bit libs on amd64? I think not.
-}
-
-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
- # Make sure the symlink change is done properly
- if [ -d "${ROOT}/usr/lib/tls" ]
- then
- if [ -z "$(ls "${ROOT}/usr/lib/tls/" 2>/dev/null | grep -v 'nvidia')" ]
- then
- rm -rf ${ROOT}/usr/lib/tls/
- else
- eerror "Not only nvidia-glx occupies ${ROOT}/usr/lib/tls!"
- eerror "Please open a bug and include the output of:"
- echo
- eerror " $ ls -l /usr/lib/tls"
- die "Not only nvidia-glx occupies ${ROOT}/usr/lib/tls!"
- fi
- fi
-}
-
-pkg_postinst() {
- #switch to the nvidia implementation
- if [ "${ROOT}" = "/" ]
- then
- /usr/sbin/opengl-update nvidia
- fi
-
- echo
- einfo "To use the Nvidia GLX, run \"opengl-update nvidia\""
- echo
- einfo "You may also be interested in media-video/nvidia-settings"
- echo
- einfo "nVidia have requested that any bug reports submitted have the"
- einfo "output of /usr/bin/nvidia-bug-report.sh included."
-}
diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.6106-r1.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.6106-r3.ebuild
index bf530c3407d7..1e83fa03303c 100644
--- a/media-video/nvidia-glx/nvidia-glx-1.0.6106-r1.ebuild
+++ b/media-video/nvidia-glx/nvidia-glx-1.0.6106-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.6106-r1.ebuild,v 1.1 2004/07/17 03:28:57 cyfred Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.6106-r3.ebuild,v 1.1 2004/07/18 02:51:18 cyfred Exp $
inherit eutils
@@ -33,7 +33,7 @@ IUSE="multilib"
DEPEND="virtual/libc
virtual/x11
- >=x11-base/opengl-update-1.8
+ >=x11-base/opengl-update-1.8.1
~media-video/nvidia-kernel-${PV}"
PDEPEND="amd64? ( multilib? ( >=app-emulation/emul-linux-x86-nvidia-${PV}-r1 ) )"
@@ -151,13 +151,13 @@ src_install() {
}
pkg_preinst() {
- #clean the dinamic libGL stuff's home to ensure
- #we dont have stale libs floating around
+ # 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
+ # 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
diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.6106.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.6106.ebuild
deleted file mode 100644
index cbc75b6e2052..000000000000
--- a/media-video/nvidia-glx/nvidia-glx-1.0.6106.ebuild
+++ /dev/null
@@ -1,169 +0,0 @@
-# Copyright 1999-2004 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.6106.ebuild,v 1.3 2004/07/14 22:09:53 agriffis Exp $
-
-inherit eutils
-
-X86_PKG_V="pkg1"
-AMD64_PKG_V="pkg2"
-NV_V="${PV/1.0./1.0-}"
-X86_NV_PACKAGE="NVIDIA-Linux-x86-${NV_V}"
-AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${NV_V}"
-
-DESCRIPTION="NVIDIA X11 driver and GLX libraries"
-HOMEPAGE="http://www.nvidia.com/"
-SRC_URI="x86? (ftp://download.nvidia.com/XFree86/Linux-x86/${NV_V}/${X86_NV_PACKAGE}-${X86_PKG_V}.run)
- amd64? (http://download.nvidia.com/XFree86/Linux-x86_64/${NV_V}/${AMD64_NV_PACKAGE}-${AMD64_PKG_V}.run)"
-
-if use x86; then
- PKG_V="${X86_PKG_V}"
- NV_PACKAGE="${X86_NV_PACKAGE}"
-elif use amd64; then
- PKG_V="${AMD64_PKG_V}"
- NV_PACKAGE="${AMD64_NV_PACKAGE}"
-fi
-
-S="${WORKDIR}/${NV_PACKAGE}-${PKG_V}"
-
-LICENSE="NVIDIA"
-SLOT="0"
-KEYWORDS="-* ~x86 amd64"
-RESTRICT="nostrip"
-IUSE="multilib"
-
-DEPEND="virtual/libc
- virtual/x11
- >=x11-base/opengl-update-1.3
- ~media-video/nvidia-kernel-${PV}"
-
-PDEPEND="amd64? ( multilib? ( app-emulation/emul-linux-x86-nvidia ) )"
-
-PROVIDE="virtual/opengl"
-export _POSIX2_VERSION="199209"
-
-pkg_setup() {
- # We need xfree-4.2.0-r9 to support the dynamic libGL* stuff
- if has_version "x11-base/xfree"
- then
- if has_version "<x11-base/xfree-4.2.0-r9"
- then
- die "Upgrade to xfree 4.2.0-r9 or greater."
- fi
- fi
- # Provide some information to the users
- if use amd64 ; then
- einfo
- einfo "This release of nvidia-glx contains 32 bit compatibility"
- einfo "libraries. These can be installed by either"
- einfo " 1) emerge app-emulation/emul-linux-x86-nvidia"
- einfo " 2) USE=\"multilib\" emerge media-video/nvidia-glx"
- einfo " (or /etc/portage/package.use, see portage manual)"
- einfo
- fi
-}
-
-src_unpack() {
- cd ${WORKDIR}
- bash ${DISTDIR}/${NV_PACKAGE}-${PKG_V}.run --extract-only
-
- # Patchs go below here, add breif description
-
- cd ${S}
-
- # nVidia wants us to use nvidia-installer, removing warning.
- epatch ${FILESDIR}/${PV}/NVIDIA_glx-${PV}-makefile.patch
- # Use the correct defines to make gtkglext build work
- epatch ${FILESDIR}/${PV}/NVIDIA_glx-${PV}-defines.patch
-}
-
-src_install() {
- local NV_ROOT="/usr/lib/opengl/nvidia"
-
- # 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/libglx.so.${PV} libglx.so
-
- # The GLX libraries
- exeinto ${NV_ROOT}/lib
- doexe usr/lib/libGL.so.${PV} \
- usr/lib/libGLcore.so.${PV} \
- usr/lib/libnvidia-tls.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
-
- local TLS_ROOT="/usr/lib/tls"
- dodir ${TLS_ROOT}
- exeinto ${TLS_ROOT}
- doexe usr/lib/tls/libnvidia-tls.so.${PV}
- dosym ${TLS_ROOT}/libnvidia-tls.so.${PV} ${TLS_ROOT}/libnvidia-tls.so
- dosym ${TLS_ROOT}/libnvidia-tls.so.${PV} ${TLS_ROOT}/libnvidia-tls.so.1
-
- insinto /usr/X11R6/lib
- doins usr/X11R6/lib/libXvMCNVIDIA.a
- exeinto /usr/X11R6/lib
- doexe usr/X11R6/lib/libXvMCNVIDIA.so.${PV}
-
- # Closing bug #37517 by letting virtual/x11 provide system wide glext.h
- rm -f usr/include/GL/glext.h
-
- # Includes
- insinto ${NV_ROOT}/include
- doins usr/include/GL/*.h
-
- # Docs, remove nvidia-settings as provided by media-video/nvidia-settings
- rm -f usr/share/doc/nvidia-settings*
- dodoc usr/share/doc/*
-
- # nVidia want bug reports using this script
- exeinto /usr/bin
- doexe usr/bin/nvidia-bug-report.sh
-
- # 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.2 > ${D}/${NV_ROOT}/lib/libGL.la
-
- # Should we install the .la for the 32bit libs on amd64? I think not.
-}
-
-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
-
- echo
- einfo "To use the Nvidia GLX, run \"opengl-update nvidia\""
- echo
- einfo "You may also be interested in media-video/nvidia-settings"
- echo
- einfo "nVidia have requested that any bug reports submitted have the"
- einfo "output of /usr/bin/nvidia-bug-report.sh included."
-}