head 1.1; access; symbols pkgsrc-2026Q2:1.1.0.4 pkgsrc-2026Q2-base:1.1 pkgsrc-2026Q1:1.1.0.2 pkgsrc-2026Q1-base:1.1; locks; strict; comment @# @; 1.1 date 2026.03.13.10.37.25; author tsutsui; state Exp; branches; next ; commitid zthTDBjLQOWoMNxG; desc @@ 1.1 log @libhidapi: update to 0.15.0 pkgsrc changes: - add PLIST_VARS for libhidapi-netbsd (NetBSD HID native backend) - pull iconv(3) const check from libusb version - check both addr 0 and 1 on enumerating devices (see NetBSD PR/60073) Upstream changes: https://github.com/libusb/hidapi/releases/tag/hidapi-0.15.0 general: Add hid_send_output_report() (#677) general: Add hid_read_error() (#721) winapi: add hid_winapi_set_write_timeout (#700) winapi: improvements for hid_get_report_descriptor/hid_winapi_descriptor_reconstruct_pp_data (#707) hidraw: report only Top-Level Usage_page/Usage pairs as 'unique' devices (#601) macOS: add option to mimic 1.0.0 compatibility version (#709) NetBSD: UHID native backend implementation (#612) libusb: add abstraction for thread model, allow building using non-POSIX runtime libusb: enable support for Xbox 360 and Xbox One controllers (#572) general: various other fixes and improvements @ text @$NetBSD$ - check iconv(3) arg type as libusb --- netbsd/CMakeLists.txt.orig 2026-03-13 06:26:53.507574456 +0000 +++ netbsd/CMakeLists.txt @@@@ -10,6 +10,15 @@@@ find_package(Threads REQUIRED) target_link_libraries(hidapi_netbsd PRIVATE Threads::Threads) +# check for error: "conflicting types for 'iconv'" +check_c_source_compiles("#include + extern size_t iconv (iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft); + int main() {}" +HIDAPI_ICONV_CONST) +if(HIDAPI_ICONV_CONST) + target_compile_definitions(hidapi_netbsd PRIVATE "ICONV_CONST=const") +endif() + set_target_properties(hidapi_netbsd PROPERTIES EXPORT_NAME "netbsd" @