aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libb2
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/libb2')
-rw-r--r--vcpkg/ports/libb2/portfile.cmake22
-rw-r--r--vcpkg/ports/libb2/vcpkg.json13
2 files changed, 35 insertions, 0 deletions
diff --git a/vcpkg/ports/libb2/portfile.cmake b/vcpkg/ports/libb2/portfile.cmake
new file mode 100644
index 0000000..f387a69
--- /dev/null
+++ b/vcpkg/ports/libb2/portfile.cmake
@@ -0,0 +1,22 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO BLAKE2/libb2
+ REF 2c5142f12a2cd52f3ee0a43e50a3a76f75badf85
+ SHA512 cf29cf9391ae37a978eb6618de6f856f3defa622b8f56c2d5a519ab34fd5e4d91f3bb868601a44e9c9164a2992e80dde188ccc4d1605dffbdf93687336226f8d
+ HEAD_REF master
+)
+
+vcpkg_make_configure(
+ AUTORECONF
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ --disable-native # toolchain may supply -march=native
+ ax_cv_check_cflags___O3=no # vcpkg provides actual flag
+)
+vcpkg_make_install()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
diff --git a/vcpkg/ports/libb2/vcpkg.json b/vcpkg/ports/libb2/vcpkg.json
new file mode 100644
index 0000000..9b3ca94
--- /dev/null
+++ b/vcpkg/ports/libb2/vcpkg.json
@@ -0,0 +1,13 @@
+{
+ "name": "libb2",
+ "version": "0.98.1",
+ "port-version": 7,
+ "description": "C library providing BLAKE2b, BLAKE2s, BLAKE2bp, BLAKE2sp",
+ "homepage": "https://github.com/BLAKE2/libb2",
+ "dependencies": [
+ {
+ "name": "vcpkg-make",
+ "host": true
+ }
+ ]
+}