diff options
author | jperkin <jperkin@pkgsrc.org> | 2017-05-09 12:23:42 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2017-05-09 12:23:42 +0000 |
commit | 49a6a75a6d6a49f4db5f08b8623216b4a341f5e0 (patch) | |
tree | 75cc4650377b13e8b879a0125f054f59d8e473fe /lang/llvm | |
parent | 6454546d5e07e7adb6d0cebec065fb7cfefc569d (diff) | |
download | pkgsrc-49a6a75a6d6a49f4db5f08b8623216b4a341f5e0.tar.gz |
Add a terminfo option and enable by default (and correctly pull terminfo in)
if terminfo is builtin, otherwise leave it as a user option to avoid possible
dependency issues.
Diffstat (limited to 'lang/llvm')
-rw-r--r-- | lang/llvm/options.mk | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/lang/llvm/options.mk b/lang/llvm/options.mk index a160e1dd631..f8b4bdf0226 100644 --- a/lang/llvm/options.mk +++ b/lang/llvm/options.mk @@ -1,4 +1,4 @@ -# $NetBSD: options.mk,v 1.2 2016/11/14 20:15:32 ryoon Exp $ +# $NetBSD: options.mk,v 1.3 2017/05/09 12:23:42 jperkin Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.llvm @@ -8,6 +8,17 @@ LLVM_TARGETS= AArch64 AMDGPU ARM BPF Hexagon MSP430 Mips NVPTX PowerPC Sparc Sys PLIST_VARS+= ${tgt} PKG_SUPPORTED_OPTIONS+= llvm-target-${tgt:tl} .endfor +PKG_SUPPORTED_OPTIONS+= terminfo + +# Terminfo is used for colour output, only enable it by default if terminfo +# is builtin to avoid unnecessary dependencies which could cause bootstrap +# issues. +CHECK_BUILTIN.terminfo:= yes +.include "../../mk/terminfo.builtin.mk" +CHECK_BUILTIN.terminfo:= no +.if !empty(USE_BUILTIN.terminfo:M[yY][eE][sS]) +PKG_SUGGESTED_OPTIONS+= terminfo +.endif # Probably safe to assume that only x86 users are interested in # cross-compilation for now. This saves some build time for everyone else. @@ -35,4 +46,10 @@ LLVM_TARGETS_TO_BUILD+= ${tgt} . endif .endfor +.if !empty(PKG_OPTIONS:Mterminfo) +.include "../../mk/terminfo.buildlink3.mk" +.else +CMAKE_ARGS+= -DLLVM_ENABLE_TERMINFO=OFF +.endif + CMAKE_ARGS+= -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS_TO_BUILD:ts;}" |