Page MenuHomeFreeBSD

framework: add llvm.mk
ClosedPublic

Authored by tcberner on Dec 17 2022, 5:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jun 24, 3:03 AM
Unknown Object (File)
May 17 2024, 1:34 PM
Unknown Object (File)
May 2 2024, 6:09 AM
Unknown Object (File)
May 1 2024, 9:31 PM
Unknown Object (File)
May 1 2024, 8:06 PM
Unknown Object (File)
May 1 2024, 8:06 PM
Unknown Object (File)
May 1 2024, 2:07 PM
Unknown Object (File)
May 1 2024, 2:07 PM
Subscribers
None

Details

Summary

Add new llvm.mk to more easily depend on one of the two-hundred available llvm ports.

Supported args:
Version:

  • <none> -> ${LLVM_DEFAULT}
  • [0-9]+ -> ${ver$
  • min=[0-9]+: -> the maximum of ${LLVM_DFEAULT} and ${min}
  • max=[0-9]+: -> the minimum of ${LLVM_DEFAULT} and ${max}

Modes:

  • build: -> add build depend (default, if none given)
  • run: -> add run depend

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • framework: add llvm.mk -- example port
  • framework: add llvm.mk -- convert graphics/mesa-dri
graphics/mesa-dri/Makefile
11 ↗(On Diff #114233)

^ this seems to be needed, as the USES in Makefile.common comes too late.

Thanks, I had something locally but worse than yours :)

Mk/Uses/llvm.mk
93

We probably need a few more, some ports only wants libclang.so or libclang-cpp.so
Even if that doesn't changes anything right now as those ports will pull the full llvm package it might help in the future if we ever have subpackages.

Mk/Uses/llvm.mk
93

I think what is necessary will be more evident when converting the rest of the tree to use it :)

Mk/Uses/llvm.mk
93

True, but renaming this one to LLVM_LIBLLVM would be easier now than latter :)

  • framework: add llvm.mk -- add mode lib for LIB_DEPEND, and export library as LLVM_LIBLLVM
  • framework: add llvm.mk -- add mode lib for LIB_DEPEND, and export library as LLVM_LIBLLVM

Thanks.

This revision is now accepted and ready to land.Dec 17 2022, 8:04 PM