mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 03:40:08 +00:00
26 lines
1.1 KiB
Bash
26 lines
1.1 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://github.com/OCL-dev/ocl-icd
|
|
TERMUX_PKG_DESCRIPTION="OpenCL ICD Loader"
|
|
TERMUX_PKG_LICENSE="BSD 2-Clause"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="2.3.2"
|
|
TERMUX_PKG_SRCURL=https://github.com/OCL-dev/ocl-icd/archive/v${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=ec47d7dcd961ea06695b067e8b7edb82e420ddce03e0081a908c62fd0b8535c5
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
TERMUX_PKG_NO_STATICSPLIT=true
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
--enable-custom-vendordir=${TERMUX_PREFIX}/etc/OpenCL/vendors
|
|
--enable-official-khronos-headers
|
|
"
|
|
|
|
termux_step_pre_configure() {
|
|
./bootstrap
|
|
}
|
|
|
|
# https://www.khronos.org/registry/OpenCL/specs/2.2/html/OpenCL_ICD_Installation.html
|
|
# Intepreting this as providing library "libOpenCL.so" with SONAME "libOpenCL.so" on Android
|
|
|
|
# https://github.com/termux/termux-packages/issues/7510
|
|
# Removed handling of PREFIX/etc/OpenCL/vendors to match Desktop Linux ocl-icd behaviour
|
|
# Removed creation of android.icd as it never worked without modifying LD_LIBRARY_PATH on Android
|
|
# Driver packages (eg: clvk) should be the one handling the items above
|