Files
haikuports/dev-libs/hidapi/hidapi-20200301.recipe
Panagiotis Vasilopoulos fdb8810a33 hidapi: bump version (#4936)
* hidapi: bump version
2020-05-02 13:14:35 +02:00

82 lines
2.0 KiB
Bash

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, FreeBSD, and macOS. HIDAPI can be either built \
as a shared library (.so, .dll or .dylib) or can be embedded directly \
into a target application by adding a single source file (per platform) \
and a single header.
The HIDAPI library was originally developed by Alan Ott (signal11)."
HOMEPAGE="http://www.signal11.us/oss/hidapi/"
COPYRIGHT="2010 Alan Ott
2011 Signal 11 Software"
LICENSE="BSD (3-clause)
GNU GPL v3"
REVISION="1"
srcGitRev="24a822c80f95ae1b46a7a3c16008858dc4d8aec8"
SOURCE_URI="https://github.com/signal11/hidapi/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="d7daee08f3a26da3b552e421c298296f64e036bf52a884494c0d6d5a0e5af288"
SOURCE_FILENAME="hidapi-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="hidapi-$srcGitRev"
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:libiconv$secondaryArchSuffix
lib:libusb_1.0$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:libiconv$secondaryArchSuffix
devel:libusb_1.0$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
}