blob: 4599765e5360043a3240d06f370e276174054606 (
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
|
# Maintainer: Gonzalo Exequiel Pedone <hipersayan DOT x AT gmail DOT com>
# Contributor: Laurent Carlier <lordheavym@gmail.com>
_android_arch=x86
pkgname=android-${_android_arch}-opencl-clhpp
pkgver=2024.05.08
pkgrel=1
arch=('any')
pkgdesc="OpenCL C++ header files (Android ${_android_arch})"
url='https://github.com/KhronosGroup/OpenCL-CLHPP'
license=('custom')
groups=('android-opencl-clhpp')
depends=("android-${_android_arch}-opencl-headers")
makedepends=('android-cmake'
"android-${_android_arch}-opencl-headers")
options=(!strip !buildflags staticlibs !emptydirs)
source=("https://github.com/KhronosGroup/OpenCL-CLHPP/archive/v${pkgver}.tar.gz")
md5sums=('8f1a8c6f309c565117fc92e591537df9')
prepare() {
cd "${srcdir}/OpenCL-CLHPP-${pkgver}"
sed -i 's|cmake_minimum_required(VERSION 3.1)|cmake_minimum_required(VERSION 3.6)|g' CMakeLists.txt
}
build() {
cd "${srcdir}/OpenCL-CLHPP-${pkgver}"
source android-env ${_android_arch}
android-${_android_arch}-cmake \
-S . \
-B build \
-DBUILD_EXAMPLES=OFF \
-DBUILD_DOCS=ON \
-DBUILD_TESTING=OFF \
-DOpenCLHeaders_DIR="${ANDROID_PREFIX_SHARE}/cmake/OpenCLHeaders" \
-Wno-dev
make -C build $MAKEFLAGS
}
package() {
cd "${srcdir}/OpenCL-CLHPP-${pkgver}"
source android-env ${_android_arch}
make -C build DESTDIR="${pkgdir}" install
}
|