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
2013-08-01 15:01:37 +00:00
inherit autotools pkgconfig update - rc . d systemd
2009-12-03 16:17:07 +00:00
2012-01-22 08:30:14 +00:00
DEPENDS = " dbus glib-2.0 udev mobile-broadband-provider-info $ { @base_contains('DISTRO_FEATURES', 'bluetooth','bluez4', '', d)} "
2009-12-17 16:24:27 +00:00
2009-12-03 16:17:07 +00:00
INITSCRIPT_NAME = " ofono "
INITSCRIPT_PARAMS = " defaults 22 "
2013-08-01 15:01:37 +00:00
EXTRA_OECONF += " \
$ { @ base_contains ( 'DISTRO_FEATURES' , 'systemd' , '--with-systemdunitdir=${systemd_unitdir}/system/' , '--with-systemdunitdir=' , d )} \
2013-08-01 15:01:38 +00:00
$ { @ base_contains ( 'DISTRO_FEATURES' , 'bluetooth' , '--enable-bluetooth' , '--disable-bluetooth' , d )} \
2013-08-01 15:01:39 +00:00
-- 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
}
2011-11-24 23:04:13 +00:00
PACKAGES =+ " ${ PN } -tests "
2012-08-31 10:34:51 +00:00
RDEPENDS_ $ { PN } += " dbus "
2012-03-22 11:05:59 +00:00
FILES_ $ { PN } += " ${ base_libdir } /udev ${ systemd_unitdir } "
2013-08-01 15:01:39 +00:00
FILES_ $ { PN } - tests = " ${ libdir}/${BPN } /test "
2013-06-11 07:15:31 +00:00
RDEPENDS_ $ { PN } - tests = " python python-pygobject python-dbus "