diff options
author | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2014-10-16 03:05:19 +0200 |
commit | c527fd1f14c27855a37f2e8ac5346ce8d940ced2 (patch) | |
tree | bb002c1fdf011c41dbd2f0927bed23ecb5f83c97 /meta/recipes-connectivity/ofono/ofono.inc | |
download | poky-c527fd1f14c27855a37f2e8ac5346ce8d940ced2.tar.gz |
initial commit for Enea Linux 4.0-140929daisy-140929
Migrated from the internal git server on the daisy-enea-point-release branch
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-connectivity/ofono/ofono.inc')
-rw-r--r-- | meta/recipes-connectivity/ofono/ofono.inc | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ofono/ofono.inc b/meta/recipes-connectivity/ofono/ofono.inc new file mode 100644 index 0000000000..3972e062e5 --- /dev/null +++ b/meta/recipes-connectivity/ofono/ofono.inc | |||
@@ -0,0 +1,33 @@ | |||
1 | HOMEPAGE = "http://www.ofono.org" | ||
2 | SUMMARY = "open source telephony" | ||
3 | DESCRIPTION = "oFono is a stack for mobile telephony devices on Linux. oFono supports speaking to telephony devices through specific drivers, or with generic AT commands." | ||
4 | LICENSE = "GPLv2" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \ | ||
6 | file://src/ofono.h;beginline=1;endline=20;md5=3ce17d5978ef3445def265b98899c2ee" | ||
7 | |||
8 | inherit autotools pkgconfig update-rc.d systemd | ||
9 | |||
10 | DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ${@base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)}" | ||
11 | |||
12 | INITSCRIPT_NAME = "ofono" | ||
13 | INITSCRIPT_PARAMS = "defaults 22" | ||
14 | |||
15 | EXTRA_OECONF += "\ | ||
16 | ${@base_contains('DISTRO_FEATURES', 'systemd', '--with-systemdunitdir=${systemd_unitdir}/system/', '--with-systemdunitdir=', d)} \ | ||
17 | ${@base_contains('DISTRO_FEATURES', 'bluetooth','--enable-bluetooth', '--disable-bluetooth', d)} \ | ||
18 | --enable-test \ | ||
19 | " | ||
20 | SYSTEMD_SERVICE_${PN} = "ofono.service" | ||
21 | |||
22 | do_install_append() { | ||
23 | install -d ${D}${sysconfdir}/init.d/ | ||
24 | install -m 0755 ${WORKDIR}/ofono ${D}${sysconfdir}/init.d/ofono | ||
25 | } | ||
26 | |||
27 | PACKAGES =+ "${PN}-tests" | ||
28 | |||
29 | RDEPENDS_${PN} += "dbus" | ||
30 | |||
31 | FILES_${PN} += "${base_libdir}/udev ${systemd_unitdir}" | ||
32 | FILES_${PN}-tests = "${libdir}/${BPN}/test" | ||
33 | RDEPENDS_${PN}-tests = "python python-pygobject python-dbus" | ||