blob: 8ab5169037a131bd51b959c97105133fb89e6adc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
}
|