diff options
author | Piotr Jaroszyński <peper@gentoo.org> | 2009-10-17 12:15:03 +0000 |
---|---|---|
committer | Piotr Jaroszyński <peper@gentoo.org> | 2009-10-17 12:15:03 +0000 |
commit | 4c44d96bf2fe45c1389076628e65b78b46be87ac (patch) | |
tree | 1dfb183507b754df318fec61d9a29e2bca91d9ee /x11-drivers | |
parent | Add 190.40. (diff) | |
download | historical-4c44d96bf2fe45c1389076628e65b78b46be87ac.tar.gz historical-4c44d96bf2fe45c1389076628e65b78b46be87ac.tar.bz2 historical-4c44d96bf2fe45c1389076628e65b78b46be87ac.zip |
Add 190.40.
Package-Manager: portage-2.1.6.13/cvs/Linux x86_64
Diffstat (limited to 'x11-drivers')
-rw-r--r-- | x11-drivers/nvidia-drivers/ChangeLog | 8 | ||||
-rw-r--r-- | x11-drivers/nvidia-drivers/Manifest | 6 | ||||
-rw-r--r-- | x11-drivers/nvidia-drivers/nvidia-drivers-190.40.ebuild | 589 |
3 files changed, 601 insertions, 2 deletions
diff --git a/x11-drivers/nvidia-drivers/ChangeLog b/x11-drivers/nvidia-drivers/ChangeLog index a8c5e8b43145..561f2944a809 100644 --- a/x11-drivers/nvidia-drivers/ChangeLog +++ b/x11-drivers/nvidia-drivers/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for x11-drivers/nvidia-drivers # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.176 2009/10/06 19:12:44 jer Exp $ +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.177 2009/10/17 12:15:03 peper Exp $ + +*nvidia-drivers-190.40 (17 Oct 2009) + + 17 Oct 2009; Piotr Jaroszyński <peper@gentoo.org> + +nvidia-drivers-190.40.ebuild: + Add 190.40. 06 Oct 2009; Jeroen Roovers <jer@gentoo.org> nvidia-drivers-71.86.09.ebuild, nvidia-drivers-71.86.11.ebuild, diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest index 21f7d22b13b8..d34581fa7f50 100644 --- a/x11-drivers/nvidia-drivers/Manifest +++ b/x11-drivers/nvidia-drivers/Manifest @@ -20,6 +20,7 @@ DIST NVIDIA-FreeBSD-x86-190.18.tar.gz 19867259 RMD160 759bf0171ea42f257367774720 DIST NVIDIA-FreeBSD-x86-190.25.tar.gz 19842181 RMD160 618be25995fa809377316a17bf20e3c7668d66c7 SHA1 bece04998f4a3fa5820c8097b5620d54c8f5129c SHA256 254c9f3e8bd3d0c6397886771305726b425b8c53810bfd024a0aaedcc76b6ee1 DIST NVIDIA-FreeBSD-x86-190.32.tar.gz 19923020 RMD160 c204c8da25adb1e93d9589c83cb37389b3b64cb6 SHA1 9d6f00ddfbf84cd52273b061236493ee4b94c0c5 SHA256 3cad4c81761c6327316fb6bfa51bf671383b8b0c2610d173a07acc09492acea4 DIST NVIDIA-FreeBSD-x86-190.36.tar.gz 20083404 RMD160 79d4592585cef93930e3815050b08705285d8702 SHA1 2b799bd61c5acc2a0d68ebdef645ad49b7e8185a SHA256 58ec9b7e074f0181449936bc4f7309b094ee9a23541d2c0d37af3d393107e2fa +DIST NVIDIA-FreeBSD-x86-190.40.tar.gz 20090287 RMD160 95a4874189f09f48781e2f23962f0bd5f09aa9b7 SHA1 b576ee3813e983cc4eb8d2b78373d65e84480dbf SHA256 6056bc796ab7ca385e62161e842d21a95888c4fc78f8e707345e3dd369f67598 DIST NVIDIA-FreeBSD-x86-96.43.09.tar.gz 10400444 RMD160 9569c9b51d902c214b0225b0aad615627ec944b9 SHA1 21680258aa94a1bff4a59d13de850c31743fac2a SHA256 58c041ce5be40b7837d8126ff1ea6e2932be0d189a046622faef698f1a83b50f DIST NVIDIA-FreeBSD-x86-96.43.11.tar.gz 11051460 RMD160 b3e50cb5118ea53edc9923d609f7f22478802b54 SHA1 64ff4132d325744a26f82ea85c4266799774b709 SHA256 5e17d537ae8ef4c56cb1b95c17672865a49f3aa504775e96d61a6795f6d9c26f DIST NVIDIA-FreeBSD-x86-96.43.13.tar.gz 11057193 RMD160 64c2182d2fb7b2fcb9552e7f6d23a2dfb325dc7e SHA1 c5104e3cbbd36b170c7057d1a7819e3d8cd85b69 SHA256 614396a11ab8b304c51721cd4b47fb82a5f75884ff77d3d414e0e5739835c738 @@ -35,6 +36,7 @@ DIST NVIDIA-Linux-x86-190.18-pkg0.run 14552428 RMD160 cf9a4b89e07bf8fb1e90efbfa9 DIST NVIDIA-Linux-x86-190.25-pkg0.run 14496044 RMD160 5b591bb5083f16225480406f172a8281e1ee493b SHA1 64ecec661c25a44b2a3bc6a5e3ed2e4cd217a49c SHA256 9323085d989b21665de097e36ddaf344d2e640b8a2631b1cfccb985d62356687 DIST NVIDIA-Linux-x86-190.32-pkg0.run 14543715 RMD160 89677e6cbe7db95eb79aa6f1ad65e5918683dc99 SHA1 cfbe17e056343f8bd2fbeb15cff411be0a7b128d SHA256 8c5b1c6024ec9ab578da19964fd1d17bdc42fbb5df9be5a14b9338640707ff7d DIST NVIDIA-Linux-x86-190.36-pkg0.run 14691246 RMD160 3c8e811f88662140d7c2005133724b6d97b86897 SHA1 1168e97031832d37ff2513d13e809ff4e4b5a2fe SHA256 e0d006dd5f331c10918541cbe4b3e33eec3c8ad3f1faff08b6e03b61170c157e +DIST NVIDIA-Linux-x86-190.40-pkg0.run 14694100 RMD160 d21fb7b70b076e10b44bb68687ee7380b1bf5a77 SHA1 f7d081516ba412d3905b3869eba08ba7aa3d954a SHA256 4d3c659d33df343074137d17a766edcd695eeb4723a40362dd3c5ac7892cc362 DIST NVIDIA-Linux-x86-71.86.09-pkg0.run 5274589 RMD160 ca2cb1d370a15328925b0e2fb8c211b57b29cf78 SHA1 c66c0859a3ff142bc2435ed00a23b7dea45c1305 SHA256 464681742bf702f1359d7477c4023a6264f68cddce6c15ce2a5657c7da9dfb1c DIST NVIDIA-Linux-x86-71.86.11-pkg0.run 5275754 RMD160 efe88c673bc3ba665419fd63404aba7858a54993 SHA1 a7d67c9f054fe3fb5072d49ca799e21b030ebe85 SHA256 75a1471eee07c5ec5cec894bf5d331b4d578adb52b6ba7bbec5fe141f061134b DIST NVIDIA-Linux-x86-96.43.09-pkg0.run 7235652 RMD160 0e2aa9244efa4abba6b33462cfb5fdaa32a28cfd SHA1 47d14780acdf0f41b866ed9fc2c3f80f095a9fc0 SHA256 ef4a8378cceb7a1a47028d7a4cf06ab1c3b203e57d853c9f36b5204531bcdfb7 @@ -52,6 +54,7 @@ DIST NVIDIA-Linux-x86_64-190.18-pkg2.run 22906989 RMD160 0f040375d25db3ed2ecfb1b DIST NVIDIA-Linux-x86_64-190.25-pkg2.run 22796183 RMD160 354df53287c651973bfc7357a4ba15cb2ad26905 SHA1 33621a13cd88582696ccc146e8cac279dfdab70e SHA256 8e2a7f5e197af3936a8193739aac292793cec050487915c0068844f68744e023 DIST NVIDIA-Linux-x86_64-190.32-pkg2.run 22876157 RMD160 1f2e1a5fe58295b2b7b6b57762aa778766e4aa73 SHA1 20779050acbf75a24a97c22701f8c8a8f91a3322 SHA256 d0cd7d010d12f272b3572e53ab12f56c74e81c91081da63d0bb98cb39d1f86d4 DIST NVIDIA-Linux-x86_64-190.36-pkg2.run 23034136 RMD160 caf542c44ccc072034fc39212c1fb2e7e6f8a7bf SHA1 7e7720247ba3fa6e71241f7ca9293bdf29071c48 SHA256 276c9a201daacd42391e93798f6d479ff3061f2e7fefaeb9c20dde253b9810f7 +DIST NVIDIA-Linux-x86_64-190.40-pkg2.run 23042012 RMD160 b88273e2cc6f3e76a32080e85ddeaad4d930f407 SHA1 a4682f7d133d4efb1dff3803877a4910f0fdede6 SHA256 77a3c81af2bfe6bb91dd9533c10c230c93e3f9e00a8004b0a402c89e533f6067 DIST NVIDIA-Linux-x86_64-71.86.09-pkg2.run 8388126 RMD160 c8f5252db6f22149164156e62e4a151334adc869 SHA1 8df93e50e5fc182290838db5f762763c0582bc9c SHA256 f6d2d949baac3ea00132bb76df2a982f4fefdf2b9acfc7968668d317ed1010df DIST NVIDIA-Linux-x86_64-71.86.11-pkg2.run 8390675 RMD160 5ce5f01f70901e9fa711d1ef5d0e20bd471d9af5 SHA1 92364b06bf9aad89b6be351ed23ed316a6cd2515 SHA256 fccfd8f017820599e7a29443d65d990a2d083479c7ed980249cc0d37ca5cfba7 DIST NVIDIA-Linux-x86_64-96.43.09-pkg2.run 10940888 RMD160 9dfb6264fdd932cb8dd45a6738207593080e67a8 SHA1 6e3061afa0d8424c86a4ebd86e0505233fd4c3a6 SHA256 e5fc926178231a2c4677dc007358e79ebcbdb2ce0def4ec4cc9d5732f3000d54 @@ -69,10 +72,11 @@ EBUILD nvidia-drivers-190.18.ebuild 16256 RMD160 e45d4f48317efd98fd39550df960920 EBUILD nvidia-drivers-190.25.ebuild 16256 RMD160 5a426a81de215f634e4eac5043466147948a382a SHA1 c819e476157d2bad033f01547598d76324a9081c SHA256 e1db51a723b665e2579b5e092acdc2d08020a2ccf29125e5cfcb383f4aa88921 EBUILD nvidia-drivers-190.32.ebuild 17781 RMD160 8e774247c86eb22187fe5f3c433d0b2534bff09a SHA1 46d5b510d4f5569e41ec41e7ea51f421f0162d46 SHA256 dfa9bd331b1724cc21aaf6173b5cd8eac4dad2b4e461bd8bdb59a6d2ca060d9d EBUILD nvidia-drivers-190.36.ebuild 17781 RMD160 f211b9c7705cbe2ff151fa02181ddc22a3f49f95 SHA1 8497a01c6f8307201f26862e180a65dc1e273b8f SHA256 b2393c2dbe7620c9721a49fee20b59aa38931459c86301cbaba07c3f7494eb6a +EBUILD nvidia-drivers-190.40.ebuild 17783 RMD160 58c2c694c863de378eae17a1843f247003a88989 SHA1 ea9c3a3b3ca9a3d0f1852687a21e446d725b0a9a SHA256 f024746e382bfc25c98904f866867484f1901443a470d3dac4317b0c881b3098 EBUILD nvidia-drivers-71.86.09.ebuild 14131 RMD160 46bffecc5be879ccdfe9eb36240592229c1b74a7 SHA1 2349e50eaec717c08b1713b180c383eb9600b148 SHA256 18d3c0f8c6e99eadc69cca55e66e84b4a973dc3cb25b8bcbef8116632bf01769 EBUILD nvidia-drivers-71.86.11.ebuild 14133 RMD160 4ad12a53903f4771d5cc273a39afee39ce28396c SHA1 98bfb1d62179c274f744574108743d7cc033176e SHA256 0171d5209a497ebb6d248ec3e7752c785bb4e8ca887bf21dc66fed08967c9e06 EBUILD nvidia-drivers-96.43.09.ebuild 14459 RMD160 0e24556bce249618701bdd74400ef6abbcb08393 SHA1 1191969250b364d1e86605a7d38d4ef35bedc6d7 SHA256 19b00837cf4deef75e3bd017e5d41ae2a406b9ed66fc62e2c2d8caea2036a9d2 EBUILD nvidia-drivers-96.43.11.ebuild 14458 RMD160 07dd1b097a43d5bb921e5f3b84b2fff9e156f665 SHA1 923bbc5d066785b1a801cf660e23236f9ef41fb9 SHA256 847a28df901ae84b78a568296f14e77d516b631cae7c6a16c7e6c2c5b1fde95f EBUILD nvidia-drivers-96.43.13.ebuild 14459 RMD160 c720f2828a9e74637f2f6fbdda87b3ae40c00028 SHA1 83e8fdce0341873dd0442de65deb13dfb67d6cfa SHA256 445646f541cadb8cbfba203545895cada039ed5ef6d3ec1c080cf955a6938d7f -MISC ChangeLog 40448 RMD160 4812f56f65ecf0634add379be68abc289a968fa2 SHA1 accc5bfe2ab9367add72c7b90f3e28e9587a7df6 SHA256 247497d047bf3010ea68c853ab0be3b6b8f3b5b8ec8a0738ac2754301a01368e +MISC ChangeLog 40589 RMD160 64373bd1bf3f4419dbe6f7a457e7c1505ef1a5bb SHA1 b0dbe337eb6c3e794377502abf739ea51f74932c SHA256 76c0df656495349bb19270ab34d45ae5e6da5bd9d590087a1e611f0fadc8d46c MISC metadata.xml 608 RMD160 69923c951a3b11d3632338cd673430c1335f78cd SHA1 febe635634c122bf9fb5fd83fd486ab5a25282b3 SHA256 6b13dc244ff827b23a6f1de01eef3a7f607917573fb36b7316a1a629c78cc6bd diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-190.40.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-190.40.ebuild new file mode 100644 index 000000000000..16123ff21bfd --- /dev/null +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-190.40.ebuild @@ -0,0 +1,589 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-190.40.ebuild,v 1.1 2009/10/17 12:15:03 peper Exp $ + +EAPI="2" + +inherit eutils multilib versionator linux-mod flag-o-matic nvidia-driver + +X86_NV_PACKAGE="NVIDIA-Linux-x86-${PV}" +AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" +X86_FBSD_NV_PACKAGE="NVIDIA-FreeBSD-x86-${PV}" + +DESCRIPTION="NVIDIA X11 driver and GLX libraries" +HOMEPAGE="http://www.nvidia.com/" +SRC_URI="x86? ( ftp://download.nvidia.com/XFree86/Linux-x86/${PV}/${X86_NV_PACKAGE}-pkg0.run ) + amd64? ( ftp://download.nvidia.com/XFree86/Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}-pkg2.run ) + x86-fbsd? ( ftp://download.nvidia.com/freebsd/${PV}/${X86_FBSD_NV_PACKAGE}.tar.gz )" + +LICENSE="NVIDIA" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86 ~x86-fbsd" +IUSE="acpi custom-cflags gtk multilib kernel_linux" +RESTRICT="strip" +EMULTILIB_PKG="true" + +COMMON="<x11-base/xorg-server-1.6.99 + multilib? ( app-emulation/emul-linux-x86-xlibs ) + kernel_FreeBSD? ( !media-video/nvidia-freebsd ) + !app-emulation/emul-linux-x86-nvidia + !x11-drivers/nvidia-legacy-drivers" +DEPEND="${COMMON} + kernel_linux? ( virtual/linux-sources ) + app-admin/eselect-opengl" +RDEPEND="${COMMON} + kernel_linux? ( virtual/modutils ) + media-libs/mesa + acpi? ( sys-power/acpid )" +PDEPEND="gtk? ( media-video/nvidia-settings )" + +QA_TEXTRELS_x86="usr/lib/libXvMCNVIDIA.so.${PV} + usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} + usr/lib/opengl/nvidia/tls/libnvidia-tls.so.${PV} + usr/lib/opengl/nvidia/lib/libGL.so.${PV} + usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV} + usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib/opengl/nvidia/extensions/libglx.so + usr/lib/xorg/modules/drivers/nvidia_drv.so + usr/lib/libcuda.so.${PV} + usr/lib/libvdpau_nvidia.so.${PV}" + +QA_TEXTRELS_x86_fbsd="boot/modules/nvidia.ko + usr/lib/opengl/nvidia/lib/libGL.so.1 + usr/lib/opengl/nvidia/lib/libGLcore.so.1 + usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.1 + usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.1 + usr/lib/opengl/nvidia/extensions/libglx.so + usr/lib/xorg/modules/drivers/nvidia_drv.so" + +QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.${PV} + usr/lib32/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} + usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib32/opengl/nvidia/lib/libGL.so.${PV} + usr/lib32/opengl/nvidia/lib/libnvidia-cfg.so.${PV} + usr/lib32/libcuda.so.${PV} + usr/lib32/libvdpau_nvidia.so.${PV}" + +QA_EXECSTACK_x86="usr/lib/opengl/nvidia/lib/libGL.so.${PV} + usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib/opengl/nvidia/extensions/libglx.so" + +QA_EXECSTACK_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib32/opengl/nvidia/lib/libGL.so.${PV} + usr/lib64/xorg/modules/drivers/nvidia_drv.so + usr/lib64/libnvcompiler.so.${PV} + usr/lib64/libXvMCNVIDIA.so.${PV} + usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.${PV} + usr/lib64/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} + usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib64/opengl/nvidia/lib/libGL.so.${PV} + usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV} + usr/lib64/opengl/nvidia/extensions/libglx.so + usr/bin/nvidia-smi + usr/bin/nvidia-xconfig + usr/lib64/libXvMCNVIDIA.a:NVXVMC.o" + +QA_WX_LOAD_x86="usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib/opengl/nvidia/lib/libGL.so.${PV} + usr/lib/opengl/nvidia/extensions/libglx.so + usr/lib/libXvMCNVIDIA.a" + +QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib32/opengl/nvidia/lib/libGL.so.${PV} + usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib64/opengl/nvidia/lib/libGL.so.${PV} + usr/lib64/opengl/nvidia/extensions/libglx.so" + +QA_SONAME_amd64="usr/lib64/libnvcompiler.so.${PV}" + +# we really should have QA_DT_HASH_x86 and QA_DT_HASH_amd64 but Portage +# does not support it. bug #271416 + +QA_DT_HASH="usr/lib32/libvdpau_trace.so.${PV} + usr/lib32/libvdpau.so.${PV} + usr/lib32/libcuda.so.${PV} + usr/lib32/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} + usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib32/opengl/nvidia/lib/libGL.so.${PV} + usr/lib32/opengl/nvidia/tls/libnvidia-tls.so.${PV} + usr/lib32/libvdpau_nvidia.so.${PV} + usr/bin/nvidia-xconfig + usr/lib64/libvdpau_trace.so.${PV} + usr/lib64/libvdpau.so.${PV} + usr/lib64/libcuda.so.${PV} + usr/lib64/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} + usr/lib64/opengl/nvidia/lib/libnvidia-cfg.so.${PV} + usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib64/opengl/nvidia/lib/libGL.so.${PV} + usr/lib64/opengl/nvidia/tls/libnvidia-tls.so.${PV} + usr/lib64/opengl/nvidia/extensions/libwfb.so + usr/lib64/opengl/nvidia/extensions/libglx.so + usr/lib64/xorg/modules/drivers/nvidia_drv.so + usr/lib64/libXvMCNVIDIA.so.${PV} + usr/lib64/libvdpau_nvidia.so.${PV} + + usr/lib/libvdpau_trace.so.${PV} + usr/lib/libvdpau.so.${PV} + usr/lib/libcuda.so.${PV} + usr/lib/opengl/nvidia/no-tls/libnvidia-tls.so.${PV} + usr/lib/opengl/nvidia/lib/libnvidia-cfg.so.${PV} + usr/lib/opengl/nvidia/lib/libGLcore.so.${PV} + usr/lib/opengl/nvidia/lib/libGL.so.${PV} + usr/lib/opengl/nvidia/tls/libnvidia-tls.so.${PV} + usr/lib/opengl/nvidia/extensions/libwfb.so + usr/lib/opengl/nvidia/extensions/libglx.so + usr/lib/xorg/modules/drivers/nvidia_drv.so + usr/lib/libXvMCNVIDIA.so.${PV} + usr/lib/libvdpau_nvidia.so.${PV}" + +if use x86; then + PKG_V="-pkg0" + NV_PACKAGE="${X86_NV_PACKAGE}" +elif use amd64; then + PKG_V="-pkg2" + NV_PACKAGE="${AMD64_NV_PACKAGE}" +elif use x86-fbsd; then + PKG_V="" + NV_PACKAGE="${X86_FBSD_NV_PACKAGE}" +fi + +S="${WORKDIR}/${NV_PACKAGE}${PKG_V}" + +mtrr_check() { + ebegin "Checking for MTRR support" + linux_chkconfig_present MTRR + eend $? + + if [[ $? -ne 0 ]] ; then + eerror "Please enable MTRR support in your kernel config, found at:" + eerror + eerror " Processor type and features" + eerror " [*] MTRR (Memory Type Range Register) support" + eerror + eerror "and recompile your kernel ..." + die "MTRR support not detected!" + fi +} + +lockdep_check() { + if linux_chkconfig_present LOCKDEP; then + eerror "You've enabled LOCKDEP -- lock tracking -- in the kernel." + eerror "Unfortunately, this option exports the symbol 'lockdep_init_map' as GPL-only" + eerror "which will prevent ${P} from compiling." + eerror "Please make sure the following options have been unset:" + eerror " Kernel hacking --->" + eerror " [ ] Lock debugging: detect incorrect freeing of live locks" + eerror " [ ] Lock debugging: prove locking correctness" + eerror " [ ] Lock usage statistics" + eerror "in 'menuconfig'" + die "LOCKDEP enabled" + fi +} + +pkg_setup() { + # try to turn off distcc and ccache for people that have a problem with it + export DISTCC_DISABLE=1 + export CCACHE_DISABLE=1 + + if use amd64 && has_multilib_profile && [ "${DEFAULT_ABI}" != "amd64" ]; then + eerror "This ebuild doesn't currently support changing your default abi." + die "Unexpected \${DEFAULT_ABI} = ${DEFAULT_ABI}" + fi + + if use kernel_linux; then + linux-mod_pkg_setup + MODULE_NAMES="nvidia(video:${S}/usr/src/nv)" + BUILD_PARAMS="IGNORE_CC_MISMATCH=yes V=1 SYSSRC=${KV_DIR} \ + SYSOUT=${KV_OUT_DIR} HOST_CC=$(tc-getBUILD_CC)" + mtrr_check + lockdep_check + fi + + # On BSD userland it wants real make command + use userland_BSD && MAKE="$(get_bmake)" + + export _POSIX2_VERSION="199209" + + # Since Nvidia ships 3 different series of drivers, we need to give the user + # some kind of guidance as to what version they should install. This tries + # to point the user in the right direction but can't be perfect. check + # nvidia-driver.eclass + nvidia-driver-check-warning + + # set variables to where files are in the package structure + if use kernel_FreeBSD; then + NV_DOC="${S}/doc" + NV_EXEC="${S}/obj" + NV_SRC="${S}/src" + NV_MAN="${S}/x11/man" + elif use kernel_linux; then + NV_DOC="${S}/usr/share/doc" + NV_EXEC="${S}/usr/bin" + NV_SRC="${S}/usr/src/nv" + NV_MAN="${S}/usr/share/man/man1" + else + die "Could not determine proper NVIDIA package" + fi +} + +src_unpack() { + if use kernel_linux && kernel_is lt 2 6 7; then + echo + ewarn "Your kernel version is ${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}" + ewarn "This is not officially supported for ${P}. It is likely you" + ewarn "will not be able to compile or use the kernel module." + ewarn "It is recommended that you upgrade your kernel to a version >= 2.6.7" + echo + ewarn "DO NOT file bug reports for kernel versions less than 2.6.7 as they will be ignored." + fi + + if ! use x86-fbsd; then + mkdir "${S}" + cd "${S}" + unpack_makeself + else + unpack ${A} + fi +} + +src_prepare() { + # Please add a brief description for every added patch + cd "${S}" + use x86-fbsd && cd doc + + # Use the correct defines to make gtkglext build work + epatch "${FILESDIR}"/NVIDIA_glx-defines.patch + # Use some more sensible gl headers and make way for new glext.h + epatch "${FILESDIR}"/NVIDIA_glx-glheader.patch + + if use kernel_linux; then + # Quiet down warnings the user does not need to see + sed -i \ + -e 's:-Wpointer-arith::g' \ + -e 's:-Wsign-compare::g' \ + "${NV_SRC}"/Makefile.kbuild + + # If you set this then it's your own fault when stuff breaks :) + use custom-cflags && sed -i "s:-O:${CFLAGS}:" "${NV_SRC}"/Makefile.* + + # If greater than 2.6.5 use M= instead of SUBDIR= + convert_to_m "${NV_SRC}"/Makefile.kbuild + fi +} + +src_compile() { + # This is already the default on Linux, as there's no toplevel Makefile, but + # on FreeBSD there's one and triggers the kernel module build, as we install + # it by itself, pass this. + + cd "${NV_SRC}" + if use x86-fbsd; then + MAKE="$(get_bmake)" CFLAGS="-Wno-sign-compare" emake CC="$(tc-getCC)" \ + LD="$(tc-getLD)" LDFLAGS="$(raw-ldflags)" || die + elif use kernel_linux; then + linux-mod_src_compile + fi +} + +src_install() { + local MLTEST=$(type dyn_unpack) + + cd "${S}" + + if use kernel_linux; then + linux-mod_src_install + + VIDEOGROUP="$(egetent group video | cut -d ':' -f 3)" + if [ -z "$VIDEOGROUP" ]; then + eerror "Failed to determine the video group gid." + die "Failed to determine the video group gid." + fi + + # Add the aliases + [ -f "${FILESDIR}/nvidia" ] || die "nvidia missing in FILESDIR" + sed -e 's:PACKAGE:'${PF}':g' \ + -e 's:VIDEOGID:'${VIDEOGROUP}':' "${FILESDIR}"/nvidia-169.07 > \ + "${WORKDIR}"/nvidia + insinto /etc/modprobe.d + newins "${WORKDIR}"/nvidia nvidia.conf || die + elif use x86-fbsd; then + insinto /boot/modules + doins "${WORKDIR}/${NV_PACKAGE}/src/nvidia.kld" || die + + exeinto /boot/modules + doexe "${WORKDIR}/${NV_PACKAGE}/src/nvidia.ko" || die + fi + + if has_multilib_profile ; then + local OABI=${ABI} + for ABI in $(get_install_abis) ; do + src_install-libs + done + ABI=${OABI} + unset OABI + else + src_install-libs + fi + + is_final_abi || return 0 + + # Documentation + dodoc "${NV_DOC}"/XF86Config.sample + dohtml "${NV_DOC}"/html/* + if use x86-fbsd; then + dodoc "${NV_DOC}/README" + else + # Docs + newdoc "${NV_DOC}/README.txt" README + dodoc "${NV_DOC}/NVIDIA_Changelog" + fi + + if use kernel_linux; then + doman "${NV_MAN}/nvidia-smi.1.gz" + fi + doman "${NV_MAN}/nvidia-xconfig.1.gz" + + # Helper Apps + dobin ${NV_EXEC}/nvidia-xconfig || die + dobin ${NV_EXEC}/nvidia-bug-report.sh || die + if use kernel_linux; then + dobin ${NV_EXEC}/nvidia-smi || die + fi +} + +# Install nvidia library: +# the first parameter is the place where to install it +# the second parameter is the base name of the library +# the third parameter is the provided soversion +donvidia() { + dodir $1 + exeinto $1 + + libname=$(basename $2) + + # libnvidia-cfg.so is no longer supplied in lib32; step over it gracefully + if [ -e $2.$3 ] ; then + doexe $2.$3 + dosym ${libname}.$3 $1/${libname} + [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1 + fi +} + +src_install-libs() { + local pkglibdir=lib + local inslibdir=$(get_libdir) + + if [[ ${#} -eq 2 ]] ; then + pkglibdir=${1} + inslibdir=${2} + elif has_multilib_profile && [[ ${ABI} == "x86" ]] ; then + pkglibdir=lib32 + fi + + local usrpkglibdir=usr/${pkglibdir} + local libdir=usr/X11R6/${pkglibdir} + local drvdir=${libdir}/modules/drivers + local extdir=${libdir}/modules/extensions + local incdir=usr/include/GL + local sover=${PV} + local NV_ROOT="/usr/${inslibdir}/opengl/nvidia" + local NO_TLS_ROOT="${NV_ROOT}/no-tls" + local TLS_ROOT="${NV_ROOT}/tls" + local X11_LIB_DIR="/usr/${inslibdir}/xorg" + + if use x86-fbsd; then + # on FreeBSD everything is on obj/ + pkglibdir=obj + usrpkglibdir=obj + x11pkglibdir=obj + drvdir=obj + extdir=obj + + # don't ask me why the headers are there.. glxext.h is missing + incdir=doc + + # on FreeBSD it has just .1 suffix + sover=1 + fi + + # The GLX libraries + donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGL.so ${sover} + donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libGLcore.so ${sover} + + donvidia ${NV_ROOT}/lib ${usrpkglibdir}/libnvidia-cfg.so ${sover} + + dodir ${NO_TLS_ROOT} + donvidia ${NO_TLS_ROOT} ${usrpkglibdir}/libnvidia-tls.so ${sover} + + if ! use x86-fbsd; then + donvidia ${TLS_ROOT} ${usrpkglibdir}/tls/libnvidia-tls.so ${sover} + fi + + if want_tls ; then + dosym ../tls/libnvidia-tls.so ${NV_ROOT}/lib + dosym ../tls/libnvidia-tls.so.1 ${NV_ROOT}/lib + dosym ../tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib + else + dosym ../no-tls/libnvidia-tls.so ${NV_ROOT}/lib + dosym ../no-tls/libnvidia-tls.so.1 ${NV_ROOT}/lib + dosym ../no-tls/libnvidia-tls.so.${sover} ${NV_ROOT}/lib + fi + + if ! use x86-fbsd; then + # Install the .la file for libtool, to prevent e.g. bug #176423 + [ -f "${FILESDIR}/libGL.la-r2" ] || die "libGL.la-r2 missing in FILESDIR" + local ver1=$(get_version_component_range 1) + local ver2=$(get_version_component_range 2) + local ver3=$(get_version_component_range 3) + sed -e "s:\${PV}:${PV}:" \ + -e "s:\${ver1}:${ver1}:" \ + -e "s:\${ver2}:${ver2}:" \ + -e "s:\${ver3}:${ver3}:" \ + -e "s:\${libdir}:${inslibdir}:" \ + "${FILESDIR}"/libGL.la-r2 > "${D}"/${NV_ROOT}/lib/libGL.la + fi + + exeinto ${X11_LIB_DIR}/modules/drivers + + [[ -f ${drvdir}/nvidia_drv.so ]] && \ + doexe ${drvdir}/nvidia_drv.so + + insinto /usr/${inslibdir} + [[ -f ${libdir}/libXvMCNVIDIA.a ]] && \ + doins ${libdir}/libXvMCNVIDIA.a + exeinto /usr/${inslibdir} + # fix Bug 131315 + [[ -f ${libdir}/libXvMCNVIDIA.so.${PV} ]] && \ + doexe ${libdir}/libXvMCNVIDIA.so.${PV} && \ + dosym libXvMCNVIDIA.so.${PV} \ + /usr/${inslibdir}/libXvMCNVIDIA.so + + exeinto ${NV_ROOT}/extensions + [[ -f ${libdir}/modules/libnvidia-wfb.so.${sover} ]] && \ + newexe ${libdir}/modules/libnvidia-wfb.so.${sover} libwfb.so + [[ -f ${extdir}/libglx.so.${sover} ]] && \ + newexe ${extdir}/libglx.so.${sover} libglx.so + + # Includes + insinto ${NV_ROOT}/include + doins ${incdir}/*.h + + #cuda + if [[ -f usr/include/cuda/cuda.h ]]; then + dodir /usr/include/cuda + insinto /usr/include/cuda + doins usr/include/cuda/*.h + + if [[ -f usr/${pkglibdir}/libcuda.so.${PV} ]]; then + dolib.so usr/${pkglibdir}/libcuda.so.${PV} + dosym libcuda.so.${PV} /usr/${inslibdir}/libcuda.so.1 + dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so + fi + fi + + #vdpau + if [[ -f usr/include/vdpau/vdpau.h ]]; then + dodir /usr/include/vdpau + insinto /usr/include/vdpau + doins usr/include/vdpau/*.h + + for vdpaulib in vdpau_nvidia vdpau vdpau_trace; do + dolib.so usr/${pkglibdir}/lib${vdpaulib}.so.${PV} + dosym lib${vdpaulib}.so.${PV} /usr/${inslibdir}/lib${vdpaulib}.so.1 + dosym lib${vdpaulib}.so.1 /usr/${inslibdir}/lib${vdpaulib}.so + done + fi + + # OpenCL + # NOTE: This isn't currently available in the publicly released drivers. + if [[ -f usr/${pkglibdir}/libOpenCL.so.1.0.0 ]]; then + dodir /usr/include/CL + insinto /usr/include/CL + doins usr/include/CL/*.h + + dolib.so usr/${pkglibdir}/libnvcompiler.so.${PV} + dosym libnvcompiler.so.${PV} /usr/${inslibdir}/libnvcompiler.so.1 + dosym libnvcompiler.so.1 /usr/${inslibdir}/libnvcompiler.so + + dolib.so usr/${pkglibdir}/libOpenCL.so.1.0.0 + dosym libOpenCL.so.1.0.0 /usr/${inslibdir}/libOpenCL.so.1 + dosym libOpenCL.so.1 /usr/${inslibdir}/libOpenCL.so + fi +} + +pkg_preinst() { + + # Clean the dynamic 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() { + if use kernel_linux; then + linux-mod_pkg_postinst + fi + + # Switch to the nvidia implementation + eselect opengl set --use-old nvidia + + echo + elog "You must be in the video group to use the NVIDIA device" + elog "For more info, read the docs at" + elog "http://www.gentoo.org/doc/en/nvidia-guide.xml#doc_chap3_sect6" + elog + + elog "This ebuild installs a kernel module and X driver. Both must" + elog "match explicitly in their version. This means, if you restart" + elog "X, you most modprobe -r nvidia before starting it back up" + elog + + elog "To use the NVIDIA GLX, run \"eselect opengl set nvidia\"" + elog + elog "nVidia has requested that any bug reports submitted have the" + elog "output of /usr/bin/nvidia-bug-report.sh included." + elog + elog "To work with compiz, you must enable the AddARGBGLXVisuals option." + elog + elog "If you are having resolution problems, try disabling DynamicTwinView." + echo +} + +want_tls() { + # For uclibc or anything non glibc, return false + has_version sys-libs/glibc || return 1 + + # Old versions of glibc were lt/no-tls only + has_version '<sys-libs/glibc-2.3.2' && return 1 + + if use x86 ; then + case ${CHOST/-*} in + i486|i586|i686) ;; + *) return 1 ;; + esac + fi + + # 2.3.5 turned off tls for linuxthreads glibc on i486 and i586 + if use x86 && has_version '>=sys-libs/glibc-2.3.5' ; then + case ${CHOST/-*} in + i486|i586) return 1 ;; + esac + fi + + # These versions built linuxthreads version to support tls, too + has_version '>=sys-libs/glibc-2.3.4.20040619-r2' && return 0 + + return 1 +} + +pkg_postrm() { + if use kernel_linux; then + linux-mod_pkg_postrm + fi + eselect opengl set --use-old xorg-x11 +} |