[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#717500: [PATCH] Enable OpenCL support



v2: Add "Provides: opencl-icd"
---
 debian/control                    | 32 ++++++++++++++++++++++++++++++++
 debian/libopencl1-mesa.install.in |  2 ++
 debian/rules                      |  1 +
 3 files changed, 35 insertions(+)
 create mode 100644 debian/libopencl1-mesa.install.in

diff --git a/debian/control b/debian/control
index d040f08832cd..10c98337674c 100644
--- a/debian/control
+++ b/debian/control
@@ -40,6 +40,8 @@ Build-Depends:
  llvm-3.4-dev (>= 1:3.3-4) [amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf],
  libelf-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf],
  libwayland-dev (>= 1.0.2) [linux-any],
+ libclang-3.4-dev [linux-any],
+ libclc-dev [linux-any],
 Vcs-Git: git://git.debian.org/git/pkg-xorg/lib/mesa
 Vcs-Browser: http://git.debian.org/?p=pkg-xorg/lib/mesa.git
 Homepage: http://mesa3d.sourceforge.net/
@@ -708,6 +710,36 @@ Description: Developer documentation for Mesa
  extensions, the complete set of release notes and the development header
  files common to all Mesa packages.
 
+Package: libopencl1-mesa
+Section: libs
+Architecture: linux-any
+Depends:
+ libclc-r600,
+ ocl-icd-libopencl1,
+ ${shlibs:Depends},
+ ${misc:Depends},
+Provides: opencl-icd
+Description: free implementation of the OpenCL API -- ICD runtime
+ This package contains the mesa implementation of the OpenCL (Open Compute
+ Language) library, which is intended for use with an ICD loader. OpenCL
+ provides a standardized interface for computational analysis on graphical
+ processing units.
+
+Package: libopencl1-mesa-dbg
+Section: debug
+Architecture: linux-any
+Depends:
+ libopencl1-mesa (= ${binary:Version}),
+ ${shlibs:Depends},
+ ${misc:Depends},
+Description: free implementation of the OpenCL API -- debugging symbols
+ This package contains the mesa implementation of the OpenCL (Open Compute
+ Language) library, which is intended for use with an ICD loader. OpenCL
+ provides a standardized interface for computational analysis on graphical
+ processing units.
+ .
+ This package contains the debugging symbols for the mesa OpenCL ICD library.
+
 Package: libosmesa6
 Section: libs
 Architecture: any
diff --git a/debian/libopencl1-mesa.install.in b/debian/libopencl1-mesa.install.in
new file mode 100644
index 000000000000..867081c709d2
--- /dev/null
+++ b/debian/libopencl1-mesa.install.in
@@ -0,0 +1,2 @@
+dri/etc/OpenCL/vendors/mesa.icd etc/OpenCL/vendors
+dri/usr/lib/${DEB_HOST_MULTIARCH}/libMesaOpenCL* usr/lib/${DEB_HOST_MULTIARCH}
diff --git a/debian/rules b/debian/rules
index d20bc1fafeae..780423334ce0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -110,6 +110,7 @@ confflags-dri = \
 	--with-dri-drivers="$(DRI_DRIVERS)" \
 	--with-dri-driverdir=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \
 	--with-dri-searchpath='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri' \
+	--enable-opencl --enable-opencl-icd \
 	--enable-osmesa \
 	--enable-glx-tls \
 	--enable-shared-glapi \
-- 
1.9.0.rc3


Reply to: