aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ports/libffi/CMakeLists.txt24
-rw-r--r--ports/libffi/CONTROL5
-rw-r--r--ports/libffi/vcpkg.json7
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/l-/libffi.json5
5 files changed, 24 insertions, 19 deletions
diff --git a/ports/libffi/CMakeLists.txt b/ports/libffi/CMakeLists.txt
index c9eba2f13..bfdd2e60b 100644
--- a/ports/libffi/CMakeLists.txt
+++ b/ports/libffi/CMakeLists.txt
@@ -11,23 +11,15 @@ endif()
# config variables for ffi.h.in
set(VERSION 3.3)
-set(KNOWN_PROCESSORS x86 x86_64 AMD64 ARM ARM64 i386 armv7l armv7-a aarch64)
+set(KNOWN_PROCESSORS x86 x86_64 amd64 arm arm64 i386 armv7l armv7-a aarch64)
-if(NOT CMAKE_SYSTEM_PROCESSOR IN_LIST KNOWN_PROCESSORS)
+string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" lower_system_processor)
+
+if(NOT lower_system_processor IN_LIST KNOWN_PROCESSORS)
message(FATAL_ERROR "Unknown processor: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
-if(CMAKE_SYSTEM_PROCESSOR MATCHES "ARM")
- set(TARGET ARM)
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "armv7l")
- set(TARGET ARM)
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "armv7-a")
- set(TARGET ARM)
-elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
- set(TARGET ARM64)
-elseif(CMAKE_SYSTEM_NAME MATCHES "BSD" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
- set(TARGET X86_FREEBSD)
-elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
+if(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
set(TARGET ARM_WIN32)
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
set(TARGET ARM_WIN64)
@@ -35,6 +27,12 @@ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUA
set(TARGET X86_WIN32)
elseif(CMAKE_SYSTEM_NAME MATCHES "Windows" AND VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
set(TARGET X86_WIN64)
+elseif(lower_system_processor MATCHES "arm64|aarch64")
+ set(TARGET ARM64)
+elseif(lower_system_processor MATCHES "arm")
+ set(TARGET ARM)
+elseif(CMAKE_SYSTEM_NAME MATCHES "BSD" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
+ set(TARGET X86_FREEBSD)
elseif(CMAKE_SYSTEM_NAME MATCHES "Darwin" AND CMAKE_SIZEOF_VOID_P EQUAL 4)
set(TARGET X86_DARWIN)
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
diff --git a/ports/libffi/CONTROL b/ports/libffi/CONTROL
deleted file mode 100644
index 7ba4813a3..000000000
--- a/ports/libffi/CONTROL
+++ /dev/null
@@ -1,5 +0,0 @@
-Source: libffi
-Version: 3.3
-Port-Version: 7
-Homepage: https://github.com/libffi/libffi
-Description: Portable, high level programming interface to various calling conventions
diff --git a/ports/libffi/vcpkg.json b/ports/libffi/vcpkg.json
new file mode 100644
index 000000000..8934328b4
--- /dev/null
+++ b/ports/libffi/vcpkg.json
@@ -0,0 +1,7 @@
+{
+ "name": "libffi",
+ "version": "3.3",
+ "port-version": 8,
+ "description": "Portable, high level programming interface to various calling conventions",
+ "homepage": "https://github.com/libffi/libffi"
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 169e1c3b6..cba0b79c9 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3042,7 +3042,7 @@
},
"libffi": {
"baseline": "3.3",
- "port-version": 7
+ "port-version": 8
},
"libflac": {
"baseline": "1.3.3",
diff --git a/versions/l-/libffi.json b/versions/l-/libffi.json
index 03255992e..340ad5664 100644
--- a/versions/l-/libffi.json
+++ b/versions/l-/libffi.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "ea2ed30397fc14caf66d8f7290306cfc5c5aa424",
+ "version": "3.3",
+ "port-version": 8
+ },
+ {
"git-tree": "7582c1b20c576263d22b8429155ead9117cc7c95",
"version-string": "3.3",
"port-version": 7