diff options
Diffstat (limited to 'media-video')
15 files changed, 172 insertions, 306 deletions
diff --git a/media-video/nvidia-glx/ChangeLog b/media-video/nvidia-glx/ChangeLog index 678484465f27..ccf4fc4075a3 100644 --- a/media-video/nvidia-glx/ChangeLog +++ b/media-video/nvidia-glx/ChangeLog @@ -1,6 +1,8 @@ # ChangeLog for media-video/nvidia-glx # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.7 2002/04/13 04:13:38 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/ChangeLog,v 1.8 2002/05/25 23:15:23 azarah Exp $ + +*nvidia-glx-1.0.2960 (26 May 2002) *nvidia-glx-1.0.2313-r2 (12 Apr 2002) diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2313 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2313 deleted file mode 100644 index 9d8bd5668c01..000000000000 --- a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2313 +++ /dev/null @@ -1 +0,0 @@ -MD5 511f76c01d83cae0917088bdda8a4bc6 NVIDIA_GLX-1.0-2313.tar.gz 1508184 diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2313-r1 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2313-r1 deleted file mode 100644 index 9d8bd5668c01..000000000000 --- a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2313-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 511f76c01d83cae0917088bdda8a4bc6 NVIDIA_GLX-1.0-2313.tar.gz 1508184 diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2802-r2 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2802-r2 deleted file mode 100644 index bc600f3e57ae..000000000000 --- a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2802-r2 +++ /dev/null @@ -1 +0,0 @@ -MD5 8ac546db964b58b916a1c220271086b3 NVIDIA_glx-1.0-2802.tar.gz 1525481 diff --git a/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2960 b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2960 new file mode 100644 index 000000000000..45e2d3241d75 --- /dev/null +++ b/media-video/nvidia-glx/files/digest-nvidia-glx-1.0.2960 @@ -0,0 +1 @@ +MD5 38947e44a19a576c2ab8e648e1f3cf18 NVIDIA_GLX-1.0-2960.tar.gz 1730225 diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.2313-r2.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.2313-r2.ebuild deleted file mode 100644 index 7da4ad32c16b..000000000000 --- a/media-video/nvidia-glx/nvidia-glx-1.0.2313-r2.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.2313-r2.ebuild,v 1.2 2002/04/27 23:34:20 bangert Exp $ - -# This portage installs binary XFree drivers for video cards -# with NVIDIA chipsets. The driver is provided by NVIDIA corporation. - -# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ -DEBUG="yes" -RESTRICT="nostrip" - -S="${WORKDIR}/${P}" - -DESCRIPTION="Linux kernel module for the NVIDIA's X driver" - -NV_PACKAGE=NVIDIA_GLX-1.0-2313 -NV_ARCHIVE="${NV_PACKAGE}.tar.gz" -SRC_URI="http://205.158.109.140/XFree86_40/1.0-2313/${NV_ARCHIVE}" -HOMEPAGE="http://www.nvidia.com/" -DEPEND="virtual/glibc >=x11-base/xfree-4.0.2 >=media-video/nvidia-kernel-1.0.2314" -PROVIDE="virtual/opengl" - -src_unpack() { - unpack "${NV_ARCHIVE}" - mv "${NV_PACKAGE}" "${P}" -} - -src_install () { - # NVIDIA's stock makefile overwrites headers and libraries - # that come with XFree. I don't like it and prefer to keep - # NVIDIA's stuff in a totally separate place, hence it goes - # into /opt - local NVIDIA_ROOT=/opt/nvidia - - # The X module - exeinto "${NVIDIA_ROOT}/modules/drivers" - doexe usr/X11R6/lib/modules/drivers/nvidia_drv.o - exeinto "${NVIDIA_ROOT}/modules/extensions" - doexe "usr/X11R6/lib/modules/extensions/libglx.so.${PV}" - (cd "${D}/${NVIDIA_ROOT}/modules/extensions" - ln -s "libglx.so.${PV}" libglx.so) - - # The GLX libraries - exeinto "${NVIDIA_ROOT}/lib" - doexe "usr/lib/libGL.so.${PV}" "usr/lib/libGLcore.so.${PV}" - (cd "${D}/${NVIDIA_ROOT}/lib" - ln -s "libGL.so.${PV}" libGL.so - ln -s "libGL.so.${PV}" libGL.so.1 - ln -s "libGLcore.so.${PV}" libGLcore.so - ln -s "libGLcore.so.${PV}" libGLcore.so.1) - - # Not sure whether installing the .la file is neccessary; - # this is adopted from the `nvidia' ebuild - local ver1="`echo ${PV} |cut -d '.' -f 1`" - local ver2="`echo ${PV} |cut -d '.' -f 2`" - local ver3="`echo ${PV} |cut -d '.' -f 3`" - sed -e "s:\${PV}:${PV}:" \ - -e "s:\${ver1}:${ver1}:" \ - -e "s:\${ver2}:${ver2}:" \ - -e "s:\${ver3}:${ver3}:" \ - "${FILESDIR}/libGL.la" > "${D}/${NVIDIA_ROOT}/lib/libGL.la" - - # Make sure /opt/NVIDIA/lib gets into ld.so.conf before xfree's libs - insinto /etc/env.d - doins "${FILESDIR}/09nvidia" - - # Includes - insinto "${NVIDIA_ROOT}/include/GL" - doins usr/include/GL/*.h - - # Docs - dodoc "${FILESDIR}/README.gentoo" usr/share/doc/* -} - -pkg_postinst() { - einfo - einfo "Make sure to read documentation in /doc/share/${P}" - einfo "before you attempt to tweak your XF86Config file!" - einfo -} diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.2802-r2.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.2802-r2.ebuild deleted file mode 100644 index ab55311e028d..000000000000 --- a/media-video/nvidia-glx/nvidia-glx-1.0.2802-r2.ebuild +++ /dev/null @@ -1,80 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.2802-r2.ebuild,v 1.2 2002/04/27 23:34:20 bangert Exp $ - -# This portage installs binary XFree drivers for video cards -# with NVIDIA chipsets. The driver is provided by NVIDIA corporation. - -# Do _NOT_ strip symbols in the build! Need both lines for Portage 1.8.9+ -DEBUG="yes" -RESTRICT="nostrip" - -NV_V=1.0-2802 - -DESCRIPTION="Linux kernel module for the NVIDIA's X driver" -HOMEPAGE="http://www.nvidia.com/" - -DEPEND="virtual/glibc - >=x11-base/xfree-4.0.2 - >=media-video/nvidia-kernel-${PV}" -PROVIDE="virtual/opengl" - -NV_PACKAGE=NVIDIA_glx-${NV_V} -SRC_URI="http://205.158.109.140/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz" -S="${WORKDIR}/NVIDIA_GLX-${NV_V}" - -src_install () { - # NVIDIA's stock makefile overwrites headers and libraries - # that come with XFree. I don't like it and prefer to keep - # NVIDIA's stuff in a totally separate place, hence it goes - # into /opt - local NV_ROOT=/opt/nvidia - - # The X module - exeinto "${NV_ROOT}/modules/drivers" - doexe "usr/X11R6/lib/modules/drivers/nvidia_drv.o" - exeinto "${NV_ROOT}/modules/extensions" - doexe "usr/X11R6/lib/modules/extensions/libglx.so.${PV}" - dosym "${NV_ROOT}/modules/extensions/libglx.so.${PV}" \ - "${NV_ROOT}/modules/extensions/libglx.so" - - # The GLX libraries - exeinto "${NV_ROOT}/lib" - doexe usr/lib/libGL.so."${PV}" \ - usr/lib/libGLcore.so."${PV}" \ - usr/X11R6/lib/libXvMCNVIDIA.a - dosym "${NV_ROOT}/lib/libGL.so.${PV}" "${NV_ROOT}/lib/libGL.so" - dosym "${NV_ROOT}/lib/libGL.so.${PV}" "${NV_ROOT}/lib/libGL.so.1" - dosym "${NV_ROOT}/lib/libGLcore.so.${PV}" "${NV_ROOT}/lib/libGLcore.so" - dosym "${NV_ROOT}/lib/libGLcore.so.${PV}" "${NV_ROOT}/lib/libGLcore.so.1" - - # Not sure whether installing the .la file is neccessary; - # this is adopted from the `nvidia' ebuild - local ver1="`echo ${PV} |cut -d '.' -f 1`" - local ver2="`echo ${PV} |cut -d '.' -f 2`" - local ver3="`echo ${PV} |cut -d '.' -f 3`" - sed -e "s:\${PV}:${PV}:" \ - -e "s:\${ver1}:${ver1}:" \ - -e "s:\${ver2}:${ver2}:" \ - -e "s:\${ver3}:${ver3}:" \ - "${FILESDIR}"/libGL.la > "${D}/${NV_ROOT}"/lib/libGL.la - - # Make sure /opt/NVIDIA/lib gets into ld.so.conf before xfree's libs - insinto /etc/env.d - doins "${FILESDIR}"/09nvidia - - # Includes - insinto "${NV_ROOT}"/include/GL - doins usr/include/GL/*.h - - # Docs - dodoc usr/share/doc/* \ - "${FILESDIR}"/README.gentoo -} - -pkg_postinst() { - einfo - einfo "Make sure to read documentation in /doc/share/${P}" - einfo "before you attempt to tweak your XF86Config file!" - einfo -} diff --git a/media-video/nvidia-glx/nvidia-glx-1.0.2960.ebuild b/media-video/nvidia-glx/nvidia-glx-1.0.2960.ebuild new file mode 100644 index 000000000000..44a486a21582 --- /dev/null +++ b/media-video/nvidia-glx/nvidia-glx-1.0.2960.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Martin Schlemmer <azarah@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-glx/nvidia-glx-1.0.2960.ebuild,v 1.1 2002/05/25 23:15:23 azarah Exp $ + +NV_V=${PV/1.0./1.0-} +NV_PACKAGE=NVIDIA_GLX-${NV_V} +S="${WORKDIR}/NVIDIA_GLX-${NV_V}" +DESCRIPTION="Linux kernel module for the NVIDIA's X driver" +SRC_URI="ftp://download.nvidia.com/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz + http://download.nvidia.com/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz" +HOMEPAGE="http://www.nvidia.com/" + +# We need xfree-4.2.0-r9 to support the dynamic libGL* stuff +DEPEND="virtual/glibc + >=x11-base/xfree-4.2.0-r9 + ~media-video/nvidia-kernel-${PV}" + +PROVIDE="virtual/opengl" + +# Make sure Portage does _NOT_ strip symbols. Need both lines for +# Portage 1.8.9+ +DEBUG="yes" +RESTRICT="nostrip" + + +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} + dosym libGL.so.${PV} ${NV_ROOT}/lib/libGL.so + dosym libGL.so.${PV} ${NV_ROOT}/lib/libGL.so.1 + dosym libGLcore.so.${PV} ${NV_ROOT}/lib/libGLcore.so + dosym libGLcore.so.${PV} ${NV_ROOT}/lib/libGLcore.so.1 + + insinto usr/X11R6/lib + doins usr/X11R6/lib/libXvMCNVIDIA.a + + # Includes + insinto ${NV_ROOT}/include + doins usr/include/GL/*.h + + # Docs + dodoc usr/share/doc/* + + # Not sure whether installing the .la file is neccessary; + # this is adopted from the `nvidia' ebuild + local ver1="`echo ${PV} |cut -d '.' -f 1`" + local ver2="`echo ${PV} |cut -d '.' -f 2`" + local ver3="`echo ${PV} |cut -d '.' -f 3`" + sed -e "s:\${PV}:${PV}:" \ + -e "s:\${ver1}:${ver1}:" \ + -e "s:\${ver2}:${ver2}:" \ + -e "s:\${ver3}:${ver3}:" \ + ${FILESDIR}/libGL.la.1 > ${D}/${NV_ROOT}/lib/libGL.la +} + +pkg_preinst() { + #clean the dinamic libGL stuff's home to ensure + #we dont have stale libs floating around + if [ -d ${ROOT}/usr/lib/opengl/nvidia ] + then + rm -rf ${ROOT}/usr/lib/opengl/nvidia/* + fi + #make sure we nuke the old nvidia-glx's env.d file + if [ -e ${ROOT}/etc/env.d/09nvidia ] + then + rm -f ${ROOT}/etc/env.d/09nvidia + fi +} + +pkg_postinst() { + #switch to the nvidia implementation + if [ "${ROOT}" = "/" ] + then + /usr/sbin/opengl-update nvidia + fi + + einfo + einfo "To use the Nvidia GLX, run \"opengl-update nvidia\"" + einfo +} + diff --git a/media-video/nvidia-kernel/ChangeLog b/media-video/nvidia-kernel/ChangeLog index e29f8e83bfd9..cbcc988c1dfe 100644 --- a/media-video/nvidia-kernel/ChangeLog +++ b/media-video/nvidia-kernel/ChangeLog @@ -1,6 +1,8 @@ # ChangeLog for media-video/nvidia-kernel # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/ChangeLog,v 1.4 2002/05/08 05:00:56 jnelson Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/ChangeLog,v 1.5 2002/05/25 23:15:16 azarah Exp $ + +*nvidia-kernel-1.0.2960 (26 May 2002) *nvidia-kernel-1.0.2880-r1 (29 Apr 2002) diff --git a/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2314 b/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2314 deleted file mode 100644 index 0512b4157d7b..000000000000 --- a/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2314 +++ /dev/null @@ -1 +0,0 @@ -MD5 b28cd88d2cb9ef36536fa1e2a5d5cafe NVIDIA_kernel-1.0-2314.tar.gz 386867 diff --git a/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2802-r1 b/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2802-r1 deleted file mode 100644 index 9a66a0dbe022..000000000000 --- a/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2802-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 dfde8afcae05f38a39bd3c7856aca314 NVIDIA_kernel-1.0-2802.tar.gz 406101 diff --git a/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2960 b/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2960 new file mode 100644 index 000000000000..609adec57b41 --- /dev/null +++ b/media-video/nvidia-kernel/files/digest-nvidia-kernel-1.0.2960 @@ -0,0 +1 @@ +MD5 372a72010e8a1659454330cc7f5a490f NVIDIA_kernel-1.0-2960.tar.gz 416410 diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.2314.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.2314.ebuild deleted file mode 100644 index c9aed4692101..000000000000 --- a/media-video/nvidia-kernel/nvidia-kernel-1.0.2314.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Maintainer: Arcady Genkin <agenkin@thpoon.com> -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.2314.ebuild,v 1.3 2002/04/27 23:34:20 bangert Exp $ - -S="${WORKDIR}/${P}" - -DESCRIPTION="Linux kernel module for the NVIDIA's X driver" - -NV_PACKAGE=NVIDIA_kernel-1.0-2314 -NV_ARCHIVE="${NV_PACKAGE}.tar.gz" - -SRC_URI="http://205.158.109.140/XFree86_40/1.0-2313/${NV_ARCHIVE}" -HOMEPAGE="http://www.nvidia.com/" - -DEPEND="virtual/linux-sources" - -nv_get_kernel_version () { - # Determine the version of the kernel sources - local NV_KV="`readlink /usr/src/linux`" - if [ $? -ne 0 ] - then - die "/usr/src/linux does not exist" - fi - NV_KV="${NV_KV/linux-/}" - echo -n "${NV_KV}" -} - -src_unpack() { - unpack "${NV_ARCHIVE}" - mv "${NV_PACKAGE}" "${P}" -} - -src_compile() { - make KERNDIR="/usr/src/linux-`nv_get_kernel_version`" \ - clean NVdriver || die -} - -src_install () { - # The driver goes into the standard modules location - insinto "/lib/modules/`nv_get_kernel_version`/kernel/video" - doins NVdriver - - # Add the aliases - insinto /etc/modules.d - doins "${FILESDIR}/nvidia" - - # Docs - dodoc README - - # The device creation script - exeinto /opt/nvidia/bin - doexe "${FILESDIR}/make_nvidia_devices.sh" -} - -pkg_postinst() { - if [ "${ROOT}" = "/" ] - then - [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules - [ -x /sbin/depmod ] && /sbin/depmod -a - fi - - einfo - einfo "If you are not using devfs, you might want to create nvidia" - einfo "device nodes by running /opt/nvidia/bin/make_nvidia_devices.sh" - einfo - einfo "To load the module automatically at boot up, add" - einfo "\"NVdriver\" to your /etc/modules.autoload:" - einfo -} diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.2802-r1.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.2802-r1.ebuild deleted file mode 100644 index 2886f82c2139..000000000000 --- a/media-video/nvidia-kernel/nvidia-kernel-1.0.2802-r1.ebuild +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 1999-2002 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Maintainer: Arcady Genkin <agenkin@thpoon.com> -# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.2802-r1.ebuild,v 1.3 2002/04/27 23:34:20 bangert Exp $ - -NV_V=1.0-2802 - -# Make sure Portage does _NOT_ strip symbols. Need both lines for -# Portage 1.8.9+ -DEBUG="yes" -RESTRICT="nostrip" - -DESCRIPTION="Linux kernel module for the NVIDIA's X driver" -HOMEPAGE="http://www.nvidia.com/" - -DEPEND="virtual/linux-sources" - -NV_PACKAGE=NVIDIA_kernel-${NV_V} -SRC_URI="http://205.158.109.140/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz" -S="${WORKDIR}/${NV_PACKAGE}" - -nv_get_kernel_version () { - # Determine the version of the kernel sources - local NV_KV="`readlink /usr/src/linux`" - if [ $? -ne 0 ] - then - die "/usr/src/linux does not exist" - fi - NV_KV="${NV_KV/linux-/}" - echo -n "${NV_KV}" -} - -src_compile() { - make KERNDIR="/usr/src/linux-`nv_get_kernel_version`" \ - clean NVdriver || die -} - -src_install () { - # The driver goes into the standard modules location - insinto "/lib/modules/`nv_get_kernel_version`/kernel/video" - doins NVdriver - - # Add the aliases - insinto /etc/modules.d - doins "${FILESDIR}"/nvidia - - # Docs - dodoc README - - # The device creation script - exeinto /opt/nvidia/bin - doexe "${FILESDIR}"/make_nvidia_devices.sh -} - -pkg_postinst() { - if [ "${ROOT}" = "/" ] - then - [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules - [ -x /sbin/depmod ] && /sbin/depmod -a - fi - - einfo - einfo "If you are not using devfs, you might want to create nvidia" - einfo "device nodes by running /opt/nvidia/bin/make_nvidia_devices.sh" - einfo - einfo "To load the module automatically at boot up, add" - einfo "\"NVdriver\" to your /etc/modules.autoload:" - einfo -} diff --git a/media-video/nvidia-kernel/nvidia-kernel-1.0.2960.ebuild b/media-video/nvidia-kernel/nvidia-kernel-1.0.2960.ebuild new file mode 100644 index 000000000000..2690678d7853 --- /dev/null +++ b/media-video/nvidia-kernel/nvidia-kernel-1.0.2960.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Martin Schlemmer <azarah@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/media-video/nvidia-kernel/nvidia-kernel-1.0.2960.ebuild,v 1.1 2002/05/25 23:15:16 azarah Exp $ + +DESCRIPTION="Linux kernel module for the NVIDIA's X driver" +HOMEPAGE="http://www.nvidia.com/" + +NV_V=${PV/1.0./1.0-} +NV_PACKAGE=NVIDIA_kernel-${NV_V} +S="${WORKDIR}/${NV_PACKAGE}" +SRC_URI="ftp://download.nvidia.com/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz + http://download.nvidia.com/XFree86_40/${NV_V}/${NV_PACKAGE}.tar.gz" + +DEPEND="virtual/linux-sources + >=sys-apps/portage-1.9.10" + +# Make sure Portage does _NOT_ strip symbols. Need both lines for +# Portage 1.8.9+ +DEBUG="yes" +RESTRICT="nostrip" + +src_compile() { + # Portage should determine the version of the kernel sources + check_KV + make KERNDIR="/usr/src/linux" \ + clean NVdriver || die +} + +src_install () { + # The driver goes into the standard modules location + insinto "/lib/modules/${KV}/kernel/video" + doins NVdriver + + # Add the aliases + insinto /etc/modules.d + doins "${FILESDIR}"/nvidia + + # Docs + dodoc ${S}/README + + # The device creation script + into / + newsbin ${S}/makedevices.sh NVmakedevices.sh +} + +pkg_postinst() { + if [ "${ROOT}" = "/" ] + then + # Get any stale module unloaded + [ -x /sbin/rmmod ] && /sbin/rmmod NVdriver + # Update module dependency + [ -x /usr/sbin/update-modules ] && /usr/sbin/update-modules + # Load the module again + [ -x /sbin/modprobe ] && /sbin/modprobe NVdriver + if [ ! -e /dev/.devfsd ] && [ -x /sbin/NVmakedevices.sh ] + then + /sbin/NVmakedevices.sh >/dev/null 2>&1 + fi + fi + + einfo + einfo "If you are not using devfs, you might want to create nvidia" + einfo "device nodes by running /sbin/NVmakedevices.sh" + einfo + einfo "If you are not using devfs, loading the module automatically at" + einfo "boot up, you need to add \"NVdriver\" to your /etc/modules.autoload:" + einfo +} + |