summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2001-12-10 22:52:42 +0000
committerMartin Schlemmer <azarah@gentoo.org>2001-12-10 22:52:42 +0000
commit761008ed8d21d7a313bca045e8208661be249a7b (patch)
tree72747844128e9adf5e6f64762bbb76137e541848 /media-gfx
parentnew version (diff)
downloadgentoo-2-761008ed8d21d7a313bca045e8208661be249a7b.tar.gz
gentoo-2-761008ed8d21d7a313bca045e8208661be249a7b.tar.bz2
gentoo-2-761008ed8d21d7a313bca045e8208661be249a7b.zip
did not merge if 2313 was merged ..
Diffstat (limited to 'media-gfx')
-rw-r--r--media-gfx/nvidia/nvidia-1.0.1541.ebuild32
1 files changed, 18 insertions, 14 deletions
diff --git a/media-gfx/nvidia/nvidia-1.0.1541.ebuild b/media-gfx/nvidia/nvidia-1.0.1541.ebuild
index 5d420375c2e6..d51fe8bddea6 100644
--- a/media-gfx/nvidia/nvidia-1.0.1541.ebuild
+++ b/media-gfx/nvidia/nvidia-1.0.1541.ebuild
@@ -1,14 +1,17 @@
# Copyright 1999-2001 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author: Daniel Robbins <drobbins@gentoo.org>
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia/nvidia-1.0.1541.ebuild,v 1.4 2001/11/26 00:45:28 drobbins Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/nvidia/nvidia-1.0.1541.ebuild,v 1.5 2001/12/10 22:52:42 azarah Exp $
-MYV=1.0-1541
-DEVPATCH=nvidia_devfs-patch_1.0-1512.patch
+#NOTE: devfs support is already included, so we dont have to patch the
+# kernel modules's source anymore !
+
+MYV=${PV/0./0-}
S=${WORKDIR}
-DESCRIPTION="High-performance nvidia graphics drivers for X, along with OpenGL 1.2"
-SRC_URI="http://www.nvidia.com/docs/lo/1005/SUPP/NVIDIA_GLX-${MYV}.tar.gz http://www.nvidia.com/docs/lo/1017/SUPP/NVIDIA_kernel-${MYV}.tar.gz http://www.cyber.com.au/users/ashridah/${DEVPATCH}"
-HOMEPAGE="http://www.nvidia.com"
+DESCRIPTION="High-performance nvidia graphics drivers for X, along with OpenGL 1.3"
+SRC_URI="http://205.158.109.140/XFree86_40/${MYV}/NVIDIA_GLX-${MYV}.tar.gz
+ http://205.158.109.140/XFree86_40/${MYV}/NVIDIA_kernel-${MYV}.tar.gz"
+HOMEPAGE="http://www.nvidia.com/"
DEPEND="virtual/glibc"
@@ -23,29 +26,26 @@ then
fi
KV=${KV/linux-/}
-src_unpack() {
- unpack NVIDIA_GLX-${MYV}.tar.gz NVIDIA_kernel-${MYV}.tar.gz
- cd ${S}/NVIDIA_kernel-${MYV}
- #apply patch to add devfs support...
- patch -p1 < ${DISTDIR}/${DEVPATCH} || die
-}
src_compile() {
+
cd ${S}/NVIDIA_kernel-${MYV}
make KERNDIR="${KV}" NVdriver
}
src_install () {
+
cd ${S}/NVIDIA_kernel-${MYV}
insinto /lib/modules/${KV}/kernel/video
doins NVdriver
+
cd ${S}/NVIDIA_GLX-${MYV}
dodir /usr/lib /usr/X11R6/lib/modules/drivers /usr/X11R6/lib/modules/extensions /usr/include
dolib.so usr/lib/libGL.so.${PV} usr/lib/libGLcore.so.${PV}
install usr/X11R6/lib/modules/drivers/nvidia_drv.o ${D}/usr/X11R6/lib/modules/drivers
install usr/X11R6/lib/modules/extensions/libglx.so.${PV} ${D}/usr/X11R6/lib/modules/extensions
( cd ${D}/usr/lib; ln -s libGL.so.${PV} libGL.so )
- ( cd ${D}/usr/X11R6/lib/modules/extensions; ln -s libglx.so.${PV} libglx.so)
+ ( cd ${D}/usr/X11R6/lib/modules/extensions; [ -f libglx.so.${PV} ] && ln -s libglx.so.${PV} libglx.so)
insinto /usr/include/GL
doins usr/include/GL/*
dodoc usr/share/doc/*
@@ -59,7 +59,11 @@ pkg_preinst() {
einfo "Moving old libGL stuff in ${ROOT}/usr/X11R6/lib into an \"old\" directory."
cd ${ROOT}/usr/X11R6/lib
[ ! -d old ] && mkdir old
- mv libGL.* old
+ #fix problem where if libGL.* do not exist, emerge fails
+ for x in `ls libGL.*`
+ do
+ [ -e ${x} ] && mv ${x} old
+ done
}
pkg_postinst() {