diff options
author | Edward Koenig <kingbeowulf@gmail.com> | 2011-06-18 18:54:53 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-06-18 18:54:53 -0500 |
commit | dc95f30c4b5d749ec5038db2bfd72684b557d3f0 (patch) | |
tree | 78259c585a8acae726ee22d97bf627cb689daf10 /system/nvidia-driver/nvidia-driver.SlackBuild | |
parent | c2cc4dceb751d377eec6f0a88e4a33292aff1456 (diff) |
system/nvidia-driver: Updated for version 270.41.19.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/nvidia-driver/nvidia-driver.SlackBuild')
-rw-r--r-- | system/nvidia-driver/nvidia-driver.SlackBuild | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/system/nvidia-driver/nvidia-driver.SlackBuild b/system/nvidia-driver/nvidia-driver.SlackBuild index c063fa2340d5..5fc3c921216f 100644 --- a/system/nvidia-driver/nvidia-driver.SlackBuild +++ b/system/nvidia-driver/nvidia-driver.SlackBuild @@ -23,9 +23,15 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Thanks to Robby Workman for suggestions to improve this script. +# +# ChangeLog +# ------------------------------------------------------------------------------ +# 1.0 20-MAR-2011 New Maintainer: Edward W. Koenig <kingbeowulf@gmail.com> +# 1.1 10-APR-2011 updated to new version, testing 13.37rc4.6692 +# 1.2 27-MAY-2011 new version, allow multilib option, minor edits PRGNAM=nvidia-driver -VERSION=260.19.29 +VERSION=270.41.19 BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -55,7 +61,8 @@ elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2 -fPIC" TARGET="x86_64" - SRCSUFFIX="-no-compat32" + SRCSUFFIX=${SCRSUFFIX:--no-compat32} +# Pass SRCSUFFIX="" if you d/l the pure full package with 32-bit compatibility. LIBDIRSUFFIX="64" else SLKCFLAGS="-O2" @@ -104,6 +111,20 @@ install -m 755 libnvidia-compiler.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/ install -m 644 nvidia.icd $PKG/etc/OpenCL/vendors/ +# Optional 32-bit support; NOTE! nvidia-switch does not operate here. +if [ "$ARCH" = "x86_64" -a "${SRCSUFFIX}" != "-no-compat32" ]; then + mkdir -p $PKG/usr/lib/{tls,vdpau} + + install -m 755 32/libGL.so.$VERSION $PKG/usr/lib/ + install -m 755 32/libGL.la $PKG/usr/lib/ + install -m 755 32/libnvidia-glcore.so.$VERSION $PKG/usr/lib/ + install -m 755 32/libvdpau_nvidia.so.$VERSION $PKG/usr/lib/vdpau/ + install -m 755 32/libcuda.so.$VERSION $PKG/usr/lib/ + install -m 755 32/tls/libnvidia-tls.so.$VERSION $PKG/usr/lib/tls/ + install -m 755 32/libOpenCL.so.1.0.0 $PKG/usr/lib/ + install -m 755 32/libnvidia-compiler.so.$VERSION $PKG/usr/lib/ +fi + # # Next come the apps for i in nvidia-smi nvidia-bug-report.sh; do install -m 755 $i $PKG/usr/bin/ @@ -134,6 +155,18 @@ cd $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules ln -sf libnvidia-wfb.so.$VERSION libnvidia-wfb.so.1 cd - +# symlinks for optional 32-bit support +if [ "${SRCSUFFIX}" != "-no-compat32" ]; then + cd $PKG/usr/lib + ln -sf libcuda.so.$VERSION libcuda.so.1 + ln -sf libcuda.so.1 libcuda.so + ln -sf libOpenCL.so.1.0.0 libOpenCL.so.1.0 + ln -sf libOpenCL.so.1.0 libOpenCL.so.1 + ln -sf libOpenCL.so.1 libOpenCL.so + ln -sf tls/libnvidia-tls.so.$VERSION libnvidia-tls.so.$VERSION + cd - +fi + # Compiling nvidia-installer from source cd $TMP/nvidia-installer-$VERSION chown -R root:root . @@ -179,10 +212,9 @@ cd $TMP/nvidia-xconfig-$VERSION install -m 644 _out/Linux_$TARGET/nvidia-xconfig.1.gz $PKG/usr/man/man1/ cd - - -# Self written bash script which I use to switch between nvidia and nv. +# Self written bash script which I (H.W.) use to switch between nvidia and nv. # It is now also used by doinst.sh to switch to the nvidia-driver right -# after installation. +# after installation. For pure 64-bit only (EWK). install -m 0755 $CWD/nvidia-switch $PKG/usr/sbin/ sed -i s/PKGVERSION/$VERSION/g $PKG/usr/sbin/nvidia-switch sed -i s/LIBDIRSUFFIX/$LIBDIRSUFFIX/g $PKG/usr/sbin/nvidia-switch |