1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Adapt LLVM_DEFAULT downgrades to the new version scheme in devel/llvm10

$ DEFAULT_VERSIONS=llvm=90 make -V LLVM_DEFAULT -C graphics/mesa-dri
80
$ DEFAULT_VERSIONS=llvm=10 make -V LLVM_DEFAULT -C graphics/mesa-dri
10

PR:		245178
Reported by:	mi
Approved by:	x11 (zeising), maintainer timeout (2 months)
MFH:		2020Q2 (for llvm10 users)
Differential Revision:	https://reviews.freebsd.org/D24222
This commit is contained in:
Jan Beich 2020-05-11 20:11:41 +00:00
parent c031fd115a
commit cf473c33af
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=534936
6 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ do-configure:
.include <bsd.port.options.mk>
# Keep in sync with lang/clover
.if ${LLVM_DEFAULT:S,-devel,990,} >= 90
.if ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90
LLVM_DEFAULT= 80
.endif

View File

@ -33,7 +33,7 @@ CMAKE_ARGS+= -DLLVM_DIR=${LOCALBASE}/llvm${LLVM_DEFAULT}/lib/cmake/llvm
.include <bsd.port.options.mk>
.if ${LLVM_DEFAULT:S,-devel,990,} >= 90
.if ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90
LLVM_DEFAULT= 80
.endif

View File

@ -30,9 +30,9 @@ LLVM_SUPPORTED_MAX= 80
.include <bsd.port.pre.mk>
.if ${LLVM_DEFAULT:S,-devel,990,} < ${LLVM_SUPPORTED_MIN}
.if ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} < ${LLVM_SUPPORTED_MIN}
LLVM_VER= ${LLVM_SUPPORTED_MIN}
.elif ${LLVM_DEFAULT:S,-devel,990,} > ${LLVM_SUPPORTED_MAX}
.elif ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} > ${LLVM_SUPPORTED_MAX}
LLVM_VER= ${LLVM_SUPPORTED_MAX}
.else
LLVM_VER= ${LLVM_DEFAULT}

View File

@ -84,7 +84,7 @@ SHEBANG_FILES= tests/system/tools/objectsToTable.py \
.include <bsd.port.pre.mk>
.if ${LLVM_DEFAULT:S,-devel,990,} >= 90
.if ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90
LLVM_DEFAULT= 80
.endif

View File

@ -80,7 +80,7 @@ INSTALL_TARGET= install-strip
.if ${ARCH} == powerpc64
LLVM_DEFAULT= 90
.elif ${LLVM_DEFAULT:S,-devel,990,} >= 90
.elif ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90
LLVM_DEFAULT= 80
.endif

View File

@ -42,7 +42,7 @@ LLVM_VARS= CC=clang${LLVM_DEFAULT} \
.include <bsd.port.options.mk>
.if ${LLVM_DEFAULT:S,-devel,990,} >= 90
.if ${LLVM_DEFAULT:C/[1-5]./&0/:S,-devel,990,} >= 90
LLVM_DEFAULT= 80
.endif