diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2023-04-18 16:48:33 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2023-04-18 16:48:33 +0000 |
commit | 8fc3ddb680afd5589a36921e02773bb75d0ed7cf (patch) | |
tree | 70878d32d23803ffa0438f6cbc3f29e34fa60ad2 | |
parent | 9e513a7c81af0330d5d9839c8e9157805f924524 (diff) | |
download | ports-8fc3ddb680afd5589a36921e02773bb75d0ed7cf.tar.gz ports-8fc3ddb680afd5589a36921e02773bb75d0ed7cf.zip |
devel/llvm-{cheri,morello}: reduce runtime dependencies
Disable libedit and libxml2 dependencies as they have no obvious use.
Disable the the perl and python runtime deps. While we do install
scripts that require these, most users of these ports will either use
them on a full system where perl and python will end up installed or use
them on a CHERI system were reducing bootstrap time is valuable.
Sponsored by: DARPA
-rw-r--r-- | devel/llvm-cheri/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/devel/llvm-cheri/Makefile b/devel/llvm-cheri/Makefile index 32f7a86b8d6e..554483f3aa28 100644 --- a/devel/llvm-cheri/Makefile +++ b/devel/llvm-cheri/Makefile @@ -25,8 +25,7 @@ COMMAND_SUFFIX= ${LLVM_SUFFIX} DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}${LLVM_SUFFIX} DATADIR= ${PREFIX}/share/${PORTNAME}${LLVM_SUFFIX} -USES= cmake compiler:c++11-lib cpe libedit perl5 \ - shebangfix +USES= cmake compiler:c++17-lang cpe shebangfix USE_LDCONFIG= ${LLVM_PREFIX}/lib SHEBANG_FILES= \ clang/tools/clang-format/git-clang-format \ @@ -56,6 +55,8 @@ CMAKE_ARGS+= -DLLVM_BUILD_LLVM_DYLIB=ON -DLLVM_LINK_LLVM_DYLIB=ON CMAKE_ARGS+= -DCMAKE_INSTALL_MANDIR:PATH="share/man" CMAKE_ARGS+= -DLLVM_PARALLEL_LINK_JOBS=1 CMAKE_ARGS+= -DLLVM_ENABLE_Z3_SOLVER=OFF +CMAKE_ARGS+= -DLLVM_ENABLE_LIBXML2=OFF +CMAKE_ARGS+= -DLLVM_ENABLE_LIBEDIT=OFF CMAKE_ARGS+= -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS}" .ifndef MASTERDIR @@ -75,9 +76,11 @@ OPTIONS_SUB= yes CLANG_DESC= Build clang CLANG_PORTDOCS= clang +CLANG_USES= perl5 +# scan-build does require, but users can install it manually. +CLANG_USE= PERL5=build PLIST_FILES+= share/toolchains/llvm${LLVM_SUFFIX}.mk SUB_FILES+= xtoolchain.mk -CLANG_USE= GNOME=libxml2 DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}recommonmark>=0.0.20180530:textproc/py-recommonmark@${PY_FLAVOR} DOCS_CMAKE_ON= -DLLVM_ENABLE_SPHINX=ON \ @@ -124,7 +127,8 @@ USES+= gnome .if ${PORT_OPTIONS:MLIT} MAN1SRCS+= ${LIT_MAN1SRCS} -_USES_PYTHON= python:3.6+ +# lit requires python, but don't install it by default. Users can install. +#_USES_PYTHON= python:3.6+ .endif .if ${PORT_OPTIONS:MLLD} |