[Lunar-commits] <moonbase> NVIDIA-fx: driver for GeforceFX
Zbigniew Luszpinski
zbiggy at lunar-linux.org
Sun Dec 28 23:34:31 CET 2008
commit ca2ff60c85cd008ed2dc8999af5461e36d02fea9
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date: Sun Dec 28 22:34:31 2008 +0000
NVIDIA-fx: driver for GeforceFX
---
x11/NVIDIA-fx/BUILD | 89 ++++++++++++++++++++++++++++++++++
x11/NVIDIA-fx/CONFLICTS | 4 ++
x11/NVIDIA-fx/DETAILS | 39 +++++++++++++++
x11/NVIDIA-fx/DETAILS.x86_64 | 39 +++++++++++++++
x11/NVIDIA-fx/PRE_BUILD | 7 +++
x11/NVIDIA-fx/profile.d/nvidia_gl.rc | 11 ++++
6 files changed, 189 insertions(+), 0 deletions(-)
diff --git a/x11/NVIDIA-fx/BUILD b/x11/NVIDIA-fx/BUILD
new file mode 100644
index 0000000..bfbe919
--- /dev/null
+++ b/x11/NVIDIA-fx/BUILD
@@ -0,0 +1,89 @@
+(
+
+ # We make the kernel modules on our own
+ cd $SOURCE_DIRECTORY/usr/src/nv &&
+
+ sedit "s:KBUILD_VERBOSE=1:KBUILD_VERBOSE=0:g" Makefile.kbuild &&
+
+ make SYSSRC=/usr/src/linux module &&
+
+ prepare_install &&
+
+ make SYSSRC=/usr/src/linux install &&
+
+ cd $SOURCE_DIRECTORY &&
+ rm -rf old.libraries &&
+
+ # This is installer less build script. If you find bugs let me know: zbiggy at o2.pl
+ sedit "s/__GENERATED_BY__/nvidia-installer\:\ 1.0.7/" usr/lib/libGL.la &&
+ sedit "s/__LIBGL_PATH__/\/usr\/\/lib\/opengl\/nvidia/" usr/lib/libGL.la &&
+ sedit "s/__UTILS_PATH__/\/usr\/bin/" usr/share/applications/nvidia-settings.desktop &&
+ sedit "s/__PIXMAP_PATH__/\/usr\/share\/doc\/NVIDIA_GLX-1.0/" usr/share/applications/nvidia-settings.desktop &&
+
+ mkdir -p /usr/lib/opengl/nvidia &&
+
+ cd $SOURCE_DIRECTORY &&
+ cp -f nvidia-installer /usr/bin &&
+ mkdir -p /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -f LICENSE /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -f usr/X11R6/lib/lib* /usr/lib/opengl/nvidia/ &&
+ cp -f usr/X11R6/lib/modules/lib* /usr/X11/lib/xorg/modules &&
+ cp -f usr/share/applications/nvidia-settings.desktop /usr/share/applications/nvidia-settings.desktop
+ cd /usr/X11/lib/xorg/modules &&
+ ln -sf libnvidia-wfb.so.$VERSION libnvidia-wfb.so.1 &&
+
+ cd $SOURCE_DIRECTORY &&
+ cp -rf usr/X11R6/lib/modules/drivers /usr/X11/lib/xorg/modules &&
+ cp -rf usr/X11R6/lib/modules/extensions /usr/X11/lib/xorg/modules &&
+ cd /usr/X11/lib/xorg/modules/extensions &&
+ ln -sf libglx.so.$VERSION libglx.so &&
+
+ cd $SOURCE_DIRECTORY &&
+ cp -f usr/bin/nvidia* /usr/bin &&
+ cp -rf usr/include/cuda /usr/X11/include &&
+ cp -rf usr/lib/tls /usr/lib/opengl/nvidia/ &&
+ cd /usr/lib/opengl/nvidia/tls &&
+ ln -sf libnvidia-tls.so.$VERSION libnvidia-tls.so.1 &&
+
+ cd $SOURCE_DIRECTORY &&
+ cp -f usr/lib/lib* /usr/lib/opengl/nvidia/ &&
+ cd /usr/lib/opengl/nvidia &&
+ ln -sf libGL.so.$VERSION libGL.so.1 &&
+ ln -sf libGL.so.1 libGL.so &&
+ ln -sf libGLcore.so.$VERSION libGLcore.so.1 &&
+ ln -sf libXvMCNVIDIA.so.$VERSION libXvMCNVIDIA_dynamic.so.1 &&
+ ln -sf libnvidia-cfg.so.$VERSION libnvidia-cfg.so.1 &&
+ ln -sf libnvidia-cfg.so.1 libnvidia-cfg.so &&
+ ln -sf libnvidia-tls.so.$VERSION libnvidia-tls.so.1 &&
+
+ cd $SOURCE_DIRECTORY &&
+ cp -rf usr/share/doc/html /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -rf usr/include/GL /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -f usr/share/doc/NV* /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -f usr/share/doc/R* /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -f usr/share/doc/X* /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -f usr/share/doc/nv* /usr/share/doc/NVIDIA_GLX-1.0 &&
+ cp -rf usr/share/man /usr/share &&
+ cp -f usr/share/pixmaps/* /usr/share/doc/NVIDIA_GLX-1.0 &&
+
+ # Register Nvidia XvMC library for use in any XvMC enabled media player
+ rm -f /etc/X11/XvMCConfig &&
+ touch /etc/X11/XvMCConfig &&
+ echo libXvMCNVIDIA_dynamic.so.1 > /etc/X11/XvMCConfig &&
+ chmod 644 /etc/X11/XvMCConfig
+
+ # Get a sane default if haven't set it yet
+ if [ "x$LUNAR_GL" == "x" ] ; then
+ set_local_config LUNAR_GL binary
+ fi
+
+ # This is a temp workaround for braindead dlopen calls inside the NVIDIA
+ # libglx.so
+
+ ln -sf /usr/lib/opengl/nvidia/libGLcore.so.1 \
+ /usr/lib/libGLcore.so.1 &&
+
+ ln -sf /usr/lib/opengl/nvidia/tls/libnvidia-tls.so.1 \
+ /usr/lib/libnvidia-tls.so.1
+
+) > $C_FIFO 2>&1
diff --git a/x11/NVIDIA-fx/CONFLICTS b/x11/NVIDIA-fx/CONFLICTS
new file mode 100644
index 0000000..5cbab6e
--- /dev/null
+++ b/x11/NVIDIA-fx/CONFLICTS
@@ -0,0 +1,4 @@
+conflicts NVIDIA-legacy
+conflicts NVIDIA
+conflicts NVIDIA-old
+conflicts NVIDIA-beta
diff --git a/x11/NVIDIA-fx/DETAILS b/x11/NVIDIA-fx/DETAILS
new file mode 100644
index 0000000..eca7f08
--- /dev/null
+++ b/x11/NVIDIA-fx/DETAILS
@@ -0,0 +1,39 @@
+ MODULE=NVIDIA-fx
+ VERSION=173.14.15
+ SOURCE=NVIDIA-Linux-x86-$VERSION-pkg0.run
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/NVIDIA-Linux-x86-$VERSION-pkg0
+ SOURCE_URL[0]=ftp://download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[1]=http://download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[2]=http://us.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[3]=http://pl.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[4]=http://de.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[5]=http://uk.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[6]=http://es.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[7]=http://fr.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[8]=http://in.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[9]=http://sg.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[10]=http://cn.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[11]=http://tw.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[12]=http://jp.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[13]=http://kr.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[14]=http://ru.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[15]=http://it.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[16]=http://br.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_URL[17]=http://la.download.nvidia.com/XFree86/Linux-x86/$VERSION/
+ SOURCE_VFY=sha1:e480c29f5c1ead123c546be10b81d747bd7a675c
+ WEB_SITE=http://www.nvidia.com/
+ LICENSE="proprietary"
+ ENTERED=20030804
+ UPDATED=20081228
+ SHORT="X11 binary drivers provided by NVIDIA for Geforce FX"
+
+cat << EOF
+These are the nvidia provided binary X11 drivers for their graphics
+cards. It also has the Linux kernel module needed for all supported NVIDIA
+Geforce FX cards. Supported GPUs: Geforce FX family known also as Geforce 5.
+
+If you have RIVA/Vanta/TNT/Geforce1/Quadro1-2/Geforce2 (not MX)
+check NVIDIA-old module.
+If you have Geforce 2MX/3/4 check NVIDIA-legacy module.
+If you have Geforce 6/7/8/9 check NVIDIA module.
+EOF
diff --git a/x11/NVIDIA-fx/DETAILS.x86_64 b/x11/NVIDIA-fx/DETAILS.x86_64
new file mode 100644
index 0000000..0a596a4
--- /dev/null
+++ b/x11/NVIDIA-fx/DETAILS.x86_64
@@ -0,0 +1,39 @@
+ MODULE=NVIDIA-fx
+ VERSION=173.14.15
+ SOURCE=NVIDIA-Linux-x86_64-$VERSION-pkg0.run
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/NVIDIA-Linux-x86_64-$VERSION-pkg0
+ SOURCE_URL[0]=ftp://download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[1]=http://download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[2]=http://us.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[3]=http://pl.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[4]=http://de.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[5]=http://uk.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[6]=http://es.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[7]=http://fr.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[8]=http://in.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[9]=http://sg.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[10]=http://cn.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[11]=http://tw.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[12]=http://jp.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[13]=http://kr.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[14]=http://ru.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[15]=http://it.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[16]=http://br.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_URL[17]=http://la.download.nvidia.com/XFree86/Linux-x86_64/$VERSION/
+ SOURCE_VFY=sha1:b9bc495c5221da83744ba882f91367cfde062446
+ WEB_SITE=http://www.nvidia.com/
+ LICENSE="proprietary"
+ ENTERED=20030804
+ UPDATED=20081228
+ SHORT="X11 binary drivers provided by NVIDIA for Geforce FX"
+
+cat << EOF
+These are the nvidia provided binary X11 drivers for their graphics
+cards. It also has the Linux kernel module needed for all NVIDIA
+Geforce FX. Supported GPUs: Geforce FX known also as Geforce 5.
+
+If you have RIVA/Vanta/TNT/Geforce1/Quadro1-2/Geforce2 (not MX)
+check NVIDIA-old module.
+If you have Geforce 2MX/3/4 check NVIDIA-legacy module.
+If you have Geforce 6/7/8/9 check NVIDIA module.
+EOF
diff --git a/x11/NVIDIA-fx/PRE_BUILD b/x11/NVIDIA-fx/PRE_BUILD
new file mode 100644
index 0000000..aa47872
--- /dev/null
+++ b/x11/NVIDIA-fx/PRE_BUILD
@@ -0,0 +1,7 @@
+(
+
+ cd $BUILD_DIRECTORY &&
+ rm -rf $SOURCE_DIRECTORY &&
+ sh $SOURCE_CACHE/$SOURCE --extract-only
+
+)
diff --git a/x11/NVIDIA-fx/profile.d/nvidia_gl.rc b/x11/NVIDIA-fx/profile.d/nvidia_gl.rc
new file mode 100644
index 0000000..60c63d2
--- /dev/null
+++ b/x11/NVIDIA-fx/profile.d/nvidia_gl.rc
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+source /etc/lunar/local/config
+
+if [ "$LUNAR_GL" == "binary" ] || [ "x$LUNAR_GL" == "x" ] ; then
+ if ! [ "x$LD_LIBRARY_PATH" == "x" ] ; then
+ export LD_LIBRARY_PATH="/usr/lib/opengl/nvidia:$LD_LIBRARY_PATH"
+ else
+ export LD_LIBRARY_PATH="/usr/lib/opengl/nvidia"
+ fi
+fi
More information about the Lunar-commits
mailing list