freebsd-ports/devel/libclc/Makefile
Emmanuel Vadot 7268d3bb13 devel/libclc: Update to 12.0.1
Use llvm releases of libclc
Force llvm12 as it is what's used for mesa/clover
Use the llvm12 flavor of spirv-llvm-translator

Differential Revision:	 https://reviews.freebsd.org/D31290
2021-11-07 10:01:13 +01:00

27 lines
845 B
Makefile

# Created by: Koop Mast <kwm@FreeBSD.org>
PORTNAME= libclc
DISTVERSION= 12.0.1
CATEGORIES= devel
MASTER_SITES= https://github.com/llvm/llvm-project/releases/download/llvmorg-${DISTVERSION:S/rc/-rc/}/
DISTNAME= libclc-${DISTVERSION}.src
MAINTAINER= x11@FreeBSD.org
COMMENT= Required library functions for OpenCL C programming language
LICENSE= LLVM
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
LICENSE_NAME= Apache License 2.0 with LLVM Exceptions
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
BUILD_DEPENDS= llvm12>=12.0:devel/llvm12 \
spirv-llvm-translator-llvm12>0:devel/spirv-llvm-translator@llvm12 \
libedit>=0:devel/libedit
USES= cmake compiler:c++11-lib python:3.6+,build tar:xz
USE_LDCONFIG= yes
BINARY_ALIAS= python=${PYTHON_CMD}
CMAKE_ARGS+= -DLLVM_CONFIG=${LOCALBASE}/bin/llvm-config12
.include <bsd.port.mk>