git: eae7924d6ef0 - main - devel/vc: fix x86 platform detection regex

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Wed, 30 Mar 2022 15:46:18 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eae7924d6ef03ab5a0c12de67af9b1bda0979146

commit eae7924d6ef03ab5a0c12de67af9b1bda0979146
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-03-30 15:45:50 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-03-30 15:46:16 +0000

    devel/vc: fix x86 platform detection regex
    
    PR:             262939
---
 devel/vc/Makefile                                        |  2 +-
 devel/vc/files/patch-cmake_OptimizeForArchitecture.cmake | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/devel/vc/Makefile b/devel/vc/Makefile
index a45c71c0a5bb..a802718f3913 100644
--- a/devel/vc/Makefile
+++ b/devel/vc/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	vc
 DISTVERSION=	1.4.2
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	devel
 
 MAINTAINER=	yuri@FreeBSD.org
diff --git a/devel/vc/files/patch-cmake_OptimizeForArchitecture.cmake b/devel/vc/files/patch-cmake_OptimizeForArchitecture.cmake
new file mode 100644
index 000000000000..657a21e726df
--- /dev/null
+++ b/devel/vc/files/patch-cmake_OptimizeForArchitecture.cmake
@@ -0,0 +1,11 @@
+--- cmake/OptimizeForArchitecture.cmake.orig	2022-03-30 13:11:00 UTC
++++ cmake/OptimizeForArchitecture.cmake
+@@ -205,7 +205,7 @@ macro(AutodetectHostArchitecture)
+ endmacro()
+ 
+ macro(OptimizeForArchitecture)
+-   if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(x86|AMD64)")
++   if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "(i[3-6]86|x86|AMD64|amd64)")
+       OptimizeForArchitectureX86()
+    else()
+       message(STATUS "No support for auto-detection of the target instruction set/extension")