fc18844849
Both ports need to use the same LLVM version for OpenCL to work. Reported by: Vasily Postnicov (on x11@ list) Approved by: portmgr blanket
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libclc
|
|
DISTVERSION= 0.4.0.20190527
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= Required library functions for OpenCL C programming language
|
|
|
|
LICENSE= LLVM
|
|
LICENSE_NAME= LLVM Release License
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
BUILD_DEPENDS= llvm${LLVM_DEFAULT}>=4.0:devel/llvm${LLVM_DEFAULT} \
|
|
libedit>=0:devel/libedit
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= llvm-mirror
|
|
GH_TAGNAME= 9f6204e
|
|
|
|
# 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}
|
|
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${LLVM_DEFAULT} \
|
|
--pkgconfigdir=${PREFIX}/libdata/pkgconfig \
|
|
--prefix=${PREFIX}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
# Keep in sync with lang/clover
|
|
.if ${LLVM_DEFAULT:S,-devel,990,} >= 90
|
|
LLVM_DEFAULT= 80
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|