From e4bfd893e8a6fc673398d21fcd0dd71540493638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Thu, 17 Nov 2016 12:48:39 -0300 Subject: pocl: add pkg to [pcr] --- pcr/pocl/PKGBUILD | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pcr/pocl/PKGBUILD (limited to 'pcr') 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 +# Contributor(Arch): Olaf Leidinger +# Contributor(Arch): fabien Cellier + +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 +} -- cgit v1.2.3-2-g168b