nvidia: update to 334.21.
This commit is contained in:
parent
8d7e6525e6
commit
1331233217
|
@ -1,16 +0,0 @@
|
||||||
# Overwrite libGL and libglx symlinks.
|
|
||||||
case ${ACTION} in
|
|
||||||
post)
|
|
||||||
rm -f usr/lib/libGL.so usr/lib/libGL.so.1
|
|
||||||
rm -f usr/lib/xorg/modules/extensions/libglx.so
|
|
||||||
|
|
||||||
# libGL
|
|
||||||
cd usr/lib
|
|
||||||
ln -sf libGL-nvidia.so.${VERSION%_*} libGL.so
|
|
||||||
ln -sf libGL-nvidia.so.${VERSION%_*} libGL.so.1
|
|
||||||
|
|
||||||
# libglx
|
|
||||||
cd ../../usr/lib/xorg/modules/extensions
|
|
||||||
ln -sf libglx-nvidia.so.${VERSION%_*} libglx.so
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -1,19 +0,0 @@
|
||||||
# Restore mesa libGL and xorg-server libglx symlinks.
|
|
||||||
case ${ACTION} in
|
|
||||||
purge)
|
|
||||||
rm -f usr/lib/libGL.so usr/lib/libGL.so.1
|
|
||||||
rm -f usr/lib/xorg/modules/extensions/libglx.so
|
|
||||||
|
|
||||||
# libGL
|
|
||||||
cd usr/lib
|
|
||||||
if [ -f libGL-mesa.so.1.2.0 ]; then
|
|
||||||
ln -sf libGL-mesa.so.1.2.0 libGL.so
|
|
||||||
ln -sf libGL-mesa.so.1.2.0 libGL.so.1
|
|
||||||
fi
|
|
||||||
# libglx
|
|
||||||
if [ -f xorg/modules/extensions/libglx-xorg.so ]; then
|
|
||||||
cd xorg/modules/extensions
|
|
||||||
ln -sf libglx-xorg.so libglx.so
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -3,8 +3,8 @@
|
||||||
_desc="NVIDIA drivers for linux"
|
_desc="NVIDIA drivers for linux"
|
||||||
|
|
||||||
pkgname=nvidia
|
pkgname=nvidia
|
||||||
version=331.38
|
version=334.21
|
||||||
revision=2
|
revision=1
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="Propietary NVIDIA license"
|
license="Propietary NVIDIA license"
|
||||||
homepage="http://www.nvidia.com"
|
homepage="http://www.nvidia.com"
|
||||||
|
@ -16,19 +16,23 @@ short_desc="${_desc} - Libraries and Utilities"
|
||||||
depends="xserver-abi-video<16 nvidia-dkms-${version}_${revision} pkg-config"
|
depends="xserver-abi-video<16 nvidia-dkms-${version}_${revision} pkg-config"
|
||||||
conflicts="catalyst>=0"
|
conflicts="catalyst>=0"
|
||||||
|
|
||||||
if [ "$XBPS_MACHINE" = "i686" ]; then
|
provides="libGL-${version}_${revision}"
|
||||||
|
replaces="libGL>=0"
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
||||||
_pkg="NVIDIA-Linux-x86-${version}"
|
_pkg="NVIDIA-Linux-x86-${version}"
|
||||||
distfiles="http://us.download.nvidia.com/XFree86/Linux-x86/${version}/NVIDIA-Linux-x86-${version}.run"
|
distfiles="http://us.download.nvidia.com/XFree86/Linux-x86/${version}/NVIDIA-Linux-x86-${version}.run"
|
||||||
checksum=396e4d8fffacd271937ef57dd90ec2dea3ff32ee9f1de73ce5370a6e29382bf4
|
checksum=ece6ac1d66b0de53b6db0ae92f72112f734c9ec4b7f1ffb1ec508d32f700df39
|
||||||
else
|
else
|
||||||
_pkg="NVIDIA-Linux-x86_64-${version}"
|
_pkg="NVIDIA-Linux-x86_64-${version}"
|
||||||
distfiles="http://us.download.nvidia.com/XFree86/Linux-x86_64/${version}/NVIDIA-Linux-x86_64-${version}.run"
|
distfiles="http://us.download.nvidia.com/XFree86/Linux-x86_64/${version}/NVIDIA-Linux-x86_64-${version}.run"
|
||||||
checksum=1015ac65a85ba39bdbe9e6bac54ae7ce3b2441fc7512909074e991242a46cf34
|
checksum=dd35011967b815e096c267f80b36664e34d779bc33017f396dabbd1a1b86d057
|
||||||
fi
|
fi
|
||||||
|
|
||||||
do_extract() {
|
do_extract() {
|
||||||
install -m755 ${XBPS_SRCDISTDIR}/${_pkg}.run ${wrksrc}
|
install -m755 ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${_pkg}.run ${wrksrc}
|
||||||
cd ${wrksrc} && ./${_pkg}.run --extract-only
|
cd ${wrksrc}
|
||||||
|
./${_pkg}.run --extract-only
|
||||||
rm -f ${_pkg}.run
|
rm -f ${_pkg}.run
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,11 +43,14 @@ do_install() {
|
||||||
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers
|
vinstall nvidia_drv.so 755 usr/lib/xorg/modules/drivers
|
||||||
|
|
||||||
# GLX extension module for X
|
# GLX extension module for X
|
||||||
vinstall libglx.so.${version} 755 usr/lib/xorg/modules/extensions \
|
vinstall libglx.so.${version} 755 usr/lib/xorg/modules/extensions
|
||||||
libglx-nvidia.so.${version}
|
ln -sf libglx.so.${version} ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so
|
||||||
|
ln -sf libglx.so.${version} ${DESTDIR}/usr/lib/xorg/modules/extensions/libglx.so.1
|
||||||
|
|
||||||
# OpenGL library
|
# OpenGL library
|
||||||
vinstall libGL.so.${version} 755 usr/lib libGL-nvidia.so.${version}
|
vinstall libGL.so.${version} 755 usr/lib
|
||||||
|
ln -sf libGL.so.${version} ${DESTDIR}/usr/lib/libGL.so
|
||||||
|
ln -sf libGL.so.${version} ${DESTDIR}/usr/lib/libGL.so.1
|
||||||
|
|
||||||
# OpenGL core library
|
# OpenGL core library
|
||||||
vinstall libnvidia-glcore.so.${version} 755 usr/lib
|
vinstall libnvidia-glcore.so.${version} 755 usr/lib
|
||||||
|
|
Loading…
Reference in New Issue