diff --git a/ports/libu2f-server/CONTROL b/ports/libu2f-server/CONTROL index 26803fbb7e..1af6aa8f1d 100644 --- a/ports/libu2f-server/CONTROL +++ b/ports/libu2f-server/CONTROL @@ -1,4 +1,7 @@ Source: libu2f-server Version: 1.1.0 +Port-Version: 2 Build-Depends: openssl, json-c +Homepage: https://developers.yubico.com/libu2f-server/ Description: Yubico Universal 2nd Factor (U2F) Server C Library +Supports: (x86 | x64) & windows diff --git a/ports/libu2f-server/portfile.cmake b/ports/libu2f-server/portfile.cmake index 86e5d9bbeb..e4f7c6ddbf 100644 --- a/ports/libu2f-server/portfile.cmake +++ b/ports/libu2f-server/portfile.cmake @@ -23,6 +23,12 @@ vcpkg_configure_cmake( vcpkg_install_cmake() +# The include file must be patched after the build has completed, because the source files use the wrong subdirectory name! +vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libu2f-server/u2f-server.h + "#include " + "#include " +) + file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) vcpkg_copy_pdbs()