First pass of .oe cleanups.
[openembedded.git] / bluez-libs / bluez-libs_2.4.oe
1 SECTION = "libs"
2 PRIORITY = "optional"
3 RDEPENDS = "libc6"
4 SECTION = "libs"
5 DEPENDS = "virtual/libc"
6 PROVIDES = "virtual/libbluetooth"
7
8 SRC_URI = "http://bluez.sourceforge.net/download/${PN}-${PV}.tar.gz"
9
10 inherit autotools libtool
11
12 do_stage () {
13         install -m 0644 src/.libs/libbluetooth.a ${STAGING_LIBDIR}/
14         install -m 0755 src/.libs/libbluetooth.so.1.0.2 ${STAGING_LIBDIR}/
15
16         ln -sf ${STAGING_LIBDIR}/libbluetooth.so.1.0.2 ${STAGING_LIBDIR}/libbluetooth.so.1
17         ln -sf ${STAGING_LIBDIR}/libbluetooth.so.1.0.2 ${STAGING_LIBDIR}/libbluetooth.so
18
19         install -d ${STAGING_DIR}/target/include/bluetooth
20         for X in bluetooth.h hci.h hci_lib.h hci_uart.h hci_vhci.h l2cap.h \
21           sco.h rfcomm.h
22         do
23                 install -m 0644 include/${X} ${STAGING_DIR}/target/include/bluetooth/${X}
24         done
25         install -m 0644 src/.libs/libbluetooth.lai ${STAGING_LIBDIR}/libbluetooth.la
26 }