aboutsummaryrefslogtreecommitdiff
path: root/ports/libb2
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libb2')
-rw-r--r--ports/libb2/CONTROL2
-rw-r--r--ports/libb2/portfile.cmake12
2 files changed, 9 insertions, 5 deletions
diff --git a/ports/libb2/CONTROL b/ports/libb2/CONTROL
index 0523b60d5..41fb105aa 100644
--- a/ports/libb2/CONTROL
+++ b/ports/libb2/CONTROL
@@ -1,4 +1,4 @@
Source: libb2
-Version: 0.98.1
+Version: 0.98.1-1
Homepage: https://github.com/BLAKE2/libb2
Description: C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp \ No newline at end of file
diff --git a/ports/libb2/portfile.cmake b/ports/libb2/portfile.cmake
index 88007bdf0..2a342f9dc 100644
--- a/ports/libb2/portfile.cmake
+++ b/ports/libb2/portfile.cmake
@@ -1,5 +1,3 @@
-vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports Linux platform" ON_TARGET "Windows" "OSX")
-
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO BLAKE2/libb2
@@ -8,12 +6,18 @@ vcpkg_from_github(
HEAD_REF master
)
+set(OPTIONS)
+if(CMAKE_HOST_WIN32)
+ set(OPTIONS --disable-native) # requires cpuid
+endif()
+
vcpkg_configure_make(
SOURCE_PATH ${SOURCE_PATH}
- AUTOCONFIG
+ OPTIONS ${OPTIONS}
)
-
vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)