2006-02-23 15:26:10 +00:00
|
|
|
# Description: nVIDIA Linux Display Driver
|
|
|
|
# URL: http://www.nvidia.com/
|
2008-02-03 16:15:35 -05:00
|
|
|
# Packager: Matt Housh, jaeger at morpheus dot net
|
|
|
|
# Maintainer: Brett Goulder, predatorfreak at dcaf-security dot org
|
2007-03-14 09:21:23 -05:00
|
|
|
# Depends on: xorg, gl-select
|
2006-03-30 16:19:32 +00:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
name=nvidia
|
2008-02-27 14:27:31 -05:00
|
|
|
version=169.12
|
2007-09-18 18:11:48 -05:00
|
|
|
release=1
|
2006-02-23 15:26:10 +00:00
|
|
|
source=(http://download.nvidia.com/XFree86/Linux-x86/$version/NVIDIA-Linux-x86-$version-pkg0.run \
|
2006-04-13 17:08:29 +00:00
|
|
|
$name-makefile.patch)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
sh NVIDIA-Linux-x86-$version-pkg0.run --extract-only
|
|
|
|
cd NVIDIA-Linux-x86-$version-pkg0
|
|
|
|
|
2006-04-13 17:08:29 +00:00
|
|
|
# patch Makefile.kbuild for normal users and no load during build
|
|
|
|
patch -p0 -i $SRC/$name-makefile.patch usr/src/nv/Makefile.kbuild
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
# create directories the Makefile expects
|
|
|
|
mkdir -p $PKG/usr/lib \
|
2007-03-14 09:21:23 -05:00
|
|
|
$PKG/usr/lib/xorg/modules/drivers \
|
|
|
|
$PKG/usr/lib/xorg/modules/extensions \
|
2006-02-23 15:26:10 +00:00
|
|
|
$PKG/usr/bin $PKG/usr/man/man1
|
|
|
|
|
2006-04-13 17:08:29 +00:00
|
|
|
# install libraries
|
2007-03-14 10:15:16 -05:00
|
|
|
cp -a usr/X11R6/lib/* $PKG/usr/lib/xorg/
|
2006-04-13 17:08:29 +00:00
|
|
|
cp -a usr/lib/* $PKG/usr/lib/
|
2006-02-23 15:26:10 +00:00
|
|
|
sed -i -e 's|__LIBGL_PATH__|/usr/lib|' $PKG/usr/lib/libGL.la
|
|
|
|
|
|
|
|
# copy includes
|
|
|
|
mkdir -p $PKG/usr/include/nvidia
|
|
|
|
cp -r usr/include/GL $PKG/usr/include/nvidia/
|
|
|
|
|
|
|
|
# install xconfig/settings programs and manpages
|
|
|
|
install -m 0755 usr/bin/nvidia-{xconfig,settings} $PKG/usr/bin/
|
|
|
|
install -m 0644 usr/share/man/man1/nvidia-{xconfig,settings}.1.gz \
|
|
|
|
$PKG/usr/man/man1/
|
|
|
|
|
|
|
|
# build the module
|
|
|
|
cd usr/src/nv
|
2006-04-13 17:08:29 +00:00
|
|
|
ln -s Makefile{.kbuild,}
|
|
|
|
IGNORE_CC_MISMATCH=1 make module
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
# install it
|
|
|
|
install -m 0644 -D nvidia.ko \
|
|
|
|
$PKG/lib/modules/`uname -r`/kernel/drivers/video/nvidia.ko
|
|
|
|
}
|