2009-12-03 16:17:07 +00:00
HOMEPAGE = " http://www.ofono.org "
SUMMARY = " open source telephony "
2010-09-28 14:30:42 +00:00
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. "
2010-11-25 05:52:23 +00:00
LICENSE = " GPLv2 "
LIC_FILES_CHKSUM = " file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
2011-12-23 06:24:03 +00:00
file :// src / ofono . h ; beginline = 1 ; endline = 20 ; md5 = 3 ce17d5978ef3445def265b98899c2ee "
2009-12-03 16:17:07 +00:00
2015-02-16 15:06:17 +00:00
inherit autotools pkgconfig update - rc . d systemd bluetooth
2009-12-03 16:17:07 +00:00
2014-12-16 14:11:00 +00:00
DEPENDS = " dbus glib-2.0 udev mobile-broadband-provider-info "
2009-12-17 16:24:27 +00:00
2009-12-03 16:17:07 +00:00
INITSCRIPT_NAME = " ofono "
INITSCRIPT_PARAMS = " defaults 22 "
2014-12-16 14:11:00 +00:00
PACKAGECONFIG ? ? = " \
2017-02-27 13:02:50 +00:00
$ { @ bb . utils . filter ( 'DISTRO_FEATURES' , 'systemd' , d )} \
2015-02-16 15:06:17 +00:00
$ { @ bb . utils . contains ( 'DISTRO_FEATURES' , 'bluetooth' , 'bluez' , '' , d )} \
2014-12-16 14:11:00 +00:00
"
PACKAGECONFIG [ systemd ] = " --with-systemdunitdir= ${ systemd_unitdir } /system/,--with-systemdunitdir= "
2015-02-16 15:06:17 +00:00
PACKAGECONFIG [ bluez ] = " --enable-bluetooth, --disable-bluetooth, ${ BLUEZ } "
2014-12-16 14:11:00 +00:00
EXTRA_OECONF += " --enable-test "
2013-08-01 15:01:37 +00:00
SYSTEMD_SERVICE_ $ { PN } = " ofono.service "
2009-12-03 16:17:07 +00:00
do_install_append () {
install - d $ { D } $ { sysconfdir } / init . d /
install - m 0755 $ { WORKDIR } / ofono $ { D } $ { sysconfdir } / init . d / ofono
2016-06-02 09:25:47 +00:00
# Ofono still has one test tool that refers to Python 2 in the shebang
sed - i - e '1s,#!.*python.*,#!${bindir}/python3,' $ { D } $ { libdir } / ofono / test / set - ddr
2009-12-03 16:17:07 +00:00
}
2011-11-24 23:04:13 +00:00
PACKAGES =+ " ${ PN } -tests "
2012-08-31 10:34:51 +00:00
RDEPENDS_ $ { PN } += " dbus "
2016-09-02 22:04:41 +00:00
RRECOMMENDS_ $ { PN } += " kernel-module-tun mobile-broadband-provider-info "
2012-08-31 10:34:51 +00:00
2016-07-21 09:29:56 +00:00
FILES_ $ { PN } += " ${ systemd_unitdir } "
2013-08-01 15:01:39 +00:00
FILES_ $ { PN } - tests = " ${ libdir}/${BPN } /test "
2016-06-02 09:25:47 +00:00
RDEPENDS_ $ { PN } - tests = " python3 python3-pygobject python3-dbus "