2006-02-23 15:26:10 +00:00
|
|
|
# Description: nVIDIA Linux Display Driver
|
|
|
|
# URL: http://www.nvidia.com/
|
|
|
|
# Maintainer: Matt Housh, jaeger at morpheus dot net
|
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
|
2007-07-04 10:59:59 -05:00
|
|
|
version=100.14.11
|
2007-07-27 15:50:56 -05:00
|
|
|
release=3
|
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
|
2007-07-27 15:50:56 -05:00
|
|
|
ln -s libnvidia-wfb.so.$version $PKG/usr/lib/xorg/modules/libwfb.so
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
}
|