[Bug 259081] comms/hidapi Do an exp run for the cmake switch

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 11 Oct 2021 21:14:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259081

            Bug ID: 259081
           Summary: comms/hidapi Do an exp run for the cmake switch
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt@FreeBSD.org
          Reporter: monwarez@mailoo.org
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)
          Assignee: ehaupt@FreeBSD.org

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 .

-- 
You are receiving this mail because:
You are the assignee for the bug.