Add ofono package
authorMarek Belisko <marek.belisko@open-nandra.com>
Sun, 1 Apr 2012 03:58:49 +0000 (03:58 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Tue, 29 May 2012 07:52:33 +0000 (09:52 +0200)
[Peter: add upstream URL, fix dep, drop explicit bluetooth option, no AUTORECONF]
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/ofono/Config.in [new file with mode: 0644]
package/ofono/ofono.mk [new file with mode: 0644]

index 9087a41b910c8a2828e8a70b2bb05c94f17956ca..ca8fc962d4dd7d38f1ce5552a5735bfdc6bbdf77 100644 (file)
@@ -207,6 +207,7 @@ source "package/memtester/Config.in"
 source "package/minicom/Config.in"
 source "package/mtd/Config.in"
 source "package/ntfs-3g/Config.in"
+source "package/ofono/Config.in"
 source "package/open2300/Config.in"
 source "package/openocd/Config.in"
 source "package/parted/Config.in"
diff --git a/package/ofono/Config.in b/package/ofono/Config.in
new file mode 100644 (file)
index 0000000..fc6c9c6
--- /dev/null
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_OFONO
+       bool "ofono"
+       depends on BR2_USE_WCHAR # gettext/libglib2
+       select BR2_PACKAGE_LIBCAP_NG
+       select BR2_PACKAGE_DBUS
+       select BR2_PACKAGE_LIBGLIB2
+       select BR2_PACKAGE_MOBILE_BROADBAND_PROVIDER_INFO
+       help
+         oFono is a free, open source project for mobile telephony
+         (GSM/UMTS) applications. It uses high-level D-Bus API for
+         use by telephony applications. It uses 3GPP standard.
+
+         http://ofono.org/
+
+comment "ofono requires a toolchain with WCHAR support"
+       depends on !BR2_USE_WCHAR
diff --git a/package/ofono/ofono.mk b/package/ofono/ofono.mk
new file mode 100644 (file)
index 0000000..c49ee29
--- /dev/null
@@ -0,0 +1,31 @@
+#############################################################
+#
+# ofono
+#
+#############################################################
+OFONO_VERSION = 1.5
+OFONO_SITE = $(BR2_KERNEL_MIRROR)/linux/network/ofono
+OFONO_DEPENDENCIES = \
+       host-pkg-config \
+       dbus \
+       libglib2 \
+       libcap-ng \
+       mobile-broadband-provider-info
+
+OFONO_CONF_OPT = --disable-test
+
+ifeq ($(BR2_PACKAGE_UDEV),y)
+       OFONO_CONF_OPT += --enable-udev
+       OFONO_DEPENDENCIES += udev
+else
+       OFONO_CONF_OPT += --disable-udev
+endif
+
+ifeq ($(BR2_PACKAGE_BLUEZ_UTILS),y)
+       OFONO_CONF_OPT += --enable-bluetooth
+       OFONO_DEPENDENCIES += bluez_utils
+else
+       OFONO_CONF_OPT += --disable-bluetooth
+endif
+
+$(eval $(call AUTOTARGETS))