SUMMARY="Library for Interfacing with HID-Class devices" DESCRIPTION="HIDAPI is a multi-platform library which allows an application to \ interface with USB and Bluetooth HID-Class devices on Windows, Linux, and \ macOS. 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. Many devices do this in order to not require a \ custom driver to be written for each platform. HIDAPI is easy to integrate with \ the client application, just requiring a single source file to be dropped into \ the application. (On Haiku, it only works with USB)." HOMEPAGE="http://www.signal11.us/oss/hidapi/" COPYRIGHT="2010 Alan Ott 2011 Signal 11 Software" LICENSE="BSD (3-clause) GNU GPL v3" REVISION="2" srcGitRev="a6a622ffb680c55da0de787ff93b80280498330f" SOURCE_URI="https://github.com/signal11/hidapi/archive/$srcGitRev.tar.gz" CHECKSUM_SHA256="66f6a023f6ae19405be5010616646e12246c03b200aae72e2c053a224503e481" SOURCE_DIR="hidapi-$srcGitRev" PATCHES="hidapi-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86" PROVIDES=" hidapi$secondaryArchSuffix = $portVersion lib:libhidapi$secondaryArchSuffix = 0.0.0 compat >= 0 " REQUIRES=" haiku$secondaryArchSuffix lib:libusb_1.0$secondaryArchSuffix lib:libiconv$secondaryArchSuffix " PROVIDES_devel=" hidapi${secondaryArchSuffix}_devel = $portVersion devel:libhidapi$secondaryArchSuffix = 0.0.0 compat >= 0 " REQUIRES_devel=" hidapi$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libusb_1.0$secondaryArchSuffix devel:libiconv$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoconf cmd:automake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:make cmd:pkg_config$secondaryArchSuffix " BUILD() { ./bootstrap runConfigure ./configure \ --disable-dependency-tracking \ --with-gnu-ld make $jobArgs } INSTALL() { make install rm $libDir/libhidapi.la prepareInstalledDevelLib libhidapi fixPkgconfig packageEntries devel \ $developDir } TEST() { make hidtest cd hidtest/.libs LIBRARY_PATH=$sourceDir/libusb/.libs:$LIBRARY_PATH ./hidtest || true }