From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=localhost) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SFLHe-0004YI-7u for ptxdist@pengutronix.de; Wed, 04 Apr 2012 10:09:38 +0200 From: Juergen Beisert Date: Wed, 4 Apr 2012 10:09:15 +0200 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201204041009.15581.jbe@pengutronix.de> Subject: [ptxdist] [PATCH] Linphone: add Linux based VoIP app Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Signed-off-by: Juergen Beisert diff --git a/rules/linphone.in b/rules/linphone.in new file mode 100644 index 0000000..c375cc6 --- /dev/null +++ b/rules/linphone.in @@ -0,0 +1,40 @@ +## SECTION=applications + +menuconfig LINPHONE + tristate + prompt "linphone " + select LIBEXOSIP2 + select LIBMEDIASTREAMER + select READLINE + select ALSA_LIB if LINPHONE_ALSA + select LIBSRTP if LINPHONE_LIBSRTP + select GCCLIBS_GCC_S + select GCCLIBS_CXX + select LIBC_RT + select LIBC_DL + select LIBC_PTHREAD + select LIBC_M + select LIBC_NSL + help + Open source video SIP phone. Refer http://www.linphone.org/ for + further details. + Note: video support is currently disabled + +if LINPHONE + +config LINPHONE_ALSA + bool + depends on BROKEN + prompt "use ALSA library" + help + Build the embedded mediastreamer library with ALAS sound. + +config LINPHONE_LIBSRTP + bool + depends on BROKEN + prompt "use srtp library" + help + Build the embedded oRTP with support for the + Secure Real-time Transport Protocol (SRTP) + +endif diff --git a/rules/linphone.make b/rules/linphone.make new file mode 100644 index 0000000..e66a9bb --- /dev/null +++ b/rules/linphone.make @@ -0,0 +1,100 @@ +# -*-makefile-*- +# +# Copyright (C) 2011 by Juergen Beisert +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_LINPHONE) += linphone + +# +# Paths and names +# +LINPHONE_VERSION := 3.5.0 +LINPHONE_MD5 := 95111861f71c455f58b5177863b8e566 +LINPHONE := linphone-$(LINPHONE_VERSION) +LINPHONE_SUFFIX := tar.gz +LINPHONE_URL := http://download-mirror.savannah.gnu.org/releases/linphone/3.5.x/sources/$(LINPHONE).$(LINPHONE_SUFFIX) +LINPHONE_SOURCE := $(SRCDIR)/$(LINPHONE).$(LINPHONE_SUFFIX) +LINPHONE_DIR := $(BUILDDIR)/$(LINPHONE) +LINPHONE_LICENSE := GPL + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +LINPHONE_CONF_TOOL := autoconf +LINPHONE_CONF_OPT := $(CROSS_AUTOCONF_USR) \ + --disable-nls \ + --enable-shared \ + --disable-static \ + --disable-rpath \ + --disable-x11 \ + --enable-console_ui=yes \ + --enable-gtk_ui=no \ + --enable-notify=no \ + --enable-date \ + --enable-ipv6=no \ + --enable-truespeech=no \ + --enable-nonstandard-gsm=no \ + --enable-rsvp \ + --enable-ssl=no \ + --enable-video=no \ + --disable-zrtp \ + --enable-portaudio=no \ + --enable-tunnel=no \ + --disable-tests \ + --with-osip=/usr \ + --without-ffmpeg \ + --disable-strict \ + --$(call ptx/endis, PTXCONF_LINPHONE_ALSA)-alsa \ + ac_cv_path_DOXYGEN=false + +# do not use the built in ortp and mediastreamer libs. Their configure stage +# is broken and they compile-in things we do not want. + +LINPHONE_CONF_OPT += --enable-external-mediastreamer \ + --enable-external-ortp + +# switches with trouble +# --without-readline +# --enable-relativeprefix + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/linphone.targetinstall: + @$(call targetinfo) + + @$(call install_init, linphone) + @$(call install_fixup, linphone,PRIORITY,optional) + @$(call install_fixup, linphone,SECTION,base) + @$(call install_fixup, linphone,AUTHOR,"Juergen Beisert ") + @$(call install_fixup, linphone,DESCRIPTION,missing) + + @$(call install_copy, linphone, 0, 0, 0755, -, /usr/bin/linphonec) + @$(call install_copy, linphone, 0, 0, 0755, -, /usr/bin/linphonecsh) + @$(call install_lib, linphone, 0, 0, 0644, liblinphone) + + + @$(call install_copy, linphone, 0, 0, 0755, /usr/lib/liblinphone) + @$(call install_copy, linphone, 0, 0, 0755, /usr/lib/liblinphone/plugins) + + @$(call install_tree, linphone, 0, 0, -, /usr/share/linphone/) + @$(call install_tree, linphone, 0, 0, -, /usr/share/sounds/linphone/) + + @$(call install_finish, linphone) + + @$(call touch) + +# vim: syntax=make -- Pengutronix e.K. | Juergen Beisert | Linux Solutions for Science and Industry | http://www.pengutronix.de/ | -- ptxdist mailing list ptxdist@pengutronix.de