6db0d126a4
Switch mesa over to use llvm80 instead of llvm60. Make it use the global LLVM_DEFAULT instead of deciding for ourself which llvm version to use. [1] Fix build of lang/beginet [1] Add patch from upstream to fix build of devel/libclc. The patch is taken from the git mirror of devel/libclc rather than the SVN repo, for convenience. Add a patch from mesa upstream preventing certain error messages when using amdgpu [2] Add a notice to bsd.default-versions.mk asking that the graphics team be informed before the llvm version is changed. Enable llvm and gallium on MIPS. As far as I can tell, this used to be the default before this change. Bump portrevisions since dependencies changed. PR: 230789 [1], [2] Submitted by: jbeich [1], tobik [2] Obtained from: FreeBSD Graphics Team development repo https://github.com/FreeBSDDesktop/freebsd-ports/commits/feature/mesa-llvm80 Sponsored by: B3 Init (zeising)
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
# Created by: Koop Mast <kwm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libclc
|
|
DISTVERSION= 0.3.0.20180518
|
|
PORTREVISION= 3
|
|
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${LLVM_DEFAULT}>=4.0:devel/llvm${LLVM_DEFAULT} \
|
|
libedit>=0:devel/libedit
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= llvm-mirror
|
|
GH_TAGNAME= a2118d5
|
|
|
|
# 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.mk>
|