mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
b7cefa5b5e
Reviewed by: swills (mentor) Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D12522
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libclc
|
|
DISTVERSION= 0.3.0.20170927
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= Required library functions for OpenCL C programming language
|
|
|
|
LICENSE= BSD3CLAUSE MIT
|
|
LICENSE_COMB= dual
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
|
|
BUILD_DEPENDS= llvm${LLVMVER}>=4.0:devel/llvm${LLVMVER} \
|
|
libedit>=0:devel/libedit
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= llvm-mirror
|
|
GH_TAGNAME= 81f74b2
|
|
|
|
# ninja based build is broken since commit 598792bc (16 sep 2016)
|
|
USES= gmake python:2.7,build gmake
|
|
USE_LDCONFIG= yes
|
|
MAKE_ENV= MAKE=${GMAKE} DESTDIR=${STAGEDIR}
|
|
|
|
LLVMVER= ${MESA_LLVM_VER:U40}
|
|
|
|
ALL_TARGET=
|
|
|
|
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 make \
|
|
--with-llvm-config=${LOCALBASE}/bin/llvm-config${LLVMVER} \
|
|
--pkgconfigdir=${PREFIX}/libdata/pkgconfig \
|
|
--prefix=${PREFIX}
|
|
|
|
.include <bsd.port.mk>
|