nvidia: update to 304.48 again, create same symlinks than nvidia-installer.
This commit is contained in:
parent
b6c912eaac
commit
461eceb151
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'nvidia'
|
# Template file for 'nvidia'
|
||||||
pkgname=nvidia
|
pkgname=nvidia
|
||||||
version=304.43
|
version=304.48
|
||||||
revision=1
|
revision=1
|
||||||
short_desc="NVIDIA drivers for linux"
|
short_desc="NVIDIA drivers for linux"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
@ -19,11 +19,11 @@ depends="nvidia-dkms>=${version}_${revision}"
|
||||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||||
_pkg="NVIDIA-Linux-x86-${version}"
|
_pkg="NVIDIA-Linux-x86-${version}"
|
||||||
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86/${version}/${_pkg}.run"
|
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86/${version}/${_pkg}.run"
|
||||||
checksum=7c7f483302a0a5a828b8ef1f5a4a53f8e16d3b73d0c17bd61ed0d843cad32c4c
|
checksum=af25dab21e7f06e34cc63fb06f427c0e8de110f66b25fd571cd814a9525513b8
|
||||||
else
|
else
|
||||||
_pkg="NVIDIA-Linux-x86_64-${version}-no-compat32"
|
_pkg="NVIDIA-Linux-x86_64-${version}-no-compat32"
|
||||||
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run"
|
distfiles="ftp://download.nvidia.com/XFree86/Linux-x86_64/${version}/${_pkg}.run"
|
||||||
checksum=31b911f5bbd7c3ca3f1320f7f5fa60f193601f4af333f3322ee0987721edcd54
|
checksum=691200dfcb7f29fb351b208485bf8f5a9f80b1ddf38b9e0369ec531754d4a721
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
|
@ -45,23 +45,41 @@ do_install() {
|
||||||
# OpenGL library
|
# OpenGL library
|
||||||
vinstall libGL.so.${version} 755 usr/lib libGL-nvidia.so.${version}
|
vinstall libGL.so.${version} 755 usr/lib libGL-nvidia.so.${version}
|
||||||
|
|
||||||
for f in libnvidia-glcore libXvMCNVIDIA libvdpau_nvidia libnvidia-tls \
|
# OpenGL core library
|
||||||
libnvidia-cfg libnvidia-ml libcuda libnvcuvid; do
|
vinstall libnvidia-glcore.so.${version} 755 usr/lib
|
||||||
if [ "${f}" = "libvdpau_nvidia" ]; then
|
ln -sf libnvidia-glcore.so.${version} ${DESTDIR}/usr/lib/libnvidia-glcore.so
|
||||||
_dir="usr/lib/vdpau"
|
|
||||||
else
|
# XvMC
|
||||||
_dir="usr/lib"
|
vinstall libXvMCNVIDIA.a 644 usr/lib
|
||||||
fi
|
vinstall libXvMCNVIDIA.so.${version} 755 usr/lib
|
||||||
if [ -e "${f}.so.${version}" ]; then
|
ln -sf libXvMCNVIDIA.so.${version} ${DESTDIR}/usr/lib/libXvMCNVIDIA_dynamic.so
|
||||||
vinstall ${f}.so.${version} 755 ${_dir}
|
ln -sf libXvMCNVIDIA.so.${version} ${DESTDIR}/usr/lib/libXvMCNVIDIA_dynamic.so.1
|
||||||
elif [ -e "tls/${f}.so.${version}" ]; then
|
|
||||||
vinstall tls/${f}.so.${version} 755 ${_dir}
|
# VDPAU
|
||||||
fi
|
vinstall libvdpau_nvidia.so.${version} 755 usr/lib/vdpau
|
||||||
ln -sfr ${DESTDIR}/${_dir}/${f}.so.${version} \
|
ln -sf libvdpau_nvidia.so.${version} ${DESTDIR}/usr/lib/vdpau/libvdpau_nvidia.so
|
||||||
${DESTDIR}/${_dir}/${f}.so
|
ln -sf libvdpau_nvidia.so.${version} ${DESTDIR}/usr/lib/vdpau/libvdpau_nvidia.so.1
|
||||||
ln -sfr ${DESTDIR}/${_dir}/${f}.so.${version} \
|
|
||||||
${DESTDIR}/${_dir}/${f}.so.1
|
# nvidia-tls library
|
||||||
done
|
vinstall tls/libnvidia-tls.so.${version} 755 usr/lib
|
||||||
|
ln -sf libnvidia-tls.so.${version} ${DESTDIR}/usr/lib/libnvidia-tls.so
|
||||||
|
|
||||||
|
vinstall libnvidia-cfg.so.${version} 755 usr/lib
|
||||||
|
ln -sf libnvidia-cfg.so.${version} ${DESTDIR}/usr/lib/libnvidia-cfg.so
|
||||||
|
ln -sf libnvidia-cfg.so.${version} ${DESTDIR}/usr/lib/libnvidia-cfg.so.1
|
||||||
|
|
||||||
|
vinstall libnvidia-ml.so.${version} 755 usr/lib
|
||||||
|
ln -sf libnvidia-ml.so.${version} ${DESTDIR}/usr/lib/libnvidia-ml.so
|
||||||
|
ln -sf libnvidia-ml.so.${version} ${DESTDIR}/usr/lib/libnvidia-ml.so.1
|
||||||
|
|
||||||
|
# CUDA
|
||||||
|
vinstall libcuda.so.${version} 755 usr/lib
|
||||||
|
ln -sf libcuda.so.${version} ${DESTDIR}/usr/lib/libcuda.so
|
||||||
|
ln -sf libcuda.so.${version} ${DESTDIR}/usr/lib/libcuda.so.1
|
||||||
|
|
||||||
|
vinstall libnvcuvid.so.${version} 755 usr/lib
|
||||||
|
ln -sf libnvcuvid.so.${version} ${DESTDIR}/usr/lib/libnvcuvid.so
|
||||||
|
ln -sf libnvcuvid.so.${version} ${DESTDIR}/usr/lib/libnvcuvid.so.1
|
||||||
|
|
||||||
# nvidia-xconfig
|
# nvidia-xconfig
|
||||||
vinstall nvidia-xconfig 755 usr/bin
|
vinstall nvidia-xconfig 755 usr/bin
|
||||||
|
|
Loading…
Reference in New Issue