aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/botan/CONTROL8
-rw-r--r--ports/botan/portfile.cmake4
-rw-r--r--ports/botan/vcpkg.json13
3 files changed, 17 insertions, 8 deletions
diff --git a/ports/botan/CONTROL b/ports/botan/CONTROL
deleted file mode 100644
index 255e2f116..000000000
--- a/ports/botan/CONTROL
+++ /dev/null
@@ -1,8 +0,0 @@
-Source: botan
-Version: 2.16.0
-Port-Version: 0
-Homepage: https://botan.randombit.net
-Description: A cryptography library written in C++11
-
-Feature: amalgamation
-Description: Do an amalgamation build of the library
diff --git a/ports/botan/portfile.cmake b/ports/botan/portfile.cmake
index 746dc6e62..cee4a0e27 100644
--- a/ports/botan/portfile.cmake
+++ b/ports/botan/portfile.cmake
@@ -42,6 +42,10 @@ if(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
set(BOTAN_FLAG_CPU x86)
elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x64")
set(BOTAN_FLAG_CPU x86_64)
+elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm")
+ set(BOTAN_FLAG_CPU arm32)
+elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
+ set(BOTAN_FLAG_CPU arm64)
else()
message(FATAL_ERROR "Unsupported architecture")
endif()
diff --git a/ports/botan/vcpkg.json b/ports/botan/vcpkg.json
new file mode 100644
index 000000000..48b62c95c
--- /dev/null
+++ b/ports/botan/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "botan",
+ "version": "2.16.0",
+ "port-version": 1,
+ "description": "A cryptography library written in C++11",
+ "homepage": "https://botan.randombit.net",
+ "supports": "!(windows & arm)",
+ "features": {
+ "amalgamation": {
+ "description": "Do an amalgamation build of the library"
+ }
+ }
+}