diff --git a/ports/liboqs/portfile.cmake b/ports/liboqs/portfile.cmake new file mode 100644 index 00000000000000..49577da90848a4 --- /dev/null +++ b/ports/liboqs/portfile.cmake @@ -0,0 +1,23 @@ +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO open-quantum-safe/liboqs + REF ${VERSION} + SHA512 93260f15c02108157fa595e252685c49c5fb6433d04b989c381da4e27169577f3011d9174b2ec0c110fff15d2d3c640a9833bf28aa53949e8f33c0e674b6e781 + PATCHES +) + +vcpkg_cmake_configure( + SOURCE_PATH "${SOURCE_PATH}" + OPTIONS + -DOQS_BUILD_ONLY_LIB=ON +) + +vcpkg_cmake_install(DISABLE_PARALLEL) +vcpkg_copy_pdbs() +vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}") +vcpkg_fixup_pkgconfig() + +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt") diff --git a/ports/liboqs/vcpkg.json b/ports/liboqs/vcpkg.json new file mode 100644 index 00000000000000..a92cc58575315a --- /dev/null +++ b/ports/liboqs/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "liboqs", + "version": "0.12.0", + "description": "open source C library for quantum-safe cryptographic algorithms.", + "homepage": "https://openquantumsafe.org/", + "license": "MIT", + "dependencies": [ + "openssl", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} diff --git a/versions/baseline.json b/versions/baseline.json index b975d993ce5078..b3e8afcfc40586 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -4940,6 +4940,10 @@ "baseline": "0.2.1", "port-version": 3 }, + "liboqs": { + "baseline": "0.12.0", + "port-version": 0 + }, "liborigin": { "baseline": "3.0.3", "port-version": 0 diff --git a/versions/l-/liboqs.json b/versions/l-/liboqs.json new file mode 100644 index 00000000000000..5cfcf2f41b11bb --- /dev/null +++ b/versions/l-/liboqs.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "12869575908c4f0bcfdb3d513a8b6b54f44342a4", + "version": "0.12.0", + "port-version": 0 + } + ] +}