With the switch to cmake, code that use hidapi with libusb backend will not have to be modified to build on FreeBSD. Indeed the cmake build will generate a hidapi-libusb.pc pkg-config files, and will ship with libhidapi-libusb.so. So all ports that depends on it will need to depends of libhidapi-libusb.so And they will need to be unpatched for FreeBSD: they will need to check for hidapi-libusb like on GNU/Linux instead of hidapi (with pkg-config). A dirty fix would be to just change the depends to libhidapi-libusb.so and create a symlink of hidapi-libusb.pc to hidapi.pc .
The build system was switched back to autoreconf 5 days ago, see commit: https://cgit.freebsd.org/ports/commit/?id=a25d8b2a68117b2fae70a8fc46df808b58e5dd60
Back to pool. I no longer maintain this port.
Steve(In reply to Thibault Payet from comment #0) Hi Thibault, Out of curiosity, what are you requesting? HIDAPI supports more than just CMake, and keeping the set of dependencies as small as possible is a nice goal. Personally, I would prefer using manual Makefiles with supplemental .pc's if that is all that is missing.
(In reply to Steven Stallion from comment #3) I should check dates more often. Disregard.
Closing this one, since it would need an attachment that actually switches the port around to using CMake (and Steven says to prefer the autotools approach). Note that https://github.com/libusb/hidapi/blob/master/BUILD.md now says that CMake is the preferred build, but there's nothing forcing that on ports (yet).