summaryrefslogtreecommitdiffstats
path: root/libusb
diff options
context:
space:
mode:
Diffstat (limited to 'libusb')
-rw-r--r--libusb/Pkgfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/libusb/Pkgfile b/libusb/Pkgfile
index 4510fe6..11b2a23 100644
--- a/libusb/Pkgfile
+++ b/libusb/Pkgfile
@@ -11,10 +11,14 @@ source=(http://downloads.sourceforge.net/project/$name/$name-${version%\.*}/$nam
build ()
{
cd $name-$version;
- ./configure --prefix=$prefix --mandir=$mandir;
+ ./configure \
+ ${CHOST:+--build=${CHOST}} \
+ ${CTARGET:+--host=${CTARGET}} \
+ --prefix=$prefix \
+ --mandir=$mandir;
make;
make DESTDIR=$PKG install;
install -d $PKG/lib;
mv $PKG$prefix/lib/libusb-1.0.so.* $PKG/lib;
- ln -sf ../../lib/libusb-1.0.so.0.0.0 $PKG/usr/lib/libusb-1.0.so
+ ln -sf ../../lib/libusb-1.0.so.0.0.0 $PKG$prefix/lib/libusb-1.0.so
}