[Bug 295530] devel/libclc proposal for improvement

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295530

            Bug ID: 295530
           Summary: devel/libclc proposal for improvement
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
          Assignee: [email protected]
             Flags: maintainer-feedback?([email protected])

diff --git a/devel/libclc/Makefile b/devel/libclc/Makefile
index 97aabb285f5c..bae45f82245a 100644
--- a/devel/libclc/Makefile
+++ b/devel/libclc/Makefile
@@ -39,13 +39,13 @@ NO_ARCH=    yes

 .include <bsd.port.pre.mk>

-.if ${FLAVOR:S/llvm//} >= 22
+.if !empty(FLAVOR) && ${FLAVOR:C/[^0-9]//g} >= 22
 DISTNAME=      llvm-project-${DISTVERSION}.src
 WRKSRC_SUBDIR= libclc
 .endif

 .for i in ${FLAVORS:S/llvm//}
-.if ${FLAVOR:S/llvm//} >= ${i}
+.if !empty(FLAVOR) && ${FLAVOR:C/[^0-9]//g} >= ${i}
 PLIST_SUB+=    LLVM_GE${i}="" LLVM_LT${i}="@comment "
 .else
 PLIST_SUB+=    LLVM_GE${i}="@comment " LLVM_LT${i}=""

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.