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

Bug#717500: [PATCH] Enable OpenCL support



From: Julian Wollrath <jwollrath@web.de>

v2: Add "Provides: opencl-icd"
v3: Andreas Boll <andreas.boll.dev@gmail.com>
    - Add "Priority: extra" to debug package
    - Enable build on kfreebsd
    - Rename package to mesa-opencl-icd
    - Fix rules/confflags to disable building on hurd

Signed-off-by: Andreas Boll <andreas.boll.dev@gmail.com>
---
 debian/control                    | 32 ++++++++++++++++++++++++++++++++
 debian/mesa-opencl-icd.install.in |  2 ++
 debian/rules                      |  1 +
 3 files changed, 35 insertions(+)
 create mode 100644 debian/mesa-opencl-icd.install.in

diff --git a/debian/control b/debian/control
index 7c760e2..fb6a806 100644
--- a/debian/control
+++ b/debian/control
@@ -41,6 +41,8 @@ Build-Depends:
  llvm-3.4-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf],
  libelf-dev [amd64 i386 kfreebsd-amd64 kfreebsd-i386 armhf],
  libwayland-dev (>= 1.2.0) [linux-any],
+ libclang-3.4-dev [linux-any kfreebsd-any],
+ libclc-dev [linux-any kfreebsd-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/
@@ -787,4 +789,34 @@ Description: Debugging symbols for the Mesa VDPAU video acceleration drivers
  .
  This package contains the debugging symbols for the VDPAU drivers.
 
+Package: mesa-opencl-icd
+Section: libs
+Architecture: linux-any kfreebsd-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: mesa-opencl-icd-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any kfreebsd-any
+Depends:
+ mesa-opencl-icd (= ${binary:Version}),
+ ${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.
+
 # vim: tw=0
diff --git a/debian/mesa-opencl-icd.install.in b/debian/mesa-opencl-icd.install.in
new file mode 100644
index 0000000..867081c
--- /dev/null
+++ b/debian/mesa-opencl-icd.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 2ba8af0..4dac588 100755
--- a/debian/rules
+++ b/debian/rules
@@ -106,6 +106,7 @@ else
 	confflags_DIRECT_RENDERING = --enable-driglx-direct
 	confflags_OPENVG = --enable-openvg --enable-gallium-egl
 	confflags_GALLIUM += --enable-vdpau
+	confflags_GALLIUM += --enable-opencl --enable-opencl-icd
 endif
 confflags_EGL = --with-egl-platforms="$(EGL_DISPLAYS)"
 confflags_GLES = --enable-gles1 --enable-gles2
-- 
1.9.0


Reply to: