maintainer-feedback requested: [Bug 295530] devel/libclc proposal for improvement

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Bugzilla Automation <[email protected]> has asked freebsd-x11 (Nobody)
<[email protected]> for maintainer-feedback:
Bug 295530: devel/libclc proposal for improvement
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295530



--- Description ---
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}=""
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.