nvidia: create new subpkg with the OpenCL implementation.
This commit is contained in:
parent
46e5f2775f
commit
8e57419f6a
5 changed files with 47 additions and 8 deletions
1
srcpkgs/nvidia-opencl
Symbolic link
1
srcpkgs/nvidia-opencl
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
nvidia
|
|
@ -1,9 +1,8 @@
|
||||||
# Template file for 'nvidia-dkms'.
|
# Template file for 'nvidia-dkms'.
|
||||||
#
|
#
|
||||||
short_desc="${short_desc} -- DKMS kernel module"
|
short_desc="NVIDIA non free driver -- DKMS kernel module"
|
||||||
long_desc="${long_desc}
|
long_desc="
|
||||||
|
This package contains the NVIDIA non free kernel module files for DKMS."
|
||||||
This package contains the kernel module files for DKMS."
|
|
||||||
|
|
||||||
nonfree=yes
|
nonfree=yes
|
||||||
triggers="dkms"
|
triggers="dkms"
|
||||||
|
|
7
srcpkgs/nvidia/nvidia-opencl.rshlibs
Normal file
7
srcpkgs/nvidia/nvidia-opencl.rshlibs
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
libpthread.so.0
|
||||||
|
libz.so.1
|
||||||
|
libdl.so.2
|
||||||
|
libm.so.6
|
||||||
|
librt.so.1
|
||||||
|
libc.so.6
|
||||||
|
libgcc_s.so.1
|
31
srcpkgs/nvidia/nvidia-opencl.template
Normal file
31
srcpkgs/nvidia/nvidia-opencl.template
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Template file for 'nvidia-opencl'.
|
||||||
|
#
|
||||||
|
short_desc="NVIDIA non free driver -- OpenCL implementation"
|
||||||
|
long_desc="
|
||||||
|
This package contains the NVIDIA non free OpenCL implementation."
|
||||||
|
|
||||||
|
nonfree=yes
|
||||||
|
provides="libOpenCL-${version}"
|
||||||
|
replaces="libOpenCL>=0"
|
||||||
|
|
||||||
|
do_install() {
|
||||||
|
cd ${_pkg}
|
||||||
|
|
||||||
|
vinstall nvidia.icd 644 etc/OpenCL/vendors
|
||||||
|
|
||||||
|
vinstall libOpenCL.so.1.0.0 755 usr/lib
|
||||||
|
ln -sf libOpenCL.so.1.0.0 ${DESTDIR}/usr/lib/libOpenCL.so
|
||||||
|
ln -sf libOpenCL.so.1.0.0 ${DESTDIR}/usr/lib/libOpenCL.so.1
|
||||||
|
|
||||||
|
vinstall libnvidia-compiler.so.${version} 755 usr/lib
|
||||||
|
ln -sf libnvidia-compiler.so.${version} \
|
||||||
|
${DESTDIR}/usr/lib/libnvidia-compiler.so
|
||||||
|
ln -sf libnvidia-compiler.so.${version} \
|
||||||
|
${DESTDIR}/usr/lib/libnvidia-compiler.so.1
|
||||||
|
|
||||||
|
vinstall libnvidia-opencl.so.${version} 755 usr/lib
|
||||||
|
ln -sf libnvidia-opencl.so.${version} \
|
||||||
|
${DESTDIR}/usr/lib/libnvidia-opencl.so
|
||||||
|
ln -sf libnvidia-opencl.so.${version} \
|
||||||
|
${DESTDIR}/usr/lib/libnvidia-opencl.so.1
|
||||||
|
}
|
|
@ -1,19 +1,20 @@
|
||||||
# Template file for 'nvidia'
|
# Template file for 'nvidia'
|
||||||
pkgname=nvidia
|
pkgname=nvidia
|
||||||
version=310.19
|
version=310.19
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="NVIDIA drivers for linux"
|
short_desc="NVIDIA drivers for linux -- libraries and utilities"
|
||||||
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"
|
||||||
long_desc="
|
long_desc="
|
||||||
This package contains the non free NVIDIA Binary drivers for the Linux kernel."
|
This package contains the non free NVIDIA libraries and utilities for
|
||||||
|
the propietary NVIDIA driver for the Linux kernel."
|
||||||
|
|
||||||
create_wrksrc=yes
|
create_wrksrc=yes
|
||||||
noextract=yes
|
noextract=yes
|
||||||
nostrip=yes
|
nostrip=yes
|
||||||
nonfree=yes
|
nonfree=yes
|
||||||
subpackages="nvidia-dkms"
|
subpackages="nvidia-dkms nvidia-opencl"
|
||||||
depends="nvidia-dkms-${version}_${revision}"
|
depends="nvidia-dkms-${version}_${revision}"
|
||||||
|
|
||||||
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
if [ "${XBPS_MACHINE}" = "i686" ]; then
|
||||||
|
|
Loading…
Reference in a new issue