diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..f3cec9bd32e7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,56 @@ +# Maintainer: grmat <grmat@sub.red> + +pkgname='compute-runtime' +pkgdesc="Intel(R) Graphics Compute Runtime for OpenCL(TM). Replaces Beignet for Gen8 (Broadwell) and beyond. Weekly build version." +pkgver='18.20.10830' +pkgrel=1 +arch=('x86_64') +url='https://01.org/compute-runtime' +license=('MIT') +makedepends=('gcc54' 'llvm' 'clang' 'python2' 'opencl-headers') +optdepends=('libva: for cl_intel_va_api_media_sharing' + 'libdrm: for cl_intel_va_api_media_sharing') +depends=('ocl-icd') +conflicts=('compute-runtime-git') + +source=("neo::git+https://github.com/intel/compute-runtime#tag=18.20.10830" + "clang_source::git+https://github.com/llvm-mirror/clang#branch=release_40" + "common_clang::git+https://github.com/intel/opencl-clang#commit=fa75886" + "llvm_patches::git+https://github.com/intel/llvm-patches#commit=0ba9deb" + "llvm_source::git+https://github.com/llvm-mirror/llvm#branch=release_40" + "gmmlib::git+https://github.com/intel/gmmlib#commit=a501534" + "igc::git+https://github.com/intel/intel-graphics-compiler#commit=858e183" + "khronos::git+https://github.com/KhronosGroup/OpenCL-Headers#commit=de26592") + +sha256sums=('SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP' + 'SKIP') + +prepare() { + cd "${srcdir}" + mkdir "${srcdir}/build" +} + +build() { + cd "${srcdir}/build" + # doesn't build with gcc8 and gcc54 doesn't know -fno-plt + cmake -DBUILD_TYPE=Release \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_COMPILER=gcc-5 \ + -DCMAKE_CXX_COMPILER=g++-5 \ + -DCMAKE_C_FLAGS="${CFLAGS/'-fno-plt'/}" \ + -DCMAKE_CXX_FLAGS="${CFLAGS/'-fno-plt'/}" \ + ../neo + make "$MAKEFLAGS" +} + +package() { + cd "${srcdir}/build" + make DESTDIR="$pkgdir" install +} + |