mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
0fae2e9e0e
Change x11/xorgproto to become a build time dependency when added to USE_XORG. Change the dependency to be on the port, rather than a file the port installs. Fix fallout. Bump portrevision on depending ports. PR: 230909 Reviewed by: eadler Approved by: portmgr (antoine) Obtained from: https://github.com/FreeBSDDesktop/freebsd-ports/tree/feature/xorgproto exp-run: antoine Differential Revision: https://reviews.freebsd.org/D16906
68 lines
1.9 KiB
Makefile
68 lines
1.9 KiB
Makefile
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= beignet
|
|
DISTVERSION= 1.3.2
|
|
DISTVERSIONSUFFIX= -source
|
|
PORTREVISION= 4
|
|
CATEGORIES= lang
|
|
MASTER_SITES= https://01.org/sites/default/files/
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= OpenCL library for Intel GPUs
|
|
|
|
LICENSE= LGPL21+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= clang${LLVMVER}:devel/llvm${LLVMVER} \
|
|
opencl>=0:devel/opencl
|
|
LIB_DEPENDS= libOpenCL.so:devel/ocl-icd \
|
|
libdrm.so:graphics/libdrm
|
|
RUN_DEPENDS= opencl>=0:devel/opencl \
|
|
clang${LLVMVER}:devel/llvm${LLVMVER}
|
|
|
|
WRKSRC= ${WRKDIR}/Beignet-${DISTVERSION}-Source
|
|
|
|
USES= cmake ncurses pkgconfig shebangfix
|
|
USE_XORG= sm ice x11 xext xfixes
|
|
USE_GL= gl egl
|
|
USE_LDCONFIG= ${LOCALBASE}/lib/${PORTNAME}
|
|
SHEBANG_FILES= src/git_sha1.sh backend/kernels/compile.sh
|
|
ALL_TARGET= all
|
|
LLVMVER= ${MESA_LLVM_VER:U60}
|
|
|
|
CMAKE_ARGS= -DCLANG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/clang${LLVMVER} \
|
|
-DLLVM_AS_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-as${LLVMVER} \
|
|
-DLLVM_CONFIG_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-config${LLVMVER} \
|
|
-DLLVM_LINK_EXECUTABLE:FILEPATH=${LOCALBASE}/bin/llvm-link${LLVMVER}
|
|
|
|
ONLY_FOR_ARCHS= i386 amd64
|
|
ONLY_FOR_ARCHS_REASON= Beignet needs a graphics driver supported by the Intel KMS driver
|
|
|
|
OPTIONS_DEFINE= FP64 OCL20 TEST
|
|
OPTIONS_DEFAULT= OCL20
|
|
OPTIONS_EXCLUDE_i386= OCL20
|
|
OPTIONS_SUB= yes
|
|
|
|
FP64_DESC= Double precision (experimental)
|
|
FP64_CMAKE_BOOL= EXPERIMENTAL_DOUBLE
|
|
|
|
OCL20_DESC= OpenCL 2.0 support
|
|
OCL20_CMAKE_BOOL= ENABLE_OPENCL_20
|
|
|
|
TEST_ALL_TARGET= flat_address_space utest_run
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|llvm-dis|llvm-dis${LLVMVER}|g; \
|
|
s|clang |clang${LLVMVER} |g' \
|
|
${WRKSRC}/backend/kernels/compile.sh
|
|
|
|
# XXX bug 213732: compiler_device_enqueue() Interrupt signal (SIGSEGV) received.
|
|
do-test-TEST-on:
|
|
-@(cd ${TEST_WRKSRC}/utests; . ./setenv.sh; \
|
|
./flat_address_space; ./utest_run; )
|
|
|
|
pre-install-TEST-on: do-test-TEST-on
|
|
|
|
.include <bsd.port.mk>
|