diff options
| author | woxigeh <55994941+woxigeh@users.noreply.github.com> | 2019-10-04 09:20:50 +1000 |
|---|---|---|
| committer | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-10-03 16:20:50 -0700 |
| commit | e02f2b2e3296aeecf1be3108f386a70388ef045a (patch) | |
| tree | 9770512fbc1fa455af6192327e047d5f0a330069 | |
| parent | a9ba330cc0e1da64cfb818811beaa0b0d81fa9fa (diff) | |
| download | vcpkg-e02f2b2e3296aeecf1be3108f386a70388ef045a.tar.gz vcpkg-e02f2b2e3296aeecf1be3108f386a70388ef045a.zip | |
[phnt] Add new port (#8434)
| -rw-r--r-- | ports/phnt/CONTROL | 4 | ||||
| -rw-r--r-- | ports/phnt/portfile.cmake | 17 |
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/phnt/CONTROL b/ports/phnt/CONTROL new file mode 100644 index 000000000..c563c0d34 --- /dev/null +++ b/ports/phnt/CONTROL @@ -0,0 +1,4 @@ +Source: phnt +Version: 2019-05-01 +Homepage: https://github.com/processhacker/phnt +Description: Windows Native API header files
\ No newline at end of file diff --git a/ports/phnt/portfile.cmake b/ports/phnt/portfile.cmake new file mode 100644 index 000000000..f381d5a9f --- /dev/null +++ b/ports/phnt/portfile.cmake @@ -0,0 +1,17 @@ +#header-only library +include(vcpkg_common_functions) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO processhacker/phnt + REF 33cfd75a2be59bbde3aa4db3399a9e6bab66ae6a + SHA512 90a1b38d27e35e7706e66dae0f4e151b50f5b74fbedf15ad165beece6a94b8a87263e16e1e0b891a324091c3769fd2ff2f541e11691b322413e575e6f08dc746 + HEAD_REF master +) + +# Install headers +file(GLOB HEADER_FILES ${SOURCE_PATH}/*.h) +file(INSTALL ${HEADER_FILES} DESTINATION ${CURRENT_PACKAGES_DIR}/include) + +# Handle copyright +file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/phnt RENAME copyright)
\ No newline at end of file |
