diff --git a/ports/hidapi/portfile.cmake b/ports/hidapi/portfile.cmake index 633eb84543..8ebfe779a8 100644 --- a/ports/hidapi/portfile.cmake +++ b/ports/hidapi/portfile.cmake @@ -13,8 +13,14 @@ FEATURES vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" - OPTIONS -DHIDAPI_BUILD_HIDTEST=OFF - ${FEATURE_OPTIONS} + OPTIONS + -DHIDAPI_BUILD_HIDTEST=OFF + -DHIDAPI_WITH_TESTS=OFF + ${FEATURE_OPTIONS} + MAYBE_UNUSED_VARIABLES + # Windows only + HIDAPI_BUILD_PP_DATA_DUMP + HIDAPI_WITH_TESTS ) vcpkg_cmake_install() @@ -26,8 +32,7 @@ if ("pp-data-dump" IN_LIST FEATURES) vcpkg_copy_tools(TOOL_NAMES pp_data_dump AUTO_CLEAN) endif() -vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/hidapi/libhidapi.cmake" "\"/hidapi\"" "\"\${_IMPORT_PREFIX}/include\"" IGNORE_UNCHANGED) - -file(INSTALL "${SOURCE_PATH}/LICENSE-bsd.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-bsd.txt") diff --git a/ports/hidapi/vcpkg.json b/ports/hidapi/vcpkg.json index 74465501ca..0f035c9449 100644 --- a/ports/hidapi/vcpkg.json +++ b/ports/hidapi/vcpkg.json @@ -1,6 +1,7 @@ { "name": "hidapi", "version-semver": "0.15.0", + "port-version": 1, "description": "A Simple library for communicating with USB and Bluetooth HID devices on Linux, Mac and Windows.", "homepage": "https://github.com/libusb/hidapi", "license": "BSD-3-Clause-Clear", diff --git a/versions/baseline.json b/versions/baseline.json index 0ba28d9d41..6311d97a2b 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3646,7 +3646,7 @@ }, "hidapi": { "baseline": "0.15.0", - "port-version": 0 + "port-version": 1 }, "highfive": { "baseline": "2.10.1", diff --git a/versions/h-/hidapi.json b/versions/h-/hidapi.json index 1ed6d79fa2..2353792603 100644 --- a/versions/h-/hidapi.json +++ b/versions/h-/hidapi.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "0558e761081a4375658a5b5c19396b152d10593a", + "version-semver": "0.15.0", + "port-version": 1 + }, { "git-tree": "f535ab7a651061deb941e5663f161e07ed903cf4", "version-semver": "0.15.0",