blob: 44b603bbc52bbe4aa1cd7605f53c0896d51837cd (
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
35
36
37
38
39
40
|
# Maintainer: Simon Reiser <simonfxr AT gmail DOT com>
pkgname=pocl-cuda-git
_pkgname=pocl
pkgver=v1.2.r156.ga0b083a1
pkgrel=1
pkgdesc="Portable OpenCL is an open-source implementation of OpenCL which can be easily adapted for new targets (git version)"
arch=('i686' 'x86_64')
url="http://portablecl.org/"
license=('GPL')
depends=('clang' 'opencl-icd-loader' 'hwloc' 'libltdl' 'opencl-headers' 'cuda')
makedepends=('git' 'cmake' 'llvm' 'ocl-icd')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=("$_pkgname::git+https://github.com/pocl/pocl.git")
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPOCL_INSTALL_ICD_VENDORDIR='/etc/OpenCL/vendors' \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_CUDA=True \
"$srcdir/$_pkgname"
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir"/ install
}
|