# Created by: Johannes Dieterich # $FreeBSD: head/devel/oclgrind/Makefile 541305 2020-07-05 20:01:19Z pkubaj $ PORTNAME= oclgrind PORTVERSION= 20190907 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= devel MAINTAINER= jmd@FreeBSD.org COMMENT= SPIR interpreter and virtual OpenCL device simulator LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= opencl>=0:devel/opencl \ llvm-config${LLVM_DEFAULT}:devel/llvm${LLVM_DEFAULT} LIB_DEPENDS= libOpenCL.so:devel/ocl-icd RUN_DEPENDS= opencl>=0:devel/opencl USES= cmake USE_GITHUB= yes GH_ACCOUNT= jrprice GH_PROJECT= Oclgrind GH_TAGNAME= e7c87b0 USE_LDCONFIG= yes CC= clang${LLVM_DEFAULT} CXX= clang++${LLVM_DEFAULT} CPP= clang-cpp${LLVM_DEFAULT} # to be removed after switching to LLVM 9 or later CXXFLAGS_powerpc64= -mabi=elfv2 CMAKE_ARGS+= -DLLVM_DIR=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/cmake/llvm .include .if ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90 LLVM_DEFAULT= 80 .endif .include