summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-17 12:48:39 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-11-17 12:49:34 -0300
commite4bfd893e8a6fc673398d21fcd0dd71540493638 (patch)
tree43466e19f9960ae8f249bebca3616baab4e08bf2
parentc95d9d830b0212c5e1e1c0c5b7591e4eb3697e9b (diff)
pocl: add pkg to [pcr]
-rw-r--r--pcr/pocl/PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/pcr/pocl/PKGBUILD b/pcr/pocl/PKGBUILD
new file mode 100644
index 000000000..8ab516903
--- /dev/null
+++ b/pcr/pocl/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer(Arch): spider-mario <spidermario@free.fr>
+# Contributor(Arch): Olaf Leidinger <oleid@mescharet.de>
+# Contributor(Arch): fabien Cellier <fabien.cellier@gmail.com>
+
+pkgname=pocl
+pkgver=0.13
+pkgrel=1
+pkgdesc="Portable OpenCL is an free implementation of OpenCL which can be easily adapted for new targets"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://portablecl.org/"
+license=('GPL')
+depends=('clang38' 'libcl' 'hwloc' 'libltdl' 'opencl-headers')
+source=("http://pocl.sourceforge.net/downloads/$pkgname-$pkgver.tar.gz")
+makedepends=('cmake' 'llvm38' 'ocl-icd' 'glew')
+sha512sums=('1892a6167bb5d48acaa79de4a9a76355c624e01a3bec31599947d6972eddcfd0b7523d61a3bd08018a30e34ab5a1b225a7ca2feaa2c2f6fcf03403fb887a6c0d')
+
+build() {
+ mkdir -p build
+ cd build
+
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib -D_libdir_set=false \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DEXTRA_KERNEL_CXX_FLAGS='-std=c++11' \
+ "$srcdir/$pkgname-$pkgver"
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir"/ install
+ chmod +x "$pkgdir"/usr/bin/pocl-standalone
+}