summaryrefslogtreecommitdiffstats
path: root/acompiler
diff options
context:
space:
mode:
Diffstat (limited to 'acompiler')
-rw-r--r--acompiler/nvidia-173xx/.footprint39
-rw-r--r--acompiler/nvidia-173xx/.md5sum1
-rw-r--r--acompiler/nvidia-173xx/Pkgfile47
-rw-r--r--acompiler/nvidia-173xx/post-install2
-rw-r--r--acompiler/nvidia-173xx/pre-install3
5 files changed, 92 insertions, 0 deletions
diff --git a/acompiler/nvidia-173xx/.footprint b/acompiler/nvidia-173xx/.footprint
new file mode 100644
index 000000000..7f07d6bee
--- /dev/null
+++ b/acompiler/nvidia-173xx/.footprint
@@ -0,0 +1,39 @@
+drwxr-xr-x root/root etc/
+drwxr-xr-x root/root etc/X11/
+drwxr-xr-x root/root etc/X11/xorg.conf.d/
+-rw-r--r-- root/root etc/X11/xorg.conf.d/30-nvidia.conf
+drwxr-xr-x root/root lib/
+drwxr-xr-x root/root lib/modules/
+drwxr-xr-x root/root lib/modules/<kernel-version>/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/video/
+drwxr-xr-x root/root lib/modules/<kernel-version>/kernel/video/nvidia/
+-rw-r--r-- root/root lib/modules/<kernel-version>/kernel/video/nvidia/nvidia.ko
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/nvidia/
+drwxr-xr-x root/root usr/include/nvidia/GL/
+-r--r--r-- root/root usr/include/nvidia/GL/gl.h
+-r--r--r-- root/root usr/include/nvidia/GL/glext.h
+-r--r--r-- root/root usr/include/nvidia/GL/glx.h
+-r--r--r-- root/root usr/include/nvidia/GL/glxext.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/libGL.la
+-rwxr-xr-x root/root usr/lib/libGL.so.173.14.27
+lrwxrwxrwx root/root usr/lib/libGLcore.so -> libGLcore.so.173.14.27
+-rwxr-xr-x root/root usr/lib/libGLcore.so.173.14.27
+-rwxr-xr-x root/root usr/lib/libnvidia-cfg.so.173.14.27
+-rwxr-xr-x root/root usr/lib/libnvidia-tls.so.173.14.27
+drwxr-xr-x root/root usr/lib/tls/
+-rwxr-xr-x root/root usr/lib/tls/libnvidia-tls.so.173.14.27
+drwxr-xr-x root/root usr/lib/xorg/
+-r--r--r-- root/root usr/lib/xorg/libXvMCNVIDIA.a
+-rwxr-xr-x root/root usr/lib/xorg/libXvMCNVIDIA.so.173.14.27
+drwxr-xr-x root/root usr/lib/xorg/modules/
+drwxr-xr-x root/root usr/lib/xorg/modules/drivers/
+-rwxr-xr-x root/root usr/lib/xorg/modules/drivers/nvidia_drv.so
+drwxr-xr-x root/root usr/lib/xorg/modules/extensions/
+lrwxrwxrwx root/root usr/lib/xorg/modules/extensions/libGLcore.so -> /usr/lib/libGLcore.so
+lrwxrwxrwx root/root usr/lib/xorg/modules/extensions/libglx.so -> /usr/lib/xorg/modules/extensions/libglx.so.173.14.27
+-rwxr-xr-x root/root usr/lib/xorg/modules/extensions/libglx.so.173.14.27
+-rwxr-xr-x root/root usr/lib/xorg/modules/libnvidia-wfb.so.173.14.27
diff --git a/acompiler/nvidia-173xx/.md5sum b/acompiler/nvidia-173xx/.md5sum
new file mode 100644
index 000000000..5902f957f
--- /dev/null
+++ b/acompiler/nvidia-173xx/.md5sum
@@ -0,0 +1 @@
+35a6531f71cd6b070f10be8ed11093d4 NVIDIA-Linux-x86-173.14.27-pkg0.run
diff --git a/acompiler/nvidia-173xx/Pkgfile b/acompiler/nvidia-173xx/Pkgfile
new file mode 100644
index 000000000..8d8424abe
--- /dev/null
+++ b/acompiler/nvidia-173xx/Pkgfile
@@ -0,0 +1,47 @@
+# Description: Pilotes pour les cartes graphiques NVIDIA
+# URL: http://www.nvidia.com/object/unix.html
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: xorg-server
+
+name=nvidia-173xx
+version=173.14.27
+release=1
+[ "`uname -m`" == "i686" ] && _ARCH=x86
+[ "`uname -m`" == "x86_64" ] && _ARCH=x86_64
+source=(http://us.download.nvidia.com/XFree86/Linux-${_ARCH}/$version/NVIDIA-Linux-${_ARCH}-$version-pkg0.run)
+
+build() {
+ sh NVIDIA-Linux-${_ARCH}-$version-pkg0.run --extract-only
+ cd NVIDIA-Linux-${_ARCH}-$version-pkg0
+
+ mkdir -p $PKG/usr/lib \
+ $PKG/usr/lib/xorg/modules/drivers \
+ $PKG/usr/lib/xorg/modules/extensions
+
+ cp -a usr/X11R6/lib/* $PKG/usr/lib/xorg/
+ cp -a usr/lib/* $PKG/usr/lib/
+ sed -i -e 's|__LIBGL_PATH__|/usr/lib|' $PKG/usr/lib/libGL.la
+ ln -sf libGLcore.so.$version $PKG/usr/lib/libGLcore.so
+ ln -sf /usr/lib/libGLcore.so $PKG/usr/lib/xorg/modules/extensions/libGLcore.so
+ ln -sv libglx.so.$version $PKG//usr/lib/xorg/modules/extensions/libglx.so
+ # copy includes
+ mkdir -p $PKG/usr/include/nvidia
+ cp -r usr/include/GL $PKG/usr/include/nvidia/
+
+ # build the module
+ cd usr/src/nv
+ ln -s Makefile{.kbuild,}
+ IGNORE_CC_MISMATCH=1 make module
+
+ # install it
+ install -m 0644 -D nvidia.ko \
+ $PKG/lib/modules/`uname -r`/kernel/video/nvidia/nvidia.ko
+ mkdir -p $PKG/etc/X11/xorg.conf.d
+cat > $PKG/etc/X11/xorg.conf.d/30-nvidia.conf << "EOF"
+Section "Device"
+ Identifier "NVIDIA"
+ Driver "nvidia"
+EndSection
+EOF
+}
diff --git a/acompiler/nvidia-173xx/post-install b/acompiler/nvidia-173xx/post-install
new file mode 100644
index 000000000..4772910f3
--- /dev/null
+++ b/acompiler/nvidia-173xx/post-install
@@ -0,0 +1,2 @@
+#!/bin/bash
+depmod
diff --git a/acompiler/nvidia-173xx/pre-install b/acompiler/nvidia-173xx/pre-install
new file mode 100644
index 000000000..a1ee5214f
--- /dev/null
+++ b/acompiler/nvidia-173xx/pre-install
@@ -0,0 +1,3 @@
+if ( pkginfo -i | grep libgl > /dev/null ) ; then
+ pkgrm libgl
+fi