Files
haikuports/dev-libs/libusb/libusb-1.0.19.recipe
Jerome Duval c2aeebfdc5 libusb: use an archive as download
* haikuporter tried to unpack the old URL anyway.
2014-09-04 21:28:16 +00:00

99 lines
2.6 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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="https://github.com/akshay1994/libusb/archive/77993c7f437ba2ff03a24895b96ff6cbb49a6ee0.tar.gz"
SRC_FILENAME="libusb-$portVersion.tar.gz"
CHECKSUM_SHA256="82531191dad50b77d4b1c64395f663b57cea297a7e69457e5166b24746a617a4"
REVISION="1"
PATCHES="libusb-1.0.19.patchset"
ARCHITECTURES="x86 x86_64 x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libusb$secondaryArchSuffix = $portVersion
lib:libusb_1.0$secondaryArchSuffix = $portVersion
"
REQUIRES="
haiku$secondaryArchSuffix >= $haikuVersion
lib:libstdc++$secondaryArchSuffix
"
if [ $effectiveTargetArchitecture != x86_gcc2 ]; then
REQUIRES+="
lib:libgcc_s$secondaryArchSuffix
"
fi
BUILD_REQUIRES="
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel >= $haikuVersion
cmd:autoconf
cmd:automake
cmd:find
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtool
cmd:make
cmd:sed
"
SOURCE_DIR="libusb-77993c7f437ba2ff03a24895b96ff6cbb49a6ee0"
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
"