mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
91 lines
2.4 KiB
Plaintext
91 lines
2.4 KiB
Plaintext
SUMMARY="libusbx is a library that provides generic access to USB devices."
|
||
DESCRIPTION="
|
||
libusbx is a library that provides generic access to USB devices. As a library,
|
||
it is meant to be used by developers, to facilitate the production of
|
||
applications that communicate with USB hardware.
|
||
|
||
It is portable: Using a single cross-platform API, it provides access to USB
|
||
devices on Linux, OS X, Windows and OpenBSD.
|
||
|
||
It is user-mode: No special privilege or elevation is required for the
|
||
application to communicate with a device.
|
||
|
||
It is version-agnostic: All versions of the USB protocol, from 1.0 to 3.0
|
||
(latest), are supported.
|
||
"
|
||
LICENSE="GNU LGPL v2.1"
|
||
COPYRIGHT="
|
||
2001 Johannes Erdfelt <johannes@erdfelt.com>
|
||
2007-2009 Daniel Drake <dsd@gentoo.org>
|
||
2010-2012 Peter Stuge <peter@stuge.se>
|
||
2008-2013 Nathan Hjelm <hjelmn@users.sourceforge.net>
|
||
2009-2013 Pete Batard <pete@akeo.ie>
|
||
2009-2013 Ludovic Rousseau <ludovic.rousseau@gmail.com>
|
||
2010-2012 Michael Plante <michael.plante@gmail.com>
|
||
2011-2013 Hans de Goede <hdegoede@redhat.com>
|
||
2012-2013 Martin Pieuchot <mpi@openbsd.org>
|
||
2012-2013 Toby Gray <toby.gray@realvnc.com>
|
||
"
|
||
HOMEPAGE="http://libusbx.org/"
|
||
SRC_URI="git+git://github.com/pulkomandy/libusbx#c6f866b9914f266ab198a3313eba45e55c094024"
|
||
REVISION="2"
|
||
ARCHITECTURES="x86 x86_64"
|
||
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
|
||
# x86_gcc2 is fine as primary target architecture as long as we're building
|
||
# for a different secondary architecture.
|
||
ARCHITECTURES="$ARCHITECTURES x86_gcc2"
|
||
fi
|
||
SECONDARY_ARCHITECTURES="x86"
|
||
|
||
PATCHES="libusb-$portVersion.patchset"
|
||
|
||
PROVIDES="
|
||
libusb$secondaryArchSuffix = $portVersion
|
||
lib:libusb_1.0$secondaryArchSuffix = $portVersion
|
||
"
|
||
REQUIRES="
|
||
haiku$secondaryArchSuffix >= $haikuVersion
|
||
"
|
||
BUILD_REQUIRES="
|
||
"
|
||
BUILD_PREREQUIRES="
|
||
haiku${secondaryArchSuffix}_devel >= $haikuVersion
|
||
cmd:autoconf
|
||
cmd:automake
|
||
cmd:libtool
|
||
cmd:gcc$secondaryArchSuffix
|
||
cmd:ld$secondaryArchSuffix
|
||
cmd:make
|
||
cmd:sed
|
||
"
|
||
|
||
BUILD()
|
||
{
|
||
sh bootstrap.sh
|
||
runConfigure ./configure
|
||
make $jobArgs
|
||
}
|
||
|
||
INSTALL()
|
||
{
|
||
make install
|
||
|
||
# set up the develop directory correctly
|
||
prepareInstalledDevelLibs libusb-1.0
|
||
fixPkgconfig
|
||
|
||
# devel package
|
||
packageEntries devel \
|
||
$developDir
|
||
}
|
||
|
||
# ----- devel package -------------------------------------------------------
|
||
|
||
PROVIDES_devel="
|
||
libusb${secondaryArchSuffix}_devel = $portVersion
|
||
devel:libusb_1.0${secondaryArchSuffix} = $portVersion
|
||
"
|
||
REQUIRES_devel="
|
||
libusb${secondaryArchSuffix} == $portVersion base
|
||
"
|