summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2011-12-07 14:09:27 +0000
committerJeroen Roovers <jer@gentoo.org>2011-12-07 14:09:27 +0000
commitfe34b19f6c5285084b6b92248d5d66f296f8ed05 (patch)
tree4efbb42770b51767bfe2b70649bb5fa9205aa7bf /x11-drivers
parentOld. (diff)
downloadhistorical-fe34b19f6c5285084b6b92248d5d66f296f8ed05.tar.gz
historical-fe34b19f6c5285084b6b92248d5d66f296f8ed05.tar.bz2
historical-fe34b19f6c5285084b6b92248d5d66f296f8ed05.zip
Old.
Package-Manager: portage-2.2.0_alpha79/cvs/Linux x86_64
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/ChangeLog6
-rw-r--r--x11-drivers/nvidia-drivers/Manifest20
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-173.14.30.ebuild497
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-96.43.19.ebuild514
4 files changed, 16 insertions, 1021 deletions
diff --git a/x11-drivers/nvidia-drivers/ChangeLog b/x11-drivers/nvidia-drivers/ChangeLog
index d74af95dedc6..b882a2f3aef8 100644
--- a/x11-drivers/nvidia-drivers/ChangeLog
+++ b/x11-drivers/nvidia-drivers/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-drivers/nvidia-drivers
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.311 2011/11/30 16:59:57 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/ChangeLog,v 1.312 2011/12/07 14:09:27 jer Exp $
+
+ 07 Dec 2011; Jeroen Roovers <jer@gentoo.org> -nvidia-drivers-96.43.19.ebuild,
+ -nvidia-drivers-173.14.30.ebuild:
+ Old.
*nvidia-drivers-290.10 (30 Nov 2011)
*nvidia-drivers-275.36 (30 Nov 2011)
diff --git a/x11-drivers/nvidia-drivers/Manifest b/x11-drivers/nvidia-drivers/Manifest
index 29c1b3c75c46..a98e1803ae33 100644
--- a/x11-drivers/nvidia-drivers/Manifest
+++ b/x11-drivers/nvidia-drivers/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 09nvidia 61 RMD160 b69c3282ba6195112e312fe34bdcb12544aef8ca SHA1 05dd043f66f53409dfe511636d92a339edb4c765 SHA256 14702d6726cc9f0ad832a3cc90059999eb956f9e3a35397cb63cfa6347b33e39
AUX 195.30-unified-arch.patch 1525 RMD160 9872c270b4bb3d3010af3f2b83798631562c8d8f SHA1 06330376e9a25e3317a4bfe12f74af17e56f3448 SHA256 b6224e213820c698315a8645204d992b779f31e8c45c025e740bc189dc1f9bae
AUX 256.35-unified-arch.patch 1380 RMD160 2612cad105f442d4232b99e3054124e8037860bb SHA1 d82433c0b3520c87e05f1013a59b243ec65ebe97 SHA256 5e84bb51e0f9b3ceba270d53ad2a739dc534861df9acd6ab6852670f5a1357d7
@@ -13,7 +16,6 @@ AUX nvidia-169.07 639 RMD160 8baddb6fd1bf7f0e2688870a78e8ace051d62e3f SHA1 b3048
AUX nvidia-drivers-173.14.30-2.6.39.patch 599 RMD160 9dd06b0036a2ceed8b5a4874b584d32ac25c17f5 SHA1 d5dcbc8edfb05b79ea1f73068b87cd9068f8cf06 SHA256 f1528152fb786d74701bd5d99ccbabad0b1ac791958d83c17bf783484dda9474
AUX nvidia-drivers-190.53-2.6.33.patch 2893 RMD160 29f6cf29909828f8d22504dfcb43b23aeeff78dd SHA1 412f8a2b208e8af886891985fcabf8623c9943c3 SHA256 68f5cdf4489fb6bc480319e4bda6e6481beb189cf37920b939b8f7bbf77aed1f
AUX nvidia-drivers-260.19.44-2.6.39.patch 591 RMD160 8e53d800b86c380da9e9c978957a4d1b7f749fe4 SHA1 39be99b92fb16a71347fb8fb39301241550a1958 SHA256 dc9478bb4ff12d820f82bb13a8d7f956456ea97217ba89e6619f1c8d72127be3
-DIST NVIDIA-FreeBSD-x86-173.14.30.tar.gz 17992540 RMD160 9f064bb71e2cb65ed386c7e40d7ae55c10548837 SHA1 089448c56ec85334917119712a241d463045ffa5 SHA256 9e59d02ffadb4ea8dd57e07f60c1e1c0b7267c86ec3fc22bd1a86a884a2bb0a3
DIST NVIDIA-FreeBSD-x86-173.14.31.tar.gz 17991684 RMD160 b7171b05847400a1f7a008bc9b46ea061a9f765d SHA1 d7603732598990c3c22e39643e7021da5a57a57c SHA256 98699bc8dc1dad86cebc2ed067b4fc5cd37b8540e897bb218f38ac80c4b4d875
DIST NVIDIA-FreeBSD-x86-275.09.07.tar.gz 30304023 RMD160 aaa3ad3339fa1450612d8f7995f4407a976f1cc9 SHA1 8ff6558a019aa28bb894db1275a9a96490cd4fd4 SHA256 d5d119c2f066539da0f2d1926193f6bc2bfbf2a1dcdff77322a23b42c5df91d9
DIST NVIDIA-FreeBSD-x86-275.28.tar.gz 30478616 RMD160 123a2e8cb3b783ddd6fa055d04e9a791ca90c165 SHA1 141ea0ad39c7d1ed8f768b270015c9e20cb092ee SHA256 5c11f7c1792476e8ac9b2e3a6f0bac4b9eff206972f0f4c1566fbcc4c7da918e
@@ -21,9 +23,7 @@ DIST NVIDIA-FreeBSD-x86-275.36.tar.gz 30477916 RMD160 c02c1127a34103e1082175b890
DIST NVIDIA-FreeBSD-x86-285.05.09.tar.gz 30697710 RMD160 e08981374a67a8e9e9bff42d5cbb5f5ecef0568c SHA1 d3e4cb6cac7af0392d0f294cf67b029456a48100 SHA256 d3ad51145cd57c70678ee659112a0973187b1b02e3062addadd0fe094b3c46fb
DIST NVIDIA-FreeBSD-x86-290.06.tar.gz 32025027 RMD160 0ed1f6413d3b93b524a7160356d89640af18bae4 SHA1 69f389da4afc0fe0053fade5002b479e1e1503f2 SHA256 30356d8d25b2dd97d76f851632bef3f550631e31276358870dd22f987985ce0c
DIST NVIDIA-FreeBSD-x86-290.10.tar.gz 32042469 RMD160 712cd816ab24319d03ae475af0ac2a56518ef58b SHA1 4fe79060b9e475e4a74b7b17e95410bad1f33427 SHA256 f5accbdac0b231a8073f76c1d1d8ace7cb98ebe167888c31183a2752a669ee92
-DIST NVIDIA-FreeBSD-x86-96.43.19.tar.gz 13352481 RMD160 376311eb6708f4b7f20b6326bb88d9a33e7b3d37 SHA1 72555f3da8a796e491eaa67192334ccefcdd2256 SHA256 b5dce181cc654a729ba06dd528a180d14a792b0328fcfbf86bb0f819285c0dd5
DIST NVIDIA-FreeBSD-x86-96.43.20.tar.gz 14060884 RMD160 2323ef0e85c4383558ea61ff4906b28f85a5952c SHA1 1d7397eaf1e42866595144af550a1df84369fd80 SHA256 e75fce272e72644d53e6ad3c0957fe173735a4b621726ce227ba8ecf9bd9c5cf
-DIST NVIDIA-Linux-x86-173.14.30-pkg0.run 13407793 RMD160 8c0acf5738db9aeac079a128083437aec859878b SHA1 924a04cdcc30df27dca59f7fd20bfc371622c49b SHA256 ecb2ff94ca1b2a7498bc1fc37383194cfafa4198644308428ad7c09f2273f554
DIST NVIDIA-Linux-x86-173.14.31-pkg0.run 13407481 RMD160 87f5bfb9aee83c3edb41894df540840a9eec343d SHA1 470e19fdfa75f18522745de285e256808fe14d48 SHA256 e855a62f16a9d0eff1bf470a8fcedd48cd1b718e969ad5ebe89a557d039d1924
DIST NVIDIA-Linux-x86-275.09.07.run 30930605 RMD160 3543dd353b488f501899ce37ea034eb0dd1a98c7 SHA1 068b007bb08603689ada3ebb342dc87849f50b7c SHA256 27d1b2073c11bd56e423ed80bd22773f1f282c39ab3b76773144cfa680a1ff0c
DIST NVIDIA-Linux-x86-275.28.run 31102995 RMD160 d70becaa6fe2b58948519fc65c890edaa4559a70 SHA1 d747febac267a7dd39832af3dc579209626b9a74 SHA256 ba4ff7a7a3a5d4242621f9a104f64d4ab573619fcad7adf4657f82ab417553ea
@@ -31,9 +31,7 @@ DIST NVIDIA-Linux-x86-275.36.run 31117123 RMD160 f92aa5c49e09d3b74baab7b619b846b
DIST NVIDIA-Linux-x86-285.05.09.run 33592492 RMD160 e5fb559c3eb6f928649a94bfd73d80d0b1561dd3 SHA1 e42112d15ba217fc1c16afbae45f0493f795966c SHA256 ce03fa99b62081b52bd5dae3594ac5942413ed530cda3d76a82f4ab0afd36f96
DIST NVIDIA-Linux-x86-290.06.run 34665645 RMD160 5075ce544cfeab03ef2ea8daf62df9981c4b15f2 SHA1 8f3e3e6a61470679f17619d688094cc4adaf9048 SHA256 bf2529e29d39136212c586ddc809661a32fef56e6342682f191a04f0ce0cd5bb
DIST NVIDIA-Linux-x86-290.10.run 34691272 RMD160 ddcee14e7b474a646a707fd966cc1d223d3177eb SHA1 dfc095db2bdca672e6cfe7878a75c5d25d8c54a9 SHA256 99be8f53aa1f777445e5a4cac27acd7d85990db712b5c29caac865145fc5adaa
-DIST NVIDIA-Linux-x86-96.43.19-pkg0.run 9721273 RMD160 ca40f0572e36479bfdd4d921be45da7055692762 SHA1 dc5f0d5b068756991a7d7e50e17bfcf09684702f SHA256 e25810e809ea56ab33ebb3e79e885eb19784dcce2bb0102c0cb5daa372aaf1c8
DIST NVIDIA-Linux-x86-96.43.20-pkg0.run 10323541 RMD160 8e1a56ea7992018a405214aaa857cd932d7c3274 SHA1 714632bf918eaae50d46e9a4a5252ebbe9e6cfb1 SHA256 bc778062cf745ee4916de77a702f702312d33eeb3b6f379b63e4366fa5197517
-DIST NVIDIA-Linux-x86_64-173.14.30-pkg2.run 18967055 RMD160 167137380c8f75530498c00302c80cb15adb4adf SHA1 93f10be314021adebcc5c0e675e0d83653adceb3 SHA256 aebf3655337d813d4a0cd779ac6b1fa5d3fee26b00188bad66914cd3f876a556
DIST NVIDIA-Linux-x86_64-173.14.31-pkg2.run 18967067 RMD160 729f5e12e4c7ed26f9445ec2981aec3b9f5f83e5 SHA1 155f1951897a274a0c693912015e049d0d4cbec1 SHA256 c56cfe43c4fa95102d099e4f1c4e75e58b57d73b4b36a858d54a2a339aad56d9
DIST NVIDIA-Linux-x86_64-275.09.07.run 51646025 RMD160 ea9bd2a3e960234a9a9e69a6ada31d2bb5939eff SHA1 b40418b7cd17694873007c547dac36b7078f76ab SHA256 747c09b0a0a8d60e1b5fee49fb1ea07ee5812f8e85a87b2403011af6de58164d
DIST NVIDIA-Linux-x86_64-275.28.run 51855215 RMD160 9f4d65c0a88bac60dd2389a53ae95d8b4b9365da SHA1 957a5fd0f4d43ba8cee72d765e9076c43fbc0be1 SHA256 fc1dfded42d21b08f40fa7f50589c6c0c4922cc0d30af71bf721ab8682b00648
@@ -41,9 +39,7 @@ DIST NVIDIA-Linux-x86_64-275.36.run 51854948 RMD160 401e3bd9ca6cc1af35da71dfba06
DIST NVIDIA-Linux-x86_64-285.05.09.run 56674677 RMD160 e178cc5109bbf254c80eb123acd6276bf34d7790 SHA1 26c99d119f39a9201943a4f44cdc110988ec2349 SHA256 7159a1f7e898b50dd49ea2273ac6facb870546ad5496bf70c6fbe1642d2c4970
DIST NVIDIA-Linux-x86_64-290.06.run 58311386 RMD160 370028cdd5d7a5573935ecf88812cb9db4b823c1 SHA1 1837772ccd4b6e3499dd703b76d09267e33b41ae SHA256 48df72cd225043ebecbe1a6a9a575d692e0a9fa0b0bb65c037800d83ba54f3ec
DIST NVIDIA-Linux-x86_64-290.10.run 58334192 RMD160 a850a83643d507ff84be76691188a5ecd870c4d8 SHA1 f3e8b43248d9d167b1c3f67a8cba9c1f2c53e583 SHA256 34a2ab07f4ae7afdeb2c8415f3f37c1099e6690eb25f3dbef92eca771f7ce4cd
-DIST NVIDIA-Linux-x86_64-96.43.19-pkg2.run 13829870 RMD160 c9b2edd825d30f8deea101d5dfd51f86dbf09ffe SHA1 f3cdb5d95c5bb9057d09331395e72fe8d5006f17 SHA256 81939f9ee45255cc137719a10b8947bc90cf5697da9e27991cee5a7061d5de19
DIST NVIDIA-Linux-x86_64-96.43.20-pkg2.run 14572507 RMD160 51d5838d1c0e63a1abf479d155e4df3a854d98f6 SHA1 b5ab8b3e9f06418720971187d53837db90af5f8a SHA256 562107a262e250b836966e29851628f6162ee2857d53252221c780d9b201de18
-EBUILD nvidia-drivers-173.14.30.ebuild 15341 RMD160 d11c47b7571d5e93da0365c064cb1bd399eadc49 SHA1 f92c475e600d7d4e68debe2425cb026b505a7264 SHA256 590f2b2d8fe546c2183704b761becc718ec294e05d6b91db66a89377bf4cf9c3
EBUILD nvidia-drivers-173.14.31.ebuild 15349 RMD160 4b6bb92018d892a9fa1e8cad2131461cf427456f SHA1 7f43732a54f0e735e9bedb07a842edd6020c27a5 SHA256 bf8cc37e2f1c88d459f98cbe8d0241dc96ef1e8013ae79625f744208ab5a0e23
EBUILD nvidia-drivers-275.09.07.ebuild 16568 RMD160 376521daaf880dfe86d13dee9cba5fdf219f9656 SHA1 902ebf6d52c757e79ebbdb4ddb5b88884a93186b SHA256 fb216db92851c9c78111d48078a80cd5c58afc23d64289efc6215d95550f6249
EBUILD nvidia-drivers-275.28.ebuild 16579 RMD160 1ae3cf165bf7c001e11755ccc778e531474a0b17 SHA1 750dd92aa3017a4937a02624200c217c6c3ff9eb SHA256 22548bb964b0228a15a55df830db881cb53433bb9256851e37618a294bda5ee2
@@ -51,7 +47,13 @@ EBUILD nvidia-drivers-275.36.ebuild 17107 RMD160 a738eb5ef89633fa1b5b24699c0f9c0
EBUILD nvidia-drivers-285.05.09-r1.ebuild 17329 RMD160 d1f66a9c3cd35a467985fca3f99e7d0a224d3360 SHA1 882c5e3a9be547280e99ed14fefaa4b05d0d5aff SHA256 618f91d34a8d361c44f803ee0ba0fab898d4b46a14f2f1e717ceb6de04cfa42b
EBUILD nvidia-drivers-290.06.ebuild 17095 RMD160 d1e0e22f51104a58c4e6117a461c03c505a4a375 SHA1 7fd677034dcb8bd596b6dcf8d12cbc493ae36894 SHA256 b2e364f68fa5c01c25925f7d8ce27d8629449ce4a7d2c505862be1ec47075acb
EBUILD nvidia-drivers-290.10.ebuild 17107 RMD160 149cbe4292a483c6fba63b5d74926f0086b2b9bb SHA1 1beba9765ad341e0878b2314b10e1ab84252c952 SHA256 b433b7edea82e87a6b3a69f9dd718f3e9615e6620a03c63df6b075e9143a3ef3
-EBUILD nvidia-drivers-96.43.19.ebuild 15643 RMD160 191d8bc638f28a713ad4aee08808ac9b41fbe6c5 SHA1 9dbee7e6497f06235325ba25cb245ba971a9bd53 SHA256 c05c182e870bd8b0363259edcf08d6c464696fb6221e9aeb4680664d171e1f8e
EBUILD nvidia-drivers-96.43.20.ebuild 15587 RMD160 f208eda8038ec2e43e5d3e1cc74e797c5687a0f4 SHA1 a10a5a94f834147b6e12fda79f96f4fefd9532d8 SHA256 aa905ebff4b7d11f8ca650970c26305b4cedaacb0a0e54d95e986fc4274c56e4
-MISC ChangeLog 66679 RMD160 454ad456c5683bded81bec22a77ee559100da88a SHA1 7ddbbc58b2f67a39dd0086433e0b6d112f5bccbd SHA256 302738ab8b65b008f1d2ea2f9fa277550039893b14df383193baf806fea409b9
+MISC ChangeLog 66800 RMD160 4c3155e4e5e3f4933fe100067ff04a29d479af0c SHA1 bdf4f9fbe8b9ba6b69378d9c55773c5d8d69c67a SHA256 94587406551b70f5da6799837bf44f66b51db477d81e173217229fdd89242fb4
MISC metadata.xml 528 RMD160 9724ce985619926e8c0d1a53bccd927ce9bbf9fc SHA1 3ced88c2bfed6fee774fae8ddf3b71ceb8cd0b8e SHA256 3651e308046ad88e101ed9d59fd0cd1adc82bfcc25f4f70738936466174e6264
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iEYEARECAAYFAk7fc5wACgkQVWmRsqeSphPLKwCdHXME8QsFIJ6BAnq6kDvpaQrv
+yREAnReIcGhllgBzHHvopkFLbmiUbgOB
+=mV/B
+-----END PGP SIGNATURE-----
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-173.14.30.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-173.14.30.ebuild
deleted file mode 100644
index 2a33f28a109b..000000000000
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-173.14.30.ebuild
+++ /dev/null
@@ -1,497 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-173.14.30.ebuild,v 1.4 2011/07/31 13:05:31 maekke 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
- kernel_linux? ( >=sys-libs/glibc-2.6.1 )
- multilib? ( app-emulation/emul-linux-x86-opengl )
- >=app-admin/eselect-opengl-1.0.9"
-DEPEND="${COMMON}
- kernel_linux? ( virtual/linux-sources )"
-RDEPEND="${COMMON}
- acpi? ( sys-power/acpid )"
-PDEPEND="gtk? ( media-video/nvidia-settings )"
-
-QA_TEXTRELS_x86="usr/lib/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib/xorg/modules/drivers/nvidia_drv.so
- usr/lib/libcuda.so.${PV}
- usr/lib/libnvidia-cfg.so.${PV}
- usr/lib/libvdpau_nvidia.so.${PV}
- usr/lib/libXvMCNVIDIA.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/libnvidia-cfg.so.1
- usr/lib/opengl/nvidia/extensions/libglx.so.1
- usr/lib/xorg/modules/drivers/nvidia_drv.so"
-
-QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGL.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.${PV}
- usr/lib/xorg/modules/drivers/nvidia_drv.so
- usr/lib/libXvMCNVIDIA.a:NVXVMC.o"
-
-QA_EXECSTACK_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/libnvcompiler.so.${PV}
- usr/lib64/libXvMCNVIDIA.so.${PV}
- usr/lib64/libXvMCNVIDIA.a:NVXVMC.o
- usr/lib64/libnvidia-cfg.so.${PV}
- usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib64/xorg/modules/drivers/nvidia_drv.so
- usr/bin/nvidia-smi
- usr/bin/nvidia-xconfig"
-
-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.${PV}
- usr/lib/libXvMCNVIDIA.a"
-
-QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}"
-
-QA_SONAME_amd64="usr/lib64/libnvcompiler.so.${PV}"
-
-QA_DT_HASH_amd64="usr/lib32/libcuda.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib32/libvdpau_nvidia.so.${PV}
- usr/lib64/libXvMCNVIDIA.so.${PV}
- usr/lib64/libcuda.so.${PV}
- usr/lib64/libnvidia-cfg.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib64/xorg/modules/drivers/nvidia_drv.so
- usr/lib64/libvdpau_nvidia.so.${PV}
- usr/bin/nvidia-smi
- usr/bin/nvidia-xconfig"
-
-QA_DT_HASH_x86="usr/lib/libcuda.so.${PV}
- usr/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/lib/libnvidia-tls.so.${PV}
- usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib/xorg/modules/drivers/nvidia_drv.so
- usr/lib/libXvMCNVIDIA.so.${PV}
- usr/lib/libvdpau_nvidia.so.${PV}
- usr/bin/nvidia-smi
- usr/bin/nvidia-xconfig"
-
-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} 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_LIB="${S}/obj"
- NV_SRC="${S}/src"
- NV_MAN="${S}/x11/man"
- NV_X11="${S}/obj"
- NV_X11_DRV="${NV_X11}"
- NV_X11_EXT="${NV_X11}"
- NV_SOVER=1
- elif use kernel_linux; then
- NV_DOC="${S}/usr/share/doc"
- NV_EXEC="${S}/usr/bin"
- NV_LIB="${S}/usr/lib"
- NV_SRC="${S}/usr/src/nv"
- NV_MAN="${S}/usr/share/man/man1"
- NV_X11="${S}/usr/X11R6/lib"
- NV_X11_DRV="${NV_X11}/modules/drivers"
- NV_X11_EXT="${NV_X11}/modules/extensions"
- NV_SOVER=${PV}
- 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
- 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() {
- 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-169.07" ] || 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
-
- # NVIDIA kernel <-> userspace driver config lib
- dolib.so ${NV_LIB}/libnvidia-cfg.so.${NV_SOVER} || \
- die "failed to install libnvidia-cfg"
-
- # Xorg DDX driver
- insinto /usr/$(get_libdir)/xorg/modules/drivers
- doins ${NV_X11_DRV}/nvidia_drv.so || die "failed to install nvidia_drv.so"
-
- # Xorg GLX driver
- insinto /usr/$(get_libdir)/opengl/nvidia/extensions
- doins ${NV_X11_EXT}/libglx.so.${NV_SOVER} || \
- die "failed to install libglx.so"
- dosym /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so.${NV_SOVER} \
- /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so || \
- die "failed to create libglx.so symlink"
-
- # XvMC driver
- dolib.a ${NV_X11}/libXvMCNVIDIA.a || \
- die "failed to install libXvMCNVIDIA.so"
- dolib.so ${NV_X11}/libXvMCNVIDIA.so.${NV_SOVER} || \
- die "failed to install libXvMCNVIDIA.so"
- dosym libXvMCNVIDIA.so.${NV_SOVER} /usr/$(get_libdir)/libXvMCNVIDIA.so || \
- die "failed to create libXvMCNVIDIA.so symlink"
-
- # CUDA headers (driver to come)
- if use kernel_linux && [[ -d ${S}/usr/include/cuda ]]; then
- dodir /usr/include/cuda
- insinto /usr/include/cuda
- doins usr/include/cuda/*.h || die "failed to install cuda headers"
- fi
-
- # OpenCL headers (driver to come)
- if [[ -d ${S}/usr/include/CL ]]; then
- dodir /usr/include/CL
- insinto /usr/include/CL
- doins usr/include/CL/*.h || die "failed to install OpenCL headers"
- fi
-
- # Documentation
- dodoc ${NV_DOC}/XF86Config.sample
- dohtml ${NV_DOC}/html/*
- if use x86-fbsd; then
- dodoc "${NV_DOC}/README"
- doman "${NV_MAN}/nvidia-xconfig.1"
- else
- # Docs
- newdoc "${NV_DOC}/README.txt" README
- dodoc "${NV_DOC}/NVIDIA_Changelog"
-# doman "${NV_MAN}/nvidia-smi.1.gz"
- doman "${NV_MAN}/nvidia-xconfig.1.gz"
- fi
-
- # 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
-
- 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 || die "failed to iterate through all ABIs"
-}
-
-# 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)
-
- doexe $2.$3 || die "failed to install $2"
- dosym ${libname}.$3 $1/${libname} || die "failed to symlink $2"
- [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
-}
-
-src_install-libs() {
- local inslibdir=$(get_libdir)
- local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
- local libdir= sover=
-
- if use kernel_linux; then
- if has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
- libdir=usr/lib32
- else
- libdir=usr/lib
- fi
- sover=${PV}
- else
- libdir=obj
- # on FreeBSD it has just .1 suffix
- sover=1
- fi
-
- # The GLX libraries
- donvidia ${NV_ROOT}/lib ${libdir}/libGL.so ${sover}
- donvidia ${NV_ROOT}/lib ${libdir}/libGLcore.so ${sover}
- if use x86-fbsd; then
- donvidia ${NV_ROOT}/lib ${libdir}/libnvidia-tls.so ${sover}
- else
- donvidia ${NV_ROOT}/lib ${libdir}/tls/libnvidia-tls.so ${sover}
- fi
-
- #cuda
- if [[ -f ${libdir}/libcuda.so.${sover} ]]; then
- dolib.so ${libdir}/libcuda.so.${sover}
- [[ "${sover}" != "1" ]] && dosym libcuda.so.${sover} /usr/${inslibdir}/libcuda.so.1
- dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so
- fi
-
- #vdpau
- if [[ -f ${libdir}/libvdpau_nvidia.so.${sover} ]]; then
- dolib.so ${libdir}/libvdpau_nvidia.so.${sover}
- dosym libvdpau_nvidia.so.${sover} /usr/${inslibdir}/libvdpau_nvidia.so
- fi
-
- # OpenCL
- # NOTE: This isn't currently available in the publicly released drivers.
- if [[ -f ${libdir}/libOpenCL.so.1.0.0 ]]; then
-
- dolib.so ${libdir}/libnvcompiler.so.${sover}
- [[ "${sover}" != "1" ]] && dosym libnvcompiler.so.${sover} /usr/${inslibdir}/libnvcompiler.so.1
- dosym libnvcompiler.so.1 /usr/${inslibdir}/libnvcompiler.so
-
- dolib.so ${libdir}/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() {
- if use kernel_linux; then
- linux-mod_pkg_postinst
- fi
-
- # 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 must 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
-}
-
-pkg_postrm() {
- if use kernel_linux; then
- linux-mod_pkg_postrm
- fi
- eselect opengl set --use-old xorg-x11
-}
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.19.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.19.ebuild
deleted file mode 100644
index 86d891d06c51..000000000000
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.19.ebuild
+++ /dev/null
@@ -1,514 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-drivers/nvidia-drivers/nvidia-drivers-96.43.19.ebuild,v 1.9 2011/07/14 22:50:38 jer 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.10
- gtk? (
- !media-video/nvidia-settings
- dev-libs/atk
- dev-libs/glib
- x11-libs/gdk-pixbuf
- x11-libs/gtk+:2
- x11-libs/libX11
- x11-libs/libXext
- x11-libs/pango
- )
- kernel_linux? ( >=sys-libs/glibc-2.6.1 )
- multilib? ( app-emulation/emul-linux-x86-opengl )
- >=app-admin/eselect-opengl-1.0.9"
-DEPEND="${COMMON}
- kernel_linux? ( virtual/linux-sources )"
-RDEPEND="${COMMON}
- acpi? ( sys-power/acpid )"
-
-QA_TEXTRELS_x86="usr/lib/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib/xorg/modules/drivers/nvidia_drv.so
- usr/lib/libcuda.so.${PV}
- usr/lib/libnvidia-cfg.so.${PV}
- usr/lib/libvdpau_nvidia.so.${PV}
- usr/lib/libXvMCNVIDIA.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/libnvidia-cfg.so.1
- usr/lib/opengl/nvidia/extensions/libglx.so.1
- usr/lib/xorg/modules/drivers/nvidia_drv.so"
-
-QA_TEXTRELS_amd64="usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGL.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.${PV}
- usr/lib/xorg/modules/drivers/nvidia_drv.so
- usr/lib/libXvMCNVIDIA.a:NVXVMC.o"
-
-QA_EXECSTACK_amd64="usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/libnvcompiler.so.${PV}
- usr/lib64/libXvMCNVIDIA.so.${PV}
- usr/lib64/libXvMCNVIDIA.a:NVXVMC.o
- usr/lib64/libnvidia-cfg.so.${PV}
- usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib64/xorg/modules/drivers/nvidia_drv.so
- usr/bin/nvidia-settings
- usr/bin/nvidia-smi
- usr/bin/nvidia-xconfig"
-
-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.${PV}
- usr/lib/libXvMCNVIDIA.a"
-
-QA_WX_LOAD_amd64="usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}"
-
-QA_SONAME_amd64="usr/lib64/libnvcompiler.so.${PV}"
-
-QA_DT_HASH_amd64="usr/lib32/libcuda.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib32/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib32/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib32/libvdpau_nvidia.so.${PV}
- usr/lib64/libXvMCNVIDIA.so.${PV}
- usr/lib64/libcuda.so.${PV}
- usr/lib64/libnvidia-cfg.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGLcore.so.${PV}
- usr/lib64/opengl/nvidia/lib/libGL.so.${PV}
- usr/lib64/opengl/nvidia/lib/libnvidia-tls.so.${PV}
- usr/lib64/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib64/xorg/modules/drivers/nvidia_drv.so
- usr/lib64/libvdpau_nvidia.so.${PV}
- usr/bin/nvidia-settings
- usr/bin/nvidia-smi
- usr/bin/nvidia-xconfig"
-
-QA_DT_HASH_x86="usr/lib/libcuda.so.${PV}
- usr/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/lib/libnvidia-tls.so.${PV}
- usr/lib/opengl/nvidia/extensions/libglx.so.${PV}
- usr/lib/xorg/modules/drivers/nvidia_drv.so
- usr/lib/libXvMCNVIDIA.so.${PV}
- usr/lib/libvdpau_nvidia.so.${PV}
- usr/bin/nvidia-settings
- usr/bin/nvidia-smi
- usr/bin/nvidia-xconfig"
-
-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} 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_LIB="${S}/obj"
- NV_SRC="${S}/src"
- NV_MAN="${S}/x11/man"
- NV_X11="${S}/obj"
- NV_X11_DRV="${NV_X11}"
- NV_X11_EXT="${NV_X11}"
- NV_SOVER=1
- elif use kernel_linux; then
- NV_DOC="${S}/usr/share/doc"
- NV_EXEC="${S}/usr/bin"
- NV_LIB="${S}/usr/lib"
- NV_SRC="${S}/usr/src/nv"
- NV_MAN="${S}/usr/share/man/man1"
- NV_X11="${S}/usr/X11R6/lib"
- NV_X11_DRV="${NV_X11}/modules/drivers"
- NV_X11_EXT="${NV_X11}/modules/extensions"
- NV_SOVER=${PV}
- 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
- 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
-
- epatch "${FILESDIR}"/${PN}-173.14.30-2.6.39.patch #368939
-
- # 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() {
- 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-169.07" ] || 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
-
- # NVIDIA kernel <-> userspace driver config lib
- dolib.so ${NV_LIB}/libnvidia-cfg.so.${NV_SOVER} || \
- die "failed to install libnvidia-cfg"
-
- # Xorg DDX driver
- insinto /usr/$(get_libdir)/xorg/modules/drivers
- doins ${NV_X11_DRV}/nvidia_drv.so || die "failed to install nvidia_drv.so"
-
- # Xorg GLX driver
- insinto /usr/$(get_libdir)/opengl/nvidia/extensions
- doins ${NV_X11_EXT}/libglx.so.${NV_SOVER} || \
- die "failed to install libglx.so"
- dosym /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so.${NV_SOVER} \
- /usr/$(get_libdir)/opengl/nvidia/extensions/libglx.so || \
- die "failed to create libglx.so symlink"
-
- # XvMC driver
- dolib.a ${NV_X11}/libXvMCNVIDIA.a || \
- die "failed to install libXvMCNVIDIA.so"
- dolib.so ${NV_X11}/libXvMCNVIDIA.so.${NV_SOVER} || \
- die "failed to install libXvMCNVIDIA.so"
- dosym libXvMCNVIDIA.so.${NV_SOVER} /usr/$(get_libdir)/libXvMCNVIDIA.so || \
- die "failed to create libXvMCNVIDIA.so symlink"
-
- # CUDA headers (driver to come)
- if [[ -d ${S}/usr/include/cuda ]]; then
- dodir /usr/include/cuda
- insinto /usr/include/cuda
- doins usr/include/cuda/*.h || die "failed to install cuda headers"
- fi
-
- # OpenCL headers (driver to come)
- if [[ -d ${S}/usr/include/CL ]]; then
- dodir /usr/include/CL
- insinto /usr/include/CL
- doins usr/include/CL/*.h || die "failed to install OpenCL headers"
- fi
-
- # Documentation
- dodoc ${NV_DOC}/XF86Config.sample
- dohtml ${NV_DOC}/html/*
- if use x86-fbsd; then
- dodoc "${NV_DOC}/README"
- doman "${NV_MAN}/nvidia-xconfig.1"
- else
- # Docs
- newdoc "${NV_DOC}/README.txt" README
- dodoc "${NV_DOC}/NVIDIA_Changelog"
-# doman "${NV_MAN}/nvidia-smi.1.gz"
- doman "${NV_MAN}/nvidia-xconfig.1.gz"
- fi
-
- # Helper Apps
- dobin ${NV_EXEC}/nvidia-xconfig || die
- dobin ${NV_EXEC}/nvidia-bug-report.sh || die
- if use gtk; then
- dobin usr/bin/nvidia-settings || die
- fi
-# if use kernel_linux; then
-# dobin ${NV_EXEC}/nvidia-smi || 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 || die "failed to iterate through all ABIs"
-}
-
-# 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)
-
- doexe $2.$3 || die "failed to install $2"
- dosym ${libname}.$3 $1/${libname} || die "failed to symlink $2"
- [[ $3 != "1" ]] && dosym ${libname}.$3 $1/${libname}.1
-}
-
-src_install-libs() {
- local inslibdir=$(get_libdir)
- local NV_ROOT="/usr/${inslibdir}/opengl/nvidia"
- local libdir= sover=
-
- if use kernel_linux; then
- if has_multilib_profile && [[ ${ABI} == "x86" ]] ; then
- libdir=usr/lib32
- else
- libdir=usr/lib
- fi
- sover=${PV}
- else
- libdir=obj
- # on FreeBSD it has just .1 suffix
- sover=1
- fi
-
- # The GLX libraries
- donvidia ${NV_ROOT}/lib ${libdir}/libGL.so ${sover}
- donvidia ${NV_ROOT}/lib ${libdir}/libGLcore.so ${sover}
- if use x86-fbsd; then
- donvidia ${NV_ROOT}/lib ${libdir}/libnvidia-tls.so ${sover}
- else
- donvidia ${NV_ROOT}/lib ${libdir}/tls/libnvidia-tls.so ${sover}
- fi
-
- #cuda
- if [[ -f ${libdir}/libcuda.so.${sover} ]]; then
- dolib.so ${libdir}/libcuda.so.${sover}
- [[ "${sover}" != "1" ]] && dosym libcuda.so.${sover} /usr/${inslibdir}/libcuda.so.1
- dosym libcuda.so.1 /usr/${inslibdir}/libcuda.so
- fi
-
- #vdpau
- if [[ -f ${libdir}/libvdpau_nvidia.so.${sover} ]]; then
- dolib.so ${libdir}/libvdpau_nvidia.so.${sover}
- dosym libvdpau_nvidia.so.${sover} /usr/${inslibdir}/libvdpau_nvidia.so
- fi
-
- # OpenCL
- # NOTE: This isn't currently available in the publicly released drivers.
- if [[ -f ${libdir}/libOpenCL.so.1.0.0 ]]; then
-
- dolib.so ${libdir}/libnvcompiler.so.${sover}
- [[ "${sover}" != "1" ]] && dosym libnvcompiler.so.${sover} /usr/${inslibdir}/libnvcompiler.so.1
- dosym libnvcompiler.so.1 /usr/${inslibdir}/libnvcompiler.so
-
- dolib.so ${libdir}/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() {
- if use kernel_linux; then
- linux-mod_pkg_postinst
- fi
-
- # 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 must 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
-}
-
-pkg_postrm() {
- if use kernel_linux; then
- linux-mod_pkg_postrm
- fi
- eselect opengl set --use-old xorg-x11
-}