Wed May 10 16:56:38 2023 UTC ()
libhidapi: update to version 0.13.1

Change build-system to cmake, autotools is deprecated upstream.

Changelog (taken from https://github.com/libusb/hidapi/releases):

hidapi-0.13.1

    hidraw: fix invalid read past the UDEV buffer;

hidapi-0.13.0

    general: add hid_get_device_info (#432);
    general: Meson build script (as a wrapper over CMake) (#410);
    general: add HID Bus Type in hid_device_info (#308);
    libusb: primary usage_page/usage is now available with hid_get_device_info regardless of the compilation flags;
    hidraw: Open files with O_CLOEXEC to not leak fds to child processes (#446);
    hidraw: add support for HID over SPI (#486);
    macOS: implement hid_error (#314);
    cmake: libusb: Ensure Iconv is found when provided via CFLAGS/LDFLAGS (#430);
Other various improvements.

hidapi-0.12.0

    Windows: migrate from SetupApi to CfgMgr32 (#362) - as per recommendation from Microsoft;

    Windows: add hid_winapi_get_container_id WinAPI-specific function (#379);

    Windows: improved error messages (#388);

    Windows: fixed out-of-boundary memory access for some of the function (#418);

    windows: Add .rc (#415);

    macOS: add hid_darwin_get_location_id macOS-specific function (#378);

    macOS: add macOS-specific function(s) to open device(s) in non-exclusive mode (#397);

    libusb: improved CMake dependency on Iconv (#405) - as a result, better support for NetBSD;

    general: documentation improvements;

    general: small code cleanups/improvements;

hidapi-0.11.2

    hidraw: hid_get_input_report implementation for kernels that supports it (#351);
    windows: several improvements and bugfixes (#348, #360, #361);
    libusb: fix potential crash when libusb_detach_kernel_driver fails (#363)
    general: documentation improvements;


(nikita)
diff -r1.5 -r1.6 pkgsrc/comms/libhidapi/Makefile
diff -r1.4 -r1.5 pkgsrc/comms/libhidapi/PLIST
diff -r1.7 -r1.8 pkgsrc/comms/libhidapi/distinfo

cvs diff -r1.5 -r1.6 pkgsrc/comms/libhidapi/Makefile (expand / switch to unified diff)

--- pkgsrc/comms/libhidapi/Makefile 2021/12/07 16:42:13 1.5
+++ pkgsrc/comms/libhidapi/Makefile 2023/05/10 16:56:38 1.6
@@ -1,40 +1,35 @@ @@ -1,40 +1,35 @@
1# $NetBSD: Makefile,v 1.5 2021/12/07 16:42:13 jperkin Exp $ 1# $NetBSD: Makefile,v 1.6 2023/05/10 16:56:38 nikita Exp $
2 2
3GITHUB_PROJECT= hidapi 3GITHUB_PROJECT= hidapi
4GITHUB_TAG= ${GITHUB_PROJECT}-0.11.0 4GITHUB_TAG= ${GITHUB_PROJECT}-0.13.1
5DISTNAME= ${GITHUB_TAG} 5DISTNAME= ${GITHUB_TAG}
6PKGNAME= lib${DISTNAME} 6PKGNAME= lib${DISTNAME}
7CATEGORIES= comms devel 7CATEGORIES= comms devel
8MASTER_SITES= ${MASTER_SITE_GITHUB:=libusb/} 8MASTER_SITES= ${MASTER_SITE_GITHUB:=libusb/}
9 9
10MAINTAINER= nathanialsloss@yahoo.com.au 10MAINTAINER= nathanialsloss@yahoo.com.au
11HOMEPAGE= https://github.com/libusb/hidapi 11HOMEPAGE= https://github.com/libusb/hidapi
12COMMENT= Library for comunicating with bluetooth and usb hid devices 12COMMENT= Library for comunicating with bluetooth and usb hid devices
13LICENSE= gnu-gpl-v3 OR modified-bsd 13LICENSE= gnu-gpl-v3 OR modified-bsd
14 14
15USE_LANGUAGES= c c++ 15USE_LANGUAGES= c c++
16USE_TOOLS+= autoreconf autoconf automake 16USE_TOOLS+= pkg-config
17USE_TOOLS+= pkg-config gmake 
18 17
19HAS_CONFIGURE= yes 
20GNU_CONFIGURE= yes 
21USE_LIBTOOL= yes 18USE_LIBTOOL= yes
22 19
23PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in 20PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in
24PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in 21PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in
25PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in 22PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in
26 23
27PLIST_VARS+= libusb 24PLIST_VARS+= libusb
28 25
29.include "../../mk/bsd.prefs.mk" 26.include "../../mk/bsd.prefs.mk"
30 27
31.if ${OPSYS} != "Darwin" 28.if ${OPSYS} != "Darwin"
32PLIST.libusb= yes 29PLIST.libusb= yes
33.endif 30.endif
34 31
35pre-configure: 32.include "../../devel/cmake/build.mk"
36 cd ${WRKSRC} && ${SH} ./bootstrap 
37 
38.include "../../devel/gettext-lib/buildlink3.mk" 33.include "../../devel/gettext-lib/buildlink3.mk"
39.include "../../devel/libusb1/buildlink3.mk" 34.include "../../devel/libusb1/buildlink3.mk"
40.include "../../mk/bsd.pkg.mk" 35.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/comms/libhidapi/PLIST (expand / switch to unified diff)

--- pkgsrc/comms/libhidapi/PLIST 2021/12/07 16:42:13 1.4
+++ pkgsrc/comms/libhidapi/PLIST 2023/05/10 16:56:38 1.5
@@ -1,11 +1,11 @@ @@ -1,11 +1,11 @@
1@comment $NetBSD: PLIST,v 1.4 2021/12/07 16:42:13 jperkin Exp $ 1@comment $NetBSD: PLIST,v 1.5 2023/05/10 16:56:38 nikita Exp $
2include/hidapi/hidapi.h 2include/hidapi/hidapi.h
3${PLIST.libusb}include/hidapi/hidapi_libusb.h 3${PLIST.libusb}include/hidapi/hidapi_libusb.h
4lib/libhidapi.la 4lib/cmake/hidapi/hidapi-config-version.cmake
5lib/pkgconfig/hidapi.pc 5lib/cmake/hidapi/hidapi-config.cmake
6share/doc/hidapi/AUTHORS.txt 6lib/cmake/hidapi/libhidapi-release.cmake
7share/doc/hidapi/LICENSE-bsd.txt 7lib/cmake/hidapi/libhidapi.cmake
8share/doc/hidapi/LICENSE-gpl3.txt 8lib/libhidapi-libusb.so
9share/doc/hidapi/LICENSE-orig.txt 9lib/libhidapi-libusb.so.0
10share/doc/hidapi/LICENSE.txt 10lib/libhidapi-libusb.so.0.13.1
11share/doc/hidapi/README.md 11lib/pkgconfig/hidapi-libusb.pc

cvs diff -r1.7 -r1.8 pkgsrc/comms/libhidapi/distinfo (expand / switch to unified diff)

--- pkgsrc/comms/libhidapi/distinfo 2021/11/20 18:59:05 1.7
+++ pkgsrc/comms/libhidapi/distinfo 2023/05/10 16:56:38 1.8
@@ -1,8 +1,8 @@ @@ -1,8 +1,8 @@
1$NetBSD: distinfo,v 1.7 2021/11/20 18:59:05 nia Exp $ 1$NetBSD: distinfo,v 1.8 2023/05/10 16:56:38 nikita Exp $
2 2
3BLAKE2s (hidapi-0.11.0.tar.gz) = 02dafe2ed9d145768a4b36ac2ce9c50292824eec3fde39e9ad3f68f8a65d49c0 3BLAKE2s (hidapi-0.13.1.tar.gz) = 07f19a135f835e6e28a058bad6de751f11069e75a44212ecdead881ac6a9a6d1
4SHA512 (hidapi-0.11.0.tar.gz) = 0de4abc963600d159ce231416c468b9e81a8361e4d2c2202988d6eb2e58a923700e9b9be639fbddc6bc14625131848409e2e88dbc4b34a1f8a726c8fa4692d92 4SHA512 (hidapi-0.13.1.tar.gz) = 07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53
5Size (hidapi-0.11.0.tar.gz) = 232631 bytes 5Size (hidapi-0.13.1.tar.gz) = 244666 bytes
6SHA1 (patch-Makefile.am) = 8e39fc4650601af39c510107ca2b3c85029fb2df 6SHA1 (patch-Makefile.am) = 8e39fc4650601af39c510107ca2b3c85029fb2df
7SHA1 (patch-configure.ac) = caf23d94ec0af608f63dfd3acba7b3624af78bdc 7SHA1 (patch-configure.ac) = caf23d94ec0af608f63dfd3acba7b3624af78bdc
8SHA1 (patch-libusb_Makefile.am) = 2caf718bd7538bcc43b7eaea75dc5a7024f12581 8SHA1 (patch-libusb_Makefile.am) = 2caf718bd7538bcc43b7eaea75dc5a7024f12581