ofono_2.18.bb 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. SUMMARY = "open source telephony"
  2. 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."
  3. HOMEPAGE = "http://www.ofono.org"
  4. BUGTRACKER = "https://01.org/jira/browse/OF"
  5. LICENSE = "GPL-2.0-only"
  6. LIC_FILES_CHKSUM = "file://COPYING;md5=eb723b61539feef013de476e68b5c50a \
  7. file://src/ofono.h;beginline=1;endline=6;md5=13e42133935ceecfc9bcb547f256e277"
  8. DEPENDS = "dbus glib-2.0 udev mobile-broadband-provider-info ell"
  9. SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \
  10. file://ofono \
  11. "
  12. SRC_URI[sha256sum] = "f74c3bba7ebac488fed7bcfa6113b0e39e723d2e1a24b53f79c9f18a1c85dd00"
  13. inherit autotools pkgconfig update-rc.d systemd gobject-introspection-data
  14. INITSCRIPT_NAME = "ofono"
  15. INITSCRIPT_PARAMS = "defaults 22"
  16. SYSTEMD_SERVICE:${PN} = "ofono.service"
  17. PACKAGECONFIG ??= "\
  18. ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
  19. ${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez', '', d)} \
  20. "
  21. PACKAGECONFIG[systemd] = "--with-systemdunitdir=${systemd_system_unitdir}/,--with-systemdunitdir="
  22. PACKAGECONFIG[bluez] = "--enable-bluetooth, --disable-bluetooth, bluez5"
  23. EXTRA_OECONF += "--enable-test --enable-external-ell"
  24. do_install:append() {
  25. install -d ${D}${sysconfdir}/init.d/
  26. install -m 0755 ${UNPACKDIR}/ofono ${D}${sysconfdir}/init.d/ofono
  27. }
  28. PACKAGES =+ "${PN}-tests"
  29. FILES:${PN} += "${systemd_unitdir}"
  30. FILES:${PN}-tests = "${libdir}/${BPN}/test"
  31. RDEPENDS:${PN}-tests = "\
  32. python3-core \
  33. python3-dbus \
  34. ${@bb.utils.contains('GI_DATA_ENABLED', 'True', 'python3-pygobject', '', d)} \
  35. "
  36. RRECOMMENDS:${PN} += "kernel-module-tun mobile-broadband-provider-info"