aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libclc/Makefile
blob: 833a6f75c3846a6a6989a725d01b9df094dabc98 (plain) (blame)
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}:devel/llvm${LLVMVER} \
        libedit>=0:devel/libedit

USE_GITHUB= yes
GH_ACCOUNT= llvm-mirror
GH_TAGNAME= 6d78407

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 \
        --prefix=${PREFIX}

.include <bsd.port.mk>