mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
1f49d96205
Fixes build with --disable-silent-rules PR: 212412 Submitted by: amdmi3 Approved by: portmgr
41 lines
951 B
Makefile
41 lines
951 B
Makefile
# 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>
|