Skip to content

Commit

Permalink
[libu2f-server] Fix wrong include reference (#12786)
Browse files Browse the repository at this point in the history
* [libu2f-server] Fix wrong include reference

* [libu2f-server] Added missing files CONTROL an portfile

* Replace the patch with vcpkg_replace_string to fix up a header

* Update ports/libu2f-server/CONTROL

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>

Co-authored-by: Phoebe <20694052+PhoebeHui@users.noreply.github.com>
  • Loading branch information
xgcssch and PhoebeHui committed Aug 7, 2020
1 parent 907e390 commit dc5a1d3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ports/libu2f-server/CONTROL
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions ports/libu2f-server/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 <u2f-server/u2f-server-version.h>"
"#include <libu2f-server/u2f-server-version.h>"
)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_copy_pdbs()
Expand Down

0 comments on commit dc5a1d3

Please sign in to comment.