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;diff -r1.5 -r1.6 pkgsrc/comms/libhidapi/Makefile
(nikita)
@@ -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 | |||
3 | GITHUB_PROJECT= hidapi | 3 | GITHUB_PROJECT= hidapi | |
4 | GITHUB_TAG= ${GITHUB_PROJECT}-0.11.0 | 4 | GITHUB_TAG= ${GITHUB_PROJECT}-0.13.1 | |
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+= autoreconf autoconf automake | 16 | USE_TOOLS+= pkg-config | |
17 | USE_TOOLS+= pkg-config gmake | |||
18 | 17 | |||
19 | HAS_CONFIGURE= yes | |||
20 | GNU_CONFIGURE= yes | |||
21 | USE_LIBTOOL= yes | 18 | USE_LIBTOOL= yes | |
22 | 19 | |||
23 | PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in | 20 | PKGCONFIG_OVERRIDE+= pc/hidapi-hidraw.pc.in | |
24 | PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in | 21 | PKGCONFIG_OVERRIDE+= pc/hidapi-libusb.pc.in | |
25 | PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in | 22 | PKGCONFIG_OVERRIDE+= pc/hidapi.pc.in | |
26 | 23 | |||
27 | PLIST_VARS+= libusb | 24 | PLIST_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" | |
32 | PLIST.libusb= yes | 29 | PLIST.libusb= yes | |
33 | .endif | 30 | .endif | |
34 | 31 | |||
35 | pre-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" |
@@ -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 $ | |
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/libhidapi.la | 4 | lib/cmake/hidapi/hidapi-config-version.cmake | |
5 | lib/pkgconfig/hidapi.pc | 5 | lib/cmake/hidapi/hidapi-config.cmake | |
6 | share/doc/hidapi/AUTHORS.txt | 6 | lib/cmake/hidapi/libhidapi-release.cmake | |
7 | share/doc/hidapi/LICENSE-bsd.txt | 7 | lib/cmake/hidapi/libhidapi.cmake | |
8 | share/doc/hidapi/LICENSE-gpl3.txt | 8 | lib/libhidapi-libusb.so | |
9 | share/doc/hidapi/LICENSE-orig.txt | 9 | lib/libhidapi-libusb.so.0 | |
10 | share/doc/hidapi/LICENSE.txt | 10 | lib/libhidapi-libusb.so.0.13.1 | |
11 | share/doc/hidapi/README.md | 11 | lib/pkgconfig/hidapi-libusb.pc |
@@ -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 | |||
3 | BLAKE2s (hidapi-0.11.0.tar.gz) = 02dafe2ed9d145768a4b36ac2ce9c50292824eec3fde39e9ad3f68f8a65d49c0 | 3 | BLAKE2s (hidapi-0.13.1.tar.gz) = 07f19a135f835e6e28a058bad6de751f11069e75a44212ecdead881ac6a9a6d1 | |
4 | SHA512 (hidapi-0.11.0.tar.gz) = 0de4abc963600d159ce231416c468b9e81a8361e4d2c2202988d6eb2e58a923700e9b9be639fbddc6bc14625131848409e2e88dbc4b34a1f8a726c8fa4692d92 | 4 | SHA512 (hidapi-0.13.1.tar.gz) = 07b224b9b5146caf693e6d67514fed236436ed68f38a3ada98ebf8352dfaa4e175f576902affb4b79da1bb8c9b47a1ee0831a93c7d3d210e93faee24632f7d53 | |
5 | Size (hidapi-0.11.0.tar.gz) = 232631 bytes | 5 | Size (hidapi-0.13.1.tar.gz) = 244666 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 |