aboutsummaryrefslogtreecommitdiff
path: root/ports/pbc
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2020-02-04 15:50:10 -0800
committerRobert Schumacher <roschuma@microsoft.com>2020-02-04 15:50:10 -0800
commit6f66ad14fe9da11d4bf50f5b25b4da86ed971c53 (patch)
tree0f5dbcd1719cd6a8e486c4058cfefd607d58aa6c /ports/pbc
parentd502f061bb3ee0258d6453acbf258b9e5d93d564 (diff)
parentd808514c9df44bb97d6eccff952bfe8ec4e156f7 (diff)
downloadvcpkg-6f66ad14fe9da11d4bf50f5b25b4da86ed971c53.tar.gz
vcpkg-6f66ad14fe9da11d4bf50f5b25b4da86ed971c53.zip
Merge remote-tracking branch 'origin/master' into HEAD
Diffstat (limited to 'ports/pbc')
-rw-r--r--ports/pbc/CONTROL6
-rw-r--r--ports/pbc/portfile.cmake15
2 files changed, 7 insertions, 14 deletions
diff --git a/ports/pbc/CONTROL b/ports/pbc/CONTROL
index ba09843de..1577832fd 100644
--- a/ports/pbc/CONTROL
+++ b/ports/pbc/CONTROL
@@ -1,4 +1,6 @@
Source: pbc
-Version: 0.5.14-1
-Build-Depends: mpir
+Version: 0.5.14-2
+Build-Depends: mpir (windows)
+Homepage: https://crypto.stanford.edu/pbc
Description: Pairing-Based Crypto library provides low-level routines for pairing-based cryptosystems.
+Supports: !uwp \ No newline at end of file
diff --git a/ports/pbc/portfile.cmake b/ports/pbc/portfile.cmake
index 32e233420..3f47fa56e 100644
--- a/ports/pbc/portfile.cmake
+++ b/ports/pbc/portfile.cmake
@@ -1,14 +1,4 @@
-include(vcpkg_common_functions)
-
-vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
-
-if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore")
- message(FATAL_ERROR "PBC currently can only be built for desktop")
-endif()
-
-if(VCPKG_CRT_LINKAGE STREQUAL "static" AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
- message(FATAL_ERROR "PBC currently can only be built using the dynamic CRT when building DLLs")
-endif()
+vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "UWP")
set(PBC_VERSION 0.5.14)
@@ -78,8 +68,9 @@ if(VCPKG_CMAKE_SYSTEM_NAME)
)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share ${CURRENT_PACKAGES_DIR}/share/info)
- configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/pbc/copyright COPYONLY)
+ file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
else()
+ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO blynn/pbc