linphone: add optional gtk support
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 3 Jun 2012 22:04:16 +0000 (00:04 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 4 Jun 2012 07:12:45 +0000 (09:12 +0200)
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/linphone/linphone.mk

index b34fbf741b6a0de163a1cd02dfe2eaa35bfae54e..c6d571d2559529d342effcc7acf372178a52063d 100644 (file)
@@ -7,10 +7,16 @@
 LINPHONE_VERSION = 3.5.2
 LINPHONE_SITE = http://download-mirror.savannah.gnu.org/releases/linphone/3.5.x/sources/
 LINPHONE_CONF_OPT = \
-       --disable-gtk_ui \
        --enable-external-ortp \
        --enable-external-mediastreamer
 
 LINPHONE_DEPENDENCIES = host-pkg-config ortp mediastreamer libeXosip2 speex
 
+ifeq ($(BR2_PACKAGE_LIBGTK2)$(BR2_PACKAGE_XORG7),yy)
+LINPHONE_CONF_OPT += --enable-gtk_ui
+LINPHONE_DEPENDENCIES += libgtk2
+else
+LINPHONE_CONF_OPT += --disable-gtk_ui
+endif
+
 $(eval $(call AUTOTARGETS))