blob: 8a5dfc4224545ed6b2d28b46648e12af0020f440 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
PORTNAME= libclc
DISTVERSION= 0.2.0.20151006
CATEGORIES= devel
MAINTAINER= x11@FreeBSD.org
COMMENT= Required library functions for OpenCL C programming language
BUILD_DEPENDS= clang${LLVMVER}:${PORTSDIR}/devel/llvm${LLVMVER} \
libedit>=0:${PORTSDIR}/devel/libedit
USE_GITHUB= yes
GH_ACCOUNT= llvm-mirror
GH_TAGNAME= 6d78407
GNU_CONFIGURE= yes
USES= gmake python:2,build ninja
USE_LDCONFIG= yes
MAKE_ENV= MAKE=${GMAKE} DESTDIR=${STAGEDIR}
LLVMVER= 37
ALL_TARGET=
BROKEN_FreeBSD_9= missing <system_error> header
post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|g' \
-e 's|"python |"${PYTHON_VERSION} |g' \
${WRKSRC}/build/ninja_syntax.py \
${WRKSRC}/configure.py
do-configure:
@cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS} -g ninja \
--with-llvm-config=${LOCALBASE}/bin/llvm-config${LLVMVER} \
--pkgconfigdir=${PREFIX}/libdata/pkgconfig
.include <bsd.port.mk>
|