1 DESCRIPTION = "Obex Push Utilities"
2 HOMEPAGE = "http://www.caside.lancs.ac.uk/java_bt.php"
3 SECTION = "console/network"
5 DEPENDS = "glib-2.0 openobex bluez-libs"
8 SRC_URI = "http://www.caside.lancs.ac.uk/bt/obexpush.tar.gz \
9 file://add-obextool.patch;patch=1 \
11 S = "${WORKDIR}/obexpush"
15 INITSCRIPT_NAME = "opd"
16 INITSCRIPT_PARAMS = "defaults 33 09"
18 export GLIBINC=-I${STAGING_INCDIR}/glib-2.0
19 export GLIBLIB=-I${STAGING_LIBDIR} -lglib-2.0
20 export OBEXINC=-I${STAGING_INCDIR}
21 export OBEXLIB=-L${STAGING_LIBDIR} -lopenobex
24 rm -f client/*.o client/ussp-push
26 sed -i 's:gcc:${CC}:' */Makefile
27 sed -i 's:__FUNCTION__::' opd/*.c
31 oe_runmake -C client ussp-push
32 oe_runmake -C client obextool
37 install -d ${D}${bindir}
38 install -d ${D}${sbindir}
39 install -m 0755 client/ussp-push ${D}${bindir}
40 install -m 0755 client/obextool ${D}${bindir}
41 install -m 0755 opd/opd ${D}${sbindir}
43 install -d ${D}${sysconfdir}/init.d
44 install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/opd