libhidapi: update to version 0.14.0 Changelog (taken from https://github.com/libusb/hidapi/releases/tag/hidapi-0.14.0): hidapi-0.14.0 d3013f0 general: add hid_get_report_descriptor API function (#451) macOS: fix retrieving USB Interface number on macOS 13.3 (#534) macOS: Properly handle the close of run loop on macOS (#522) libusb: fix crash in hid_enumerate() caused by a stale device handle (#526) windows: alternative way to get USB Serial Number if not provided by HidD_GetSerialNumberString (#464) windows: don't mark with dllexport in static build (#507/#515) windows: Get Bluetooth device Model Number String instead of Device Name into product string (#500) general: fixes (mostly error handling) of issues found by Coverity Scan (#552/#554/#555/#559/#560/#561) general: variouse fixes and improvements Released hidapi-win.zip includes pre-compiled: hidapi.dll hidapi.lib For x86 and x64 Windows platforms. And header file(s) for it.diff -r1.10 -r1.11 pkgsrc/comms/libhidapi/Makefile
(nikita)
@@ -1,39 +1,41 @@ | @@ -1,39 +1,41 @@ | |||
1 | # $NetBSD: Makefile,v 1.10 2023/05/18 09:04:59 nikita Exp $ | 1 | # $NetBSD: Makefile,v 1.11 2023/05/23 17:54:04 nikita Exp $ | |
2 | 2 | |||
3 | GITHUB_PROJECT= hidapi | 3 | GITHUB_PROJECT= hidapi | |
4 | GITHUB_TAG= ${GITHUB_PROJECT}-0.13.1 | 4 | GITHUB_TAG= ${GITHUB_PROJECT}-0.14.0 | |
5 | DISTNAME= ${GITHUB_TAG} | 5 | DISTNAME= ${GITHUB_TAG} | |
6 | PKGNAME= lib${DISTNAME} | 6 | PKGNAME= lib${DISTNAME} | |
7 | CATEGORIES= comms devel | 7 | CATEGORIES= comms devel | |
8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=libusb/} | 8 | MASTER_SITES= ${MASTER_SITE_GITHUB:=libusb/} | |
9 | 9 | |||
10 | MAINTAINER= nathanialsloss@yahoo.com.au | 10 | MAINTAINER= nathanialsloss@yahoo.com.au | |
11 | HOMEPAGE= https://github.com/libusb/hidapi | 11 | HOMEPAGE= https://github.com/libusb/hidapi | |
12 | COMMENT= Library for comunicating with bluetooth and usb hid devices | 12 | COMMENT= Library for comunicating with bluetooth and usb hid devices | |
13 | LICENSE= gnu-gpl-v3 OR modified-bsd | 13 | LICENSE= gnu-gpl-v3 OR modified-bsd | |
14 | 14 | |||
15 | USE_LANGUAGES= c c++ | 15 | USE_LANGUAGES= c c++ | |
16 | USE_TOOLS+= pkg-config | 16 | USE_TOOLS+= pkg-config | |
17 | 17 | |||
18 | PTHREAD_AUTO_VARS= yes | 18 | PTHREAD_AUTO_VARS= yes | |
19 | LDFLAGS+= ${PTHREAD_LFLAGS} | 19 | LDFLAGS+= ${PTHREAD_LFLAGS} | |
20 | 20 | |||
21 | PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in | 21 | PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in | |
22 | PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in | 22 | PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in | |
23 | PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in | 23 | PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in | |
24 | 24 | |||
25 | PLIST_VARS+= libusb hidraw | 25 | PLIST_VARS+= libusb hidraw | |
26 | 26 | |||
27 | PLIST_SUBST+= PKGVERSION=${PKGVERSION_NOREV} | |||
28 | ||||
27 | .include "../../mk/bsd.prefs.mk" | 29 | .include "../../mk/bsd.prefs.mk" | |
28 | 30 | |||
29 | .if ${OPSYS} != "Darwin" | 31 | .if ${OPSYS} != "Darwin" | |
30 | PLIST.libusb= yes | 32 | PLIST.libusb= yes | |
31 | . if ${OPSYS} == "Linux" | 33 | . if ${OPSYS} == "Linux" | |
32 | PLIST.hidraw= yes | 34 | PLIST.hidraw= yes | |
33 | . endif | 35 | . endif | |
34 | .endif | 36 | .endif | |
35 | 37 | |||
36 | 38 | |||
37 | .include "../../devel/cmake/build.mk" | 39 | .include "../../devel/cmake/build.mk" | |
38 | .include "../../devel/gettext-lib/buildlink3.mk" | 40 | .include "../../devel/gettext-lib/buildlink3.mk" | |
39 | .include "../../devel/libusb1/buildlink3.mk" | 41 | .include "../../devel/libusb1/buildlink3.mk" |
@@ -1,15 +1,15 @@ | @@ -1,15 +1,15 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.7 2023/05/18 09:04:59 nikita Exp $ | 1 | @comment $NetBSD: PLIST,v 1.8 2023/05/23 17:54:04 nikita Exp $ | |
2 | include/hidapi/hidapi.h | 2 | include/hidapi/hidapi.h | |
3 | ${PLIST.libusb}include/hidapi/hidapi_libusb.h | 3 | ${PLIST.libusb}include/hidapi/hidapi_libusb.h | |
4 | lib/cmake/hidapi/hidapi-config-version.cmake | 4 | lib/cmake/hidapi/hidapi-config-version.cmake | |
5 | lib/cmake/hidapi/hidapi-config.cmake | 5 | lib/cmake/hidapi/hidapi-config.cmake | |
6 | lib/cmake/hidapi/libhidapi-release.cmake | 6 | lib/cmake/hidapi/libhidapi-release.cmake | |
7 | lib/cmake/hidapi/libhidapi.cmake | 7 | lib/cmake/hidapi/libhidapi.cmake | |
8 | ${PLIST.hidraw}lib/libhidapi-hidraw.so | 8 | ${PLIST.hidraw}lib/libhidapi-hidraw.so | |
9 | ${PLIST.hidraw}lib/libhidapi-hidraw.so.0 | 9 | ${PLIST.hidraw}lib/libhidapi-hidraw.so.0 | |
10 | ${PLIST.hidraw}lib/libhidapi-hidraw.so.0.13.1 | 10 | ${PLIST.hidraw}lib/libhidapi-hidraw.so.${PKGVERSION} | |
11 | lib/libhidapi-libusb.so | 11 | lib/libhidapi-libusb.so | |
12 | lib/libhidapi-libusb.so.0 | 12 | lib/libhidapi-libusb.so.0 | |
13 | lib/libhidapi-libusb.so.0.13.1 | 13 | lib/libhidapi-libusb.so.${PKGVERSION} | |
14 | ${PLIST.hidraw}lib/pkgconfig/hidapi-hidraw.pc | 14 | ${PLIST.hidraw}lib/pkgconfig/hidapi-hidraw.pc | |
15 | ${PLIST.libusb}lib/pkgconfig/hidapi-libusb.pc | 15 | ${PLIST.libusb}lib/pkgconfig/hidapi-libusb.pc |
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | @comment $NetBSD: PLIST.Darwin,v 1.1 2023/05/18 09:04:59 nikita Exp $ | 1 | @comment $NetBSD: PLIST.Darwin,v 1.2 2023/05/23 17:54:04 nikita Exp $ | |
2 | include/hidapi/hidapi_darwin.h | 2 | include/hidapi/hidapi_darwin.h | |
3 | lib/libhidapi.0.13.1dylib | 3 | lib/libhidapi.${PKGVERSION}dylib | |
4 | lib/libhidapi.0.dylib | 4 | lib/libhidapi.0.dylib | |
5 | lib/libhidapi.dylib | 5 | lib/libhidapi.dylib | |
6 | lib/pkgconfig/hidapi.pc | 6 | lib/pkgconfig/hidapi.pc |
@@ -1,8 +1,8 @@ | @@ -1,8 +1,8 @@ | |||
1 | $NetBSD: distinfo,v 1.8 2023/05/10 16:56:38 nikita Exp $ | 1 | $NetBSD: distinfo,v 1.9 2023/05/23 17:54:04 nikita Exp $ | |
2 | 2 | |||
3 | BLAKE2s (hidapi-0.13.1.tar.gz) = 07f19a135f835e6e28a058bad6de751f11069e75a44212ecdead881ac6a9a6d1 | 3 | BLAKE2s (hidapi-0.14.0.tar.gz) = b2121c1d82fb4ddfddd66179a36c417f5a7bae08f8e040df8bb3c51aa57b3f12 | |
4 | SHA512 (hidapi-0.13.1.tar.gz) = 07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53 | 4 | SHA512 (hidapi-0.14.0.tar.gz) = 66a045144f90b41438898b82f0398e80223323ebfe6e4f197d2713696bb3ae60f36aea5a37a9999b34b12294783fd7e4c28c6e785462559cbe21276009da1eac | |
5 | Size (hidapi-0.13.1.tar.gz) = 244666 bytes | 5 | Size (hidapi-0.14.0.tar.gz) = 348221 bytes | |
6 | SHA1 (patch-Makefile.am) = 8e39fc4650601af39c510107ca2b3c85029fb2df | 6 | SHA1 (patch-Makefile.am) = 8e39fc4650601af39c510107ca2b3c85029fb2df | |
7 | SHA1 (patch-configure.ac) = caf23d94ec0af608f63dfd3acba7b3624af78bdc | 7 | SHA1 (patch-configure.ac) = caf23d94ec0af608f63dfd3acba7b3624af78bdc | |
8 | SHA1 (patch-libusb_Makefile.am) = 2caf718bd7538bcc43b7eaea75dc5a7024f12581 | 8 | SHA1 (patch-libusb_Makefile.am) = 2caf718bd7538bcc43b7eaea75dc5a7024f12581 |