summaryrefslogtreecommitdiff
path: root/libusb/libusb_0.1.8.oe
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-25 09:41:17 +0000
committerChris Larson <clarson@kergoth.com>2004-11-25 09:41:17 +0000
commitf2c0faf1879b6e8d7af849d4105b5655e5dc8b44 (patch)
treeeacbd87877700da0e9fc4d79ac172d5c69a18547 /libusb/libusb_0.1.8.oe
parentd7fbc4c4a66f8bbdb7d2d69e3b1f33dec84cff08 (diff)
Apply debian's libusb patch that adds a .pc file for pkg-config, and kill libusb 0.1.7.
BKrev: 41a5a8bdbdf_wQIBbiZCEJMsg4EGKg
Diffstat (limited to 'libusb/libusb_0.1.8.oe')
-rw-r--r--libusb/libusb_0.1.8.oe24
1 files changed, 24 insertions, 0 deletions
diff --git a/libusb/libusb_0.1.8.oe b/libusb/libusb_0.1.8.oe
index e69de29bb2..d6587fbc2b 100644
--- a/libusb/libusb_0.1.8.oe
+++ b/libusb/libusb_0.1.8.oe
@@ -0,0 +1,24 @@
+SECTION = "libs"
+DESCRIPTION = "libusb is a library to provide userspace \
+access to USB devices."
+PR = "r1"
+
+SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-${PV}.tar.gz \
+ file://configure.patch;patch=1 \
+ file://pkgconfig.patch;patch=1"
+
+inherit autotools pkgconfig
+
+do_stage() {
+ oe_libinstall -a -so libusb ${STAGING_LIBDIR}
+
+ install -d ${STAGING_BINDIR}
+ install -m 755 ${S}/libusb-config ${STAGING_BINDIR}
+ perl -pi -e 's:\-L/usr/lib :-L${STAGING_LIBDIR} :' ${STAGING_BINDIR}/libusb-config
+
+ install -d ${STAGING_INCDIR}/
+ for X in usb.h
+ do
+ install -m 0644 ${S}/$X ${STAGING_INCDIR}/$X
+ done
+}