blob: 7b73b10da56baa0b33a684316edd20598c2a7f17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
DESCRIPTION = "Obex Push Utilities"
HOMEPAGE = "http://www.caside.lancs.ac.uk/java_bt.php"
SECTION = "console/network"
LICENSE = "GPL"
DEPENDS = "glib-2.0 openobex bluez-libs"
PR = "r5"
SRC_URI = "http://www.caside.lancs.ac.uk/bt/obexpush.tar.gz \
file://add-obextool.patch;patch=1 \
file://init \
file://opd_args"
S = "${WORKDIR}/obexpush"
inherit update-rc.d
INITSCRIPT_NAME = "opd"
INITSCRIPT_PARAMS = "defaults 33 09"
export GLIBINC = "-I${STAGING_INCDIR}/glib-2.0"
export GLIBLIB = "-I${STAGING_LIBDIR} -lglib-2.0"
export OBEXINC = "-I${STAGING_INCDIR}"
export OBEXLIB = "${LDFLAGS} -lopenobex"
do_configure() {
rm -f client/*.o client/ussp-push
rm -f opd/*.o opd/opd
sed -i 's:gcc:${CC}:' */Makefile
sed -i 's:__FUNCTION__::' opd/*.c
}
do_compile() {
oe_runmake -C client ussp-push
oe_runmake -C client obextool
oe_runmake -C opd
}
do_install() {
install -d ${D}${bindir}
install -d ${D}${sbindir}
install -m 0755 client/ussp-push ${D}${bindir}
install -m 0755 client/obextool ${D}${bindir}
install -m 0755 opd/opd ${D}${sbindir}
install -d ${D}${sysconfdir}/init.d
install -d ${D}${sysconfdir}/default
install -m 0755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/opd
install -m 0755 ${WORKDIR}/opd_args ${D}${sysconfdir}/default/opd_args
}
|