diff -u mesa-9.2/debian/changelog mesa-9.2/debian/changelog
--- mesa-9.2/debian/changelog
+++ mesa-9.2/debian/changelog
@@ -1,3 +1,9 @@
+mesa (9.2-1gilbert1) UNRELEASED; urgency=low
+
+  * Enable opencl (closes: #717500).
+
+ -- Michael Gilbert <mgilbert@debian.org>  Sun, 01 Sep 2013 23:33:53 +0000
+
 mesa (9.2-1) experimental; urgency=low
 
   [ Jon Severinsson ]
diff -u mesa-9.2/debian/control mesa-9.2/debian/control
--- mesa-9.2/debian/control
+++ mesa-9.2/debian/control
@@ -33,6 +33,7 @@
  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],
+ libclc-dev,
 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/
@@ -335,6 +336,55 @@
  This package contains the debugging symbols for the drivers required for
  hardware accelerated rendering of EGL-based graphics libraries.
 
+Package: libopencl1-mesa
+Section: libs
+Architecture: linux-any kfreebsd-any
+Depends:
+ ${shlibs:Depends},
+ ${misc:Depends},
+Recommends:
+ libclc-r600,
+Provides: libopencl1
+Conflicts: libopencl1
+Replaces: libopencl1
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: free implementation of the OpenCL API -- runtime
+ This package contains the mesa implementation of the OpenCL (Open Compute
+ Language) library.  OpenCL provides a standardized interface for
+ computational analysis on graphical processing units.
+
+Package: libopencl1-mesa-dbg
+Section: debug
+Priority: extra
+Architecture: linux-any kfreebsd-any
+Depends:
+ libopencl1-mesa (= ${binary:Version}),
+ ${misc:Depends},
+Multi-Arch: same
+Description: free implementation of the OpenCL API -- debugging symbols
+ This package contains the mesa implementation of the OpenCL (Open Compute
+ Language) library.  OpenCL provides a standardized interface for
+ computational analysis on graphical processing units.
+ .
+ This package contains the debugging symbols for the OpenCL library.
+
+Package: libopencl1-mesa-dev
+Section: libdevel
+Architecture: linux-any kfreebsd-any
+Depends:
+ libopencl1-mesa (= ${binary:Version}),
+ ${misc:Depends},
+Recommends:
+ libclc-dev,
+Description: free implementation of the OpenCL API -- development files
+ This package contains the mesa implementation of the OpenCL (Open Compute
+ Language) library.  OpenCL provides a standardized interface for
+ computational analysis on graphical processing units.
+ .
+ This package contains the development environment required for compiling
+ programs against OpenCL.
+
 Package: libopenvg1-mesa
 Section: libs
 Architecture: linux-any kfreebsd-any
diff -u mesa-9.2/debian/rules mesa-9.2/debian/rules
--- mesa-9.2/debian/rules
+++ mesa-9.2/debian/rules
@@ -110,6 +110,7 @@
 	--with-dri-driverdir=/usr/lib/$(DEB_HOST_MULTIARCH)/dri \
 	--with-dri-searchpath='/usr/lib/$(DEB_HOST_MULTIARCH)/dri:\$$$${ORIGIN}/dri:/usr/lib/dri' \
 	--enable-osmesa \
+	--enable-opencl \
 	--enable-glx-tls \
 	--enable-shared-glapi \
 	--enable-texture-float \
only in patch2:
unchanged:
--- mesa-9.2.orig/debian/libopencl1-mesa-dev.install.in
+++ mesa-9.2/debian/libopencl1-mesa-dev.install.in
@@ -0,0 +1,2 @@
+dri/usr/lib/${DEB_HOST_MULTIARCH}/libOpenCL.so usr/lib/${DEB_HOST_MULTIARCH}
+dri/usr/include/CL usr/include
only in patch2:
unchanged:
--- mesa-9.2.orig/debian/libopencl1-mesa.install.in
+++ mesa-9.2/debian/libopencl1-mesa.install.in
@@ -0,0 +1 @@
+dri/usr/lib/${DEB_HOST_MULTIARCH}/libOpenCL.so.1* usr/lib/${DEB_HOST_MULTIARCH}
