summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f23b9ff1de826e56232b4ea2aed22138869e24ef (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
41
42
43
44
45
46
47
48
# Maintainer: satcom886 <rostik.medved@gmail.com>

pkgname=vc4cl-git
pkgver=1
pkgrel=2
pkgdesc="VC4CL is an implementation of the OpenCL 1.2 standard for the VideoCore IV GPU."
arch=('any')
url="https://github.com/doe300/VC4CL"
license=('MIT')
groups=()
depends=('llvm' 'clinfo' 'ocl-icd')
makedepends=('wget' 'gcc' 'cmake' 'clang' 'opencl-headers')
optdepends=()
conflicts=('vc4c-git' 'vc4clstdlib-git')
provides=('opencl-pi' 'opencl-vc4' 'opencl-driver')
source=("VC4C::git+https://github.com/doe300/VC4C/" "VC4CL::git+https://github.com/doe300/VC4CL/" "VC4CLStdLib::git+https://github.com/doe300/VC4CLStdLib/" "auto_dummy.patch")
md5sums=('SKIP' 'SKIP' 'SKIP' 'e409cafcdc79aa53aef1484e53bd25e7')

build() {
    mkdir -p $srcdir/VC4CL/build
	mkdir -p $srcdir/VC4C/build
	mkdir -p $srcdir/VC4CLStdLib/build
	cd $srcdir/VC4CLStdLib/build
	cmake ..
	make
	cd ../..
    cd VC4C/build
	cmake ..
	make
    cd ../..
    cd VC4CL/build
    cmake ..
    make
    cd ../..
}

prepare() {
	patch -R $srcdir/VC4C/src/ProcessUtil.cpp $srcdir/auto_dummy.patch
}

package() {
	cd $srcdir/VC4CLStdLib/build
	make DESTDIR="$pkgdir"/ install
	cd $srcdir/VC4C/build
	make DESTDIR="$pkgdir"/ install
    cd $srcdir/VC4CL/build
    make DESTDIR="$pkgdir"/ install
}