diff options
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/networkdirect-sdk/CONTROL | 3 | ||||
| -rw-r--r-- | ports/networkdirect-sdk/portfile.cmake | 10 |
2 files changed, 4 insertions, 9 deletions
diff --git a/ports/networkdirect-sdk/CONTROL b/ports/networkdirect-sdk/CONTROL index 158183800..4863ffae1 100644 --- a/ports/networkdirect-sdk/CONTROL +++ b/ports/networkdirect-sdk/CONTROL @@ -1,5 +1,6 @@ Source: networkdirect-sdk
Version: 2.0.1
+Port-Version: 1
Description: The Network Direct architecture allows hardware vendors to expose the advanced capabilities of their networking devices.
Homepage: https://www.nuget.org/packages/NetworkDirect
-Supports: windows&(x64|x86)
\ No newline at end of file +Supports: windows & (x64|x86) & !uwp
\ No newline at end of file diff --git a/ports/networkdirect-sdk/portfile.cmake b/ports/networkdirect-sdk/portfile.cmake index 666a31be4..2b97eb8a1 100644 --- a/ports/networkdirect-sdk/portfile.cmake +++ b/ports/networkdirect-sdk/portfile.cmake @@ -1,11 +1,5 @@ #only supports windows
-if (VCPKG_CMAKE_SYSTEM_NAME)
- message(FATAL_ERROR "networkDirect-sdk only supports windows")
-endif()
-
-if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
- message(FATAL_ERROR "networkDirect-sdk only supports x64 and x86")
-endif()
+vcpkg_fail_port_install(ON_ARCH "arm" ON_TARGET "uwp" "linux" "osx")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
@@ -37,4 +31,4 @@ elseif(VCPKG_TARGET_ARCHITECTURE STREQUAL "x86") file(COPY ${SOURCE_PATH}/lib/Win32/ndutil.lib DESTINATION ${CURRENT_PACKAGES_DIR}/debug/lib/)
endif()
-file(COPY ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/networkdirect-sdk/COPYRIGHT)
+file(INSTALL ${LICENSE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
