diff options
| author | Sönke Schau <xgcssch@users.noreply.github.com> | 2020-08-07 20:10:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-07 11:10:12 -0700 |
| commit | dc5a1d36644f93f1fd8e55c9bcd3bbb856d4bd16 (patch) | |
| tree | 92d8e07ad88f394cb4394dfd0d9b77d0dfea8f7d | |
| parent | 907e390879612b3fd89463ef133940ab54a4ca91 (diff) | |
| download | vcpkg-dc5a1d36644f93f1fd8e55c9bcd3bbb856d4bd16.tar.gz vcpkg-dc5a1d36644f93f1fd8e55c9bcd3bbb856d4bd16.zip | |
[libu2f-server] Fix wrong include reference (#12786)
* [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>
| -rw-r--r-- | ports/libu2f-server/CONTROL | 3 | ||||
| -rw-r--r-- | ports/libu2f-server/portfile.cmake | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/ports/libu2f-server/CONTROL b/ports/libu2f-server/CONTROL index 26803fbb7..1af6aa8f1 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 86e5d9bbe..e4f7c6ddb 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 <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()
|
