mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 21:30:08 +02:00
76 lines
1.8 KiB
Bash
76 lines
1.8 KiB
Bash
SUMMARY="An API wrapper for libusb"
|
|
DESCRIPTION="libusb is a C library that provides generic access to USB \
|
|
devices. It is intended to facilitate the communication with USB hardware.
|
|
libusb-compat is a wrapper library for software that use the 0.1 API."
|
|
HOMEPAGE="http://libusb.info/"
|
|
COPYRIGHT="2008 Daniel Drake"
|
|
LICENSE="GNU LGPL v2"
|
|
REVISION="6"
|
|
SOURCE_URI="ftp://sourceforge.mirrorservice.org/sites/downloads.sourceforge.net/l/li/libusb/libusb-compat-0.1/libusb-compat-0.1.5/libusb-compat-0.1.5.tar.bz2"
|
|
CHECKSUM_SHA256="404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a"
|
|
SOURCE_DIR="libusb-compat-$portVersion"
|
|
PATCHES="libusb_compat-0.1.5.patchset"
|
|
|
|
ARCHITECTURES="x86 x86_64 x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
PROVIDES="
|
|
libusb_compat$secondaryArchSuffix = $portVersion
|
|
lib:libusb_0.1$secondaryArchSuffix = $portVersion
|
|
lib:libusb$secondaryArchSuffix = $portVersion
|
|
cmd:libusb_config$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libusb_1.0$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
libusb_compat${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libusb_0.1${secondaryArchSuffix} = $portVersion
|
|
devel:libusb$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
libusb_compat${secondaryArchSuffix} == $portVersion base
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libusb_1.0$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoconf
|
|
cmd:automake
|
|
cmd:libtool
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:ld$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
cmd:sed
|
|
"
|
|
|
|
BUILD()
|
|
{
|
|
aclocal
|
|
automake
|
|
#sh bootstrap.sh
|
|
runConfigure ./configure
|
|
make $jobArgs
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
rm $libDir/libusb*.la
|
|
|
|
# set up the develop directory correctly
|
|
prepareInstalledDevelLibs libusb-0.1 libusb
|
|
fixPkgconfig libusb-0.1
|
|
|
|
# devel package
|
|
packageEntries devel \
|
|
$developDir
|
|
}
|