> Anyways, I attached an updated patch which applies on top of the
> debian-experimental branch in git.
Somehow a chunk of the patch want missing, now it should be complete.
>From 2735c8ef434d6705bfe4b9d8f6d787ca5009c6f7 Mon Sep 17 00:00:00 2001
From: Julian Wollrath <jwollr...@web.de>
Date: Fri, 8 Nov 2013 19:33:23 +0100
Subject: [PATCH] Add OpenCL support

---
 debian/changelog                  |  3 +++
 debian/control                    | 31 +++++++++++++++++++++++++++++++
 debian/libopencl1-mesa.install.in |  2 ++
 debian/rules                      |  1 +
 4 files changed, 37 insertions(+)
 create mode 100644 debian/libopencl1-mesa.install.in

diff --git a/debian/changelog b/debian/changelog
index 91f544eef451..b9f169f729c1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,9 @@ mesa (10.0.0~rc2-1) UNRELEASED; urgency=low
   * Cherry pick commit to hide some gbm symbols.
   * Manually install *_dri.so to preserve mega-driver hardlinks.
 
+  [ Julian Wollrath ]
+  * Enable OpenCL support.
+
  -- Emilio Pozuelo Monfort <po...@debian.org>  Sun, 27 Oct 2013 20:49:30 +0100
 
 mesa (9.2.2-1) unstable; urgency=low
diff --git a/debian/control b/debian/control
index 6e156f0f7c56..df6b03726a9f 100644
--- a/debian/control
+++ b/debian/control
@@ -33,6 +33,8 @@ Build-Depends:
  llvm-3.3-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.3-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/
@@ -748,6 +750,35 @@ 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},
+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 af5ae4e557f4..ad80fa7b5f69 100755
--- a/debian/rules
+++ b/debian/rules
@@ -109,6 +109,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.8.4.4

Reply via email to