ports/llvm: Add support for pthread_setname_np and cpu count

Also package the llvm into the format mesa expects. This was kinda
tedious to always do manually
This commit is contained in:
2026-07-07 10:04:54 +03:00
parent 20392c6cc1
commit 7348511ed3
2 changed files with 58 additions and 9 deletions

View File

@@ -29,6 +29,17 @@ build() {
install() {
# This port only contains llvm libraries used optionally by
# mesa port. There is no need to install and fill the disk :D
:
# mesa port. There is no need to install to sysroot :D
local pkg_dir="../llvm-banan_os-$VERSION-$BANAN_ARCH"
rm -rf "$pkg_dir"
mkdir -p "$pkg_dir/include" || exit 1
cp -r 'llvm/include/llvm' "$pkg_dir/include/" || exit 1
cp -r 'llvm/include/llvm-c' "$pkg_dir/include/" || exit 1
cp -r 'build/include/llvm' "$pkg_dir/include/" || exit 1
mkdir -p "$pkg_dir/lib" || exit 1
cp 'build/lib/'*.a "$pkg_dir/lib/" || exit 1
}