From 73c51c566ac5fcd15763f26539f6f2196d8af04e Mon Sep 17 00:00:00 2001
From: fritzkink <96341974+fritzkink@users.noreply.github.com>
Date: Wed, 20 Mar 2024 21:26:57 +0100
Subject: [PATCH] fix for clang-18 package (now includes also the runtime)

---
 components/developer/clang-18/clang-18-runtime.p5m |    2 +-
 components/developer/clang-18/pkg5                 |    1 +
 components/developer/clang-18/Makefile             |    3 +++
 3 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/components/developer/clang-18/Makefile b/components/developer/clang-18/Makefile
index edaeee0..d3bb9ea 100644
--- a/components/developer/clang-18/Makefile
+++ b/components/developer/clang-18/Makefile
@@ -20,12 +20,15 @@
 
 BUILD_BITS= 64
 BUILD_STYLE= cmake
+USE_PARALLEL_BUILD= yes
+
 include ../../../make-rules/shared-macros.mk
 
 COMPONENT_MJR_VERSION=	18
 COMPONENT_BASE_VERSION=	$(COMPONENT_MJR_VERSION).1
 COMPONENT_NAME=		clang-$(COMPONENT_MJR_VERSION)
 COMPONENT_VERSION=	$(COMPONENT_BASE_VERSION).1
+COMPONENT_REVISION=	1
 COMPONENT_SUMMARY=	LLVM tools and Clang compiler
 COMPONENT_PROJECT_URL=	https://llvm.org/
 COMPONENT_SRC=		$(LLVM_NAME)-$(COMPONENT_VERSION).src
diff --git a/components/developer/clang-18/clang-18-runtime.p5m b/components/developer/clang-18/clang-18-runtime.p5m
index 10e5905..d8b6a8d 100644
--- a/components/developer/clang-18/clang-18-runtime.p5m
+++ b/components/developer/clang-18/clang-18-runtime.p5m
@@ -13,7 +13,7 @@
 # Copyright 2024 Friedrich Kink
 #
 
-set name=pkg.fmri value=pkg:/$(COMPONENT_FMRI)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+set name=pkg.fmri value=pkg:/runtime/clang-18@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
 set name=pkg.human-version value=$(HUMAN_VERSION)
 set name=pkg.summary value="$(COMPONENT_SUMMARY)"
 set name=info.classification value="$(COMPONENT_CLASSIFICATION)"
diff --git a/components/developer/clang-18/pkg5 b/components/developer/clang-18/pkg5
index 2852797..ad984d9 100644
--- a/components/developer/clang-18/pkg5
+++ b/components/developer/clang-18/pkg5
@@ -12,6 +12,7 @@
         "system/library/math"
     ],
     "fmris": [
+        "runtime/clang-18",
         "developer/clang-18"
     ],
     "name": "clang-18"

--
Gitblit v1.9.3