View | Details | Raw Unified | Return to bug 224584 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-21 / +30 lines)
Lines 1-46 Link Here
1
# $FreeBSD: head/lang/pocl/Makefile 456680 2017-12-18 21:53:01Z antoine $
1
# $FreeBSD: head/lang/pocl/Makefile 456680 2017-12-18 21:53:28Z antoine $
2
2
3
PORTNAME=	pocl
3
PORTNAME=		pocl
4
PORTVERSION=	1.0
4
PORTVERSION=	1.1
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
CATEGORIES=	lang
6
CATEGORIES=		lang
7
7
8
MAINTAINER=	ohartman@zedat.fu-berlin.de
8
MAINTAINER=		ohartman@zedat.fu-berlin.de
9
COMMENT=	POrtable Computing Language (POCL)
9
COMMENT=		POrtable Computing Language (POCL)
10
10
11
LICENSE=	MIT
11
LICENSE=		MIT
12
LICENSE_FILE=	${WRKSRC}/LICENSE
12
LICENSE_FILE=	${WRKSRC}/LICENSE
13
13
14
BROKEN_FreeBSD_10=	pocl is not supported on 10.x
14
BROKEN_FreeBSD_10=	pocl is not supported on 10.x
15
ONLY_FOR_ARCHS=		amd64 i386
15
16
ONLY_FOR_ARCHS=			i386 amd64
16
ONLY_FOR_ARCHS_REASON=	only tested on x86
17
ONLY_FOR_ARCHS_REASON=	only tested on x86
17
18
18
BUILD_DEPENDS=	llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} \
19
BUILD_DEPENDS=	llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION} \
19
		opencl>=2.1:devel/opencl
20
				opencl>=2.1:devel/opencl
20
LIB_DEPENDS=	libhwloc.so:devel/hwloc \
21
LIB_DEPENDS=	libhwloc.so:devel/hwloc \
21
		libOpenCL.so:devel/ocl-icd \
22
				libOpenCL.so:devel/ocl-icd \
22
		libltdl.so:devel/libltdl
23
				libltdl.so:devel/libltdl
23
RUN_DEPENDS=	llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION}
24
RUN_DEPENDS=	llvm${LLVM_VERSION}>=0:devel/llvm${LLVM_VERSION}
24
25
25
LLVM_VERSION=	${MESA_LLVM_VER:U50}
26
LLVM_VERSION=	${MESA_LLVM_VER:U60}
26
27
27
USES=		cmake localbase:ldflags ncurses pkgconfig
28
USES=			cmake localbase:ldflags ncurses pkgconfig
28
29
29
USE_GITHUB=	yes
30
USE_GITHUB=		yes
30
USE_LDCONFIG=	yes
31
USE_LDCONFIG=	yes
31
USE_CXXSTD=	gnu++11
32
USE_CXXSTD=		gnu++11
32
33
33
CMAKE_ARGS=	-DWITH_LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \
34
CMAKE_ARGS=		-DWITH_LLVM_CONFIG="${LOCALBASE}/llvm${LLVM_VERSION}/bin/llvm-config" \
34
		-DPOCL_INSTALL_PKGCONFIG_DIR="${PREFIX}/libdata/pkgconfig" \
35
				-DPOCL_INSTALL_PKGCONFIG_DIR="${PREFIX}/libdata/pkgconfig" \
35
		-DKERNELLIB_HOST_CPU_VARIANTS="distro"
36
				-DKERNELLIB_HOST_CPU_VARIANTS="distro"
36
PLIST_SUB=	OPSYS=${OPSYS:tl} ARCH=${ARCH:S/amd64/x86_64/}
37
PLIST_SUB=		OPSYS=${OPSYS:tl} ARCH=${ARCH:S/amd64/x86_64/}
37
38
38
OPTIONS_DEFINE=	TEST
39
OPTIONS_DEFINE=	TEST CUDA VECMATH
39
40
40
TEST_DESC=	Tests from the OpenCL book
41
TEST_DESC=		Tests from the OpenCL book
41
TEST_CMAKE_OFF=	-DENABLE_TESTSUITES=""
42
TEST_CMAKE_OFF=	-DENABLE_TESTSUITES=""
42
TEST_CMAKE_ON=	-DENABLE_TESTSUITES="all"
43
TEST_CMAKE_ON=	-DENABLE_TESTSUITES="all"
43
TEST_TARGET=	test
44
TEST_TARGET=	test
45
46
CUDA_DESC=		Enable CUDA backend (requires LLVM has NVPTX supp.)
47
CUDA_CMAKE_OFF=	-DENABLE_CUDA=OFF 
48
CUDA_CMAKE_ON=	-DENABLE_CUDA=ON 
49
50
VECMATH_DESC=	Vectormath Lib
51
VECMATH_CMAKE_OFF=	-DENABLE_VECMATHLIB=OFF
52
VECMATH_CMAKE_ON=	-DENABLE_VECMATHLIB=ON
44
53
45
pre-install-TEST-on: do-test
54
pre-install-TEST-on: do-test
46
55

Return to bug 224584