Port details
hidapi Library to access USB HID-class devices
0.15.0 comms Σ=10 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 0.15.0Version of this port present on the latest quarterly branch. upstream: hidapi-0.16.0A newer version was found upstream by portscout, first on 2026-11-16.
Maintainer: sstallion@gmail.com search for ports maintained by this maintainer
Port Added: 2014-01-03 20:43:21
Last Update: 2025-05-21 21:29:51
Commit Hash: 680c238
People watching this port, also watch: libedit, readline, sqlite3, git, pkg
License: BSD3CLAUSE GPLv3
WWW:
https://github.com/libusb/hidapi
Description: #
HIDAPI is a platform independent library that allows applications to work with USB HID-Class devices. While it can be used to communicate with standard HID devices like keyboards, mice, and joysticks, it is most useful when used with custom (Vendor-Defined) HID devices.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
Expand this list (21 items)
Collapse this list.
  1. @ldconfig
  2. /usr/local/share/licenses/hidapi-0.15.0/catalog.mk
  3. /usr/local/share/licenses/hidapi-0.15.0/LICENSE
  4. /usr/local/share/licenses/hidapi-0.15.0/BSD3CLAUSE
  5. /usr/local/share/licenses/hidapi-0.15.0/GPLv3
  6. include/hidapi/hidapi.h
  7. include/hidapi/hidapi_libusb.h
  8. lib/libhidapi.a
  9. lib/libhidapi.so
  10. lib/libhidapi.so.0
  11. lib/libhidapi.so.0.0.0
  12. libdata/pkgconfig/hidapi.pc
  13. share/doc/hidapi/AUTHORS.txt
  14. share/doc/hidapi/LICENSE-bsd.txt
  15. share/doc/hidapi/LICENSE-gpl3.txt
  16. share/doc/hidapi/LICENSE-orig.txt
  17. share/doc/hidapi/LICENSE.txt
  18. share/doc/hidapi/README.md
  19. @owner
  20. @group
  21. @mode
Collapse this list.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • For RUN/BUILD depends:
    • hidapi>0:comms/hidapi
  • For LIB depends:
    • libhidapi.so:comms/hidapi
To install the port: #
cd /usr/ports/comms/hidapi/ && make install clean
To add the package, run one of these commands:
  • pkg install comms/hidapi
  • pkg install hidapi
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
PKGNAME: hidapi
Flavors: #
there is no flavor information for this port.
distinfo: #
TIMESTAMP = 1747826728 SHA256 (libusb-hidapi-hidapi-0.15.0_GH0.tar.gz) = 5d84dec684c27b97b921d2f3b73218cb773cf4ea915caee317ac8fc73cef8136 SIZE (libusb-hidapi-hidapi-0.15.0_GH0.tar.gz) = 363838

Packages (timestamps in pop-ups are UTC): #
hidapi
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest0.15.00.15.00.13.10.15.00.15.0
FreeBSD:14:quarterly0.15.00.15.0-0.15.00.15.0
FreeBSD:15:latest0.15.00.15.0n/a0.15.0n/a
FreeBSD:15:quarterly0.15.00.15.0n/a-n/a
FreeBSD:16:latest CURRENT0.15.00.15.0n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. msgfmt : devel/gettext-tools
  2. pkgconf>=1.3.0_1 : devel/pkgconf
  3. autoconf>=2.72 : devel/autoconf
  4. automake>=1.17 : devel/automake
  5. libtoolize : devel/libtool
Library dependencies: #
  1. libiconv.so : converters/libiconv
This port is required by: #
for Build #
  1. audio/headsetcontrol
  2. misc/g810-led
for Libraries #
  1. audio/headsetcontrol
  2. audio/mixxx
  3. cad/PrusaSlicer
  4. cad/openfpgaloader
  5. cad/openscad
  6. cad/openscad-devel
  7. comms/libusbsio
Expand this list (45 items / 38 hidden - sorry, this count includes any deleted ports)
  1. Collapse this list.
  2. comms/py-hidapi
  3. comms/py-libusbsio
  4. comms/py-streamdeck
  5. comms/sdrangel
  6. databases/mysql80-client
  7. databases/mysql80-server
  8. devel/avrdude
  9. devel/libsigrok
  10. devel/msp430-debug-stack
  11. devel/openocd
  12. devel/openocd-devel
  13. emulators/dolphin-emu
  14. emulators/rpcs3
  15. misc/g810-led
  16. misc/openhmd
  17. security/agave
  18. security/libnitrokey
  19. sysutils/framework-system
  20. sysutils/framework-tool-tui
  21. sysutils/msiklm
  22. sysutils/qmk_hid
  23. sysutils/vitaly
  24. x11/openrgb
  25. Collapse this list.

Deleted ports which required this port:

Expand this list of 15 deleted ports
  1. audio/mixxx21*
  2. audio/mixxx22*
  3. comms/libconcord*
  4. databases/mysql81-client*
  5. databases/mysql81-server*
  6. databases/mysql90-client*
  7. databases/mysql90-server*
  8. databases/mysql91-client*
  9. databases/mysql91-server*
  10. databases/mysql94-client*
  11. databases/mysql94-server*
  12. databases/mysql96-client*
  13. databases/mysql96-server*
  14. security/libu2f-host*
  15. security/solana*
  16. Collapse this list of deleted ports.
for Run #
  1. comms/py-hid
  2. sysutils/solaar

Configuration Options: #
===> The following configuration options are available for hidapi-0.15.0: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings
Options name: #
comms_hidapi
USES: #
autoreconf gettext-tools iconv:wchar_t libtool localbase pkgconfig
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (1 items)
Collapse this list.
  1. https://codeload.github.com/libusb/hidapi/tar.gz/hidapi-0.15.0?dummy=/
Collapse this list.

Number of commits found: 23 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.15.0
21 May 2025 21:29:51
commit hash: 680c2381f729607ea8f464f38e8563c5998987cacommit hash: 680c2381f729607ea8f464f38e8563c5998987cacommit hash: 680c2381f729607ea8f464f38e8563c5998987cacommit hash: 680c2381f729607ea8f464f38e8563c5998987ca files touched by this commit
Vladimir Druzenko (vvd) search for other commits by this committer
Author: Steven Stallion
comms/hidapi: Update 0.14.0 => 0.15.0

Changelog:
https://github.com/libusb/hidapi/releases/tag/hidapi-0.15.0

PR:	286972
0.14.0
25 May 2023 09:39:33
commit hash: 55b63657a7c57ad5ee8fe0766dcb1604f2237e24commit hash: 55b63657a7c57ad5ee8fe0766dcb1604f2237e24commit hash: 55b63657a7c57ad5ee8fe0766dcb1604f2237e24commit hash: 55b63657a7c57ad5ee8fe0766dcb1604f2237e24 files touched by this commit
Robert Clausecker (fuz) search for other commits by this committer
Author: Steven Stallion
comms/hidapi: Update to 0.14.0

Changelog: https://github.com/libusb/hidapi/releases/tag/hidapi-0.14.0

PR:		271575
0.13.1
10 Jan 2023 16:23:51
commit hash: b8c31f55c3cff99bfb931a88edd45dce53315e85commit hash: b8c31f55c3cff99bfb931a88edd45dce53315e85commit hash: b8c31f55c3cff99bfb931a88edd45dce53315e85commit hash: b8c31f55c3cff99bfb931a88edd45dce53315e85 files touched by this commit
Nuno Teixeira (eduardo) search for other commits by this committer
Author: Steven Stallion
comms/hidapi: Update to 0.13.1

 - Submitter becomes maintainer

ChangeLog:
https://github.com/libusb/hidapi/compare/hidapi-0.12.0...hidapi-0.13.1

PR:		268856
0.12.0
17 Oct 2022 12:02:09
commit hash: 24582f35511473609c12950304f873517128020dcommit hash: 24582f35511473609c12950304f873517128020dcommit hash: 24582f35511473609c12950304f873517128020dcommit hash: 24582f35511473609c12950304f873517128020d files touched by this commit
Emanuel Haupt (ehaupt) search for other commits by this committer
*/*: Drop maintainership
07 Sep 2022 21:58:51
commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4commit hash: fb16dfecae4a6efac9f3a78e0b759fb7a3c53de4 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Remove WWW entries moved into port Makefiles

Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.

This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.

Approved by:		portmgr (tcberner)
0.12.0
07 Sep 2022 21:10:59
commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52commit hash: b7f05445c00f2625aa19b4154ebcbce5ed2daa52 files touched by this commit
Stefan Eßer (se) search for other commits by this committer
Add WWW entries to port Makefiles

It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.

Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.

There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.12.0
26 May 2022 19:24:42
commit hash: 717a95c1e2e6e1037475d67f4a97f900dc09f6eccommit hash: 717a95c1e2e6e1037475d67f4a97f900dc09f6eccommit hash: 717a95c1e2e6e1037475d67f4a97f900dc09f6eccommit hash: 717a95c1e2e6e1037475d67f4a97f900dc09f6ec files touched by this commit
Emanuel Haupt (ehaupt) search for other commits by this committer
comms/hidapi: Update to 0.12.0
0.11.2
09 Jan 2022 10:43:35
commit hash: d302993ef247611e086323e55d1a2ef1cab5d41dcommit hash: d302993ef247611e086323e55d1a2ef1cab5d41dcommit hash: d302993ef247611e086323e55d1a2ef1cab5d41dcommit hash: d302993ef247611e086323e55d1a2ef1cab5d41d files touched by this commit
Emanuel Haupt (ehaupt) search for other commits by this committer
comms/hidapi: Update to 0.11.2
0.11.0_1
07 Oct 2021 15:52:05
commit hash: a25d8b2a68117b2fae70a8fc46df808b58e5dd60commit hash: a25d8b2a68117b2fae70a8fc46df808b58e5dd60commit hash: a25d8b2a68117b2fae70a8fc46df808b58e5dd60commit hash: a25d8b2a68117b2fae70a8fc46df808b58e5dd60 files touched by this commit
Emanuel Haupt (ehaupt) search for other commits by this committer
comms/hidapi: Switch from cmake back to autoreconf build

Switch from cmake back to to autoreconf build as this broke
comms/py-hidapi. Once this has been investigated and fixed we
can switch back to cmake.

Notified by:	pkg-fallout
0.11.0
06 Oct 2021 18:39:44
commit hash: 17e834af3141675728b00ecff9de22e463a8da27commit hash: 17e834af3141675728b00ecff9de22e463a8da27commit hash: 17e834af3141675728b00ecff9de22e463a8da27commit hash: 17e834af3141675728b00ecff9de22e463a8da27 files touched by this commit
Emanuel Haupt (ehaupt) search for other commits by this committer
comms/hidapi: Update to 0.11.1

Switch to cmake due to upstream deprecation warning

Release notes:  https://github.com/libusb/hidapi/releases/tag/hidapi-0.11.0
0.10.1
07 Apr 2021 08:09:01
commit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455ccommit hash: cf118ccf875508b9a1c570044c93cfcc82bd455c files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
0.10.1
06 Apr 2021 14:31:07
commit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344ebcommit hash: 305f148f482daf30dcf728039d03d019f88344eb files touched by this commit
Mathieu Arnold (mat) search for other commits by this committer
Remove # $FreeBSD$ from Makefiles.
0.10.1
17 Mar 2021 10:01:26
Revision:568637commit hash: b8491948a5cf8309ff9e3cbcfd1ac9540ac7ce69commit hash: b8491948a5cf8309ff9e3cbcfd1ac9540ac7ce69commit hash: b8491948a5cf8309ff9e3cbcfd1ac9540ac7ce69commit hash: b8491948a5cf8309ff9e3cbcfd1ac9540ac7ce69Original commit files touched by this commit
tijl search for other commits by this committer
The libusb project has adopted hidapi.  Update to their latest release,
0.10.1.  Bump py-hidapi so it gets rebuilt to use new functions.
Hand over to maintainer of py-hidapi so the two can be maintained together.

Reported by:	Corey Stephan (marquette.edu)
Tested by:	ehaupt
0.8.0.r1_3
10 Sep 2018 13:14:52
Revision:479406commit hash: e1bfdfbe5665c963621e06f6bbfbbc2c000a804ecommit hash: e1bfdfbe5665c963621e06f6bbfbbc2c000a804ecommit hash: e1bfdfbe5665c963621e06f6bbfbbc2c000a804ecommit hash: e1bfdfbe5665c963621e06f6bbfbbc2c000a804eOriginal commit files touched by this commit
mat search for other commits by this committer
Add DOCS options to ports that should have one.

Also various fixes related to said option.

PR:		230864
Submitted by:	mat
exp-runs by:	antoine
0.8.0.r1_3
10 Oct 2015 14:03:01
Revision:398996commit hash: 3a55a118dde2f1cef80ad8ed446044449cb8417dcommit hash: 3a55a118dde2f1cef80ad8ed446044449cb8417dcommit hash: 3a55a118dde2f1cef80ad8ed446044449cb8417dcommit hash: 3a55a118dde2f1cef80ad8ed446044449cb8417dOriginal commit files touched by this commit
tijl search for other commits by this committer
Remove iconv(), iconv_open() and iconv_close() symbols from libiconv.

These were FreeBSD specific aliases for libiconv(), libiconv_open() and
libiconv_close() that are now also provided by libc which complicates
writing configure tests that work correctly when both libc iconv and
libiconv are available.

Also, because the libiconv iconv.h header redefines iconv* to libiconv*
correct use of the header implies that the aliases aren't used.

The following ports needed fixes because there was something wrong with
the way they tried to detect or use iconv:

audio/deadbeef: Remove LIBICONV_PLUG from a source file.  It's a
compile-time option and should not be set in source code.
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.8.0.r1_3
30 May 2015 21:25:07
Revision:387986commit hash: 90a49f047213b5e4589868c4f9ed9f34fa186e8bcommit hash: 90a49f047213b5e4589868c4f9ed9f34fa186e8bcommit hash: 90a49f047213b5e4589868c4f9ed9f34fa186e8bcommit hash: 90a49f047213b5e4589868c4f9ed9f34fa186e8bOriginal commit files touched by this commit
mat search for other commits by this committer
Cleanup USE_GITHUB usage.

With hat:	portmgr
Sponsored by:	Absolight
0.8.0.r1_3
06 May 2015 15:16:54
Revision:385521commit hash: c6457ffef432e7f18fbdf8194ed4d1993763454acommit hash: c6457ffef432e7f18fbdf8194ed4d1993763454acommit hash: c6457ffef432e7f18fbdf8194ed4d1993763454acommit hash: c6457ffef432e7f18fbdf8194ed4d1993763454aOriginal commit files touched by this commit
mat search for other commits by this committer
Update ports in the [bcd]* categories to not use GH_COMMIT.

With minor cleanups to make things simpler.

With hat:	portmgr
Sponsored by:	Absolight
0.8.0.r1_3
18 Dec 2014 11:21:54
Revision:374889commit hash: 610d8d5d5ea7bce03258dab45b796dfd720d9a3fcommit hash: 610d8d5d5ea7bce03258dab45b796dfd720d9a3fcommit hash: 610d8d5d5ea7bce03258dab45b796dfd720d9a3fcommit hash: 610d8d5d5ea7bce03258dab45b796dfd720d9a3fOriginal commit files touched by this commit
bapt search for other commits by this committer
Convert to USES=autoreconf
Strip binaries
Track PORTDOCS files
0.8.0.r1_2
20 Oct 2014 09:31:34
Revision:371247commit hash: 2c8db677264e680c88de6c9080c9370552f525adcommit hash: 2c8db677264e680c88de6c9080c9370552f525adcommit hash: 2c8db677264e680c88de6c9080c9370552f525adcommit hash: 2c8db677264e680c88de6c9080c9370552f525adOriginal commit files touched by this commit
bapt search for other commits by this committer
Cleanup plist
0.8.0.r1_2
13 Sep 2014 18:25:05
Revision:368126commit hash: a5bee80ce4fb7f1f65014eea6f67539f4089937acommit hash: a5bee80ce4fb7f1f65014eea6f67539f4089937acommit hash: a5bee80ce4fb7f1f65014eea6f67539f4089937acommit hash: a5bee80ce4fb7f1f65014eea6f67539f4089937aOriginal commit files touched by this commit
tijl search for other commits by this committer
Use default LIBTOOLIZE_ARGS
0.8.0.r1_2
23 Apr 2014 13:25:17
Revision:351936commit hash: aad09bc5e23eb75a7a865a8b0002fbc6e13d4659commit hash: aad09bc5e23eb75a7a865a8b0002fbc6e13d4659commit hash: aad09bc5e23eb75a7a865a8b0002fbc6e13d4659commit hash: aad09bc5e23eb75a7a865a8b0002fbc6e13d4659Original commit files touched by this commit
tijl search for other commits by this committer
When linking a library libA with a library libB using libtool, if libB.la
exists, libtool will add all libraries libB.la refers to (dependency_libs
field) to the linker command line and store them in the dependency_libs
field of libA.la.  So everything that subsequently links with libA will also
link to these extra libraries.  This causes too much overlinking.

This commit modifies Mk/Uses/libtool.mk so it empties the dependency_libs
field in .la libraries during staging.  However, because .la libraries have
very limited use when dependency_libs is empty it makes sense to completely
remove them during staging.

So with this commit USES=libtool is modified to remove .la libraries and a
new form (USES=libtool:keepla) is introduced in case they need to be kept
(dependency_libs is still emptied).
(Only the first 15 lines of the commit message are shown above View all of this commit message)
0.8.0.r1_1
29 Jan 2014 21:01:51
Revision:341781commit hash: 70772d8b363ae6780c6490959e541b675fc9e54acommit hash: 70772d8b363ae6780c6490959e541b675fc9e54acommit hash: 70772d8b363ae6780c6490959e541b675fc9e54acommit hash: 70772d8b363ae6780c6490959e541b675fc9e54aOriginal commit files touched by this commit
tijl search for other commits by this committer
- Remove part of a patch that wasn't entirely correct and let the port
  use the WCHAR_T iconv extension instead.
- Add USES=libtool and let libtoolize copy the necessary files instead of
  symlinking them such that they can be patched.
- Add a configure check for libusb_handle_events_completed.
0.8.0.r1
03 Jan 2014 20:42:36
Revision:338581commit hash: 5272612b0f570eaff725e2f445eccf452275bddbcommit hash: 5272612b0f570eaff725e2f445eccf452275bddbcommit hash: 5272612b0f570eaff725e2f445eccf452275bddbcommit hash: 5272612b0f570eaff725e2f445eccf452275bddbOriginal commit files touched by this commit
tijl search for other commits by this committer
New port comms/hidapi.

HIDAPI is a platform independent library that allows applications to
work with USB HID-Class devices.  While it can be used to communicate
with standard HID devices like keyboards, mice, and joysticks, it is
most useful when used with custom (Vendor-Defined) HID devices.

Number of commits found: 23