Fix automake build: jingle support

pull/1/head
Slávek Banko 12 years ago
parent aeff00ef47
commit 99a94433e4

@ -25,4 +25,5 @@ libkopetejabberjingle_la_LIBADD = libjingle/talk/session/phone/libcricketsession
libjingle/talk/xmllite/libcricketxmllite.la \ libjingle/talk/xmllite/libcricketxmllite.la \
libjingle/talk/base/libcricketbase.la \ libjingle/talk/base/libcricketbase.la \
libjingle/talk/third_party/mediastreamer/libmediastreamer.la \ libjingle/talk/third_party/mediastreamer/libmediastreamer.la \
$(EXPAT_LIBS) $(ORTP_LIBS) -lpthread $(ILBC_LIBS) $(SPEEX_LIBS) $(GLIB_LIBS) $(ALSA_LIBS) libjingle/talk/third_party/ortp/libortp.la \
$(EXPAT_LIBS) -lpthread $(ILBC_LIBS) $(SPEEX_LIBS) $(GLIB_LIBS) $(ALSA_LIBS)

@ -5,8 +5,14 @@ if test "$with_jingle" = yes; then
echo iLBC: $ilbc_found echo iLBC: $ilbc_found
echo MULAW: yes echo MULAW: yes
else else
echo ""
echo Supported Jabber Jingle voice Codecs for Kopete:
echo Speex: $speex_found
echo iLBC: $ilbc_found
echo MULAW: yes
echo "" echo ""
echo "You have disabled Jabber Jingle voice support or you are missing required libraries required to compile it." echo "You have disabled Jabber Jingle voice support or you are missing required libraries required to compile it."
echo "The configure option --enable-jingle must be explicitly declared to build Jabber Jingle voice support."
echo "Jingle is a new Jabber standard that define a signaling protocol via XMPP for peer-to-peer applications." echo "Jingle is a new Jabber standard that define a signaling protocol via XMPP for peer-to-peer applications."
echo "Jingle audio is compatible with the Google Talk voice service." echo "Jingle audio is compatible with the Google Talk voice service."
echo "" echo ""

@ -28,13 +28,14 @@ if test x$have_glib = xno; then
with_jingle=no with_jingle=no
fi fi
PKG_CHECK_MODULES(ORTP, ortp, enable_ortp=yes, enable_ortp=no) # Do not use an external version of ortp. Only use the internal version supplied here.
if test x$enable_ortp = xno ; then #PKG_CHECK_MODULES(ORTP, ortp, enable_ortp=yes, enable_ortp=no)
with_jingle=no #if test x$enable_ortp = xno ; then
AC_MSG_WARN([oRTP is required to build Jabber Jingle voice support. You can get it from http://www.linphone.org/ortp/]) # with_jingle=no
fi # AC_MSG_WARN([oRTP is required to build Jabber Jingle voice support. You can get it from http://www.linphone.org/ortp/])
AC_SUBST(ORTP_CFLAGS) #fi
AC_SUBST(ORTP_LIBS) #AC_SUBST(ORTP_CFLAGS)
#AC_SUBST(ORTP_LIBS)
AC_ARG_WITH( speex, AC_ARG_WITH( speex,
[ --with-speex Set prefix where speex lib can be found (ex:/usr, /usr/local) [default=/usr] ], [ --with-speex Set prefix where speex lib can be found (ex:/usr, /usr/local) [default=/usr] ],

@ -11,6 +11,7 @@ call_LDADD = \
$(srcdir)/../../../talk/xmllite/libcricketxmllite.la \ $(srcdir)/../../../talk/xmllite/libcricketxmllite.la \
$(srcdir)/../../../talk/base/libcricketbase.la \ $(srcdir)/../../../talk/base/libcricketbase.la \
$(srcdir)/../../../talk/third_party/mediastreamer/libmediastreamer.la \ $(srcdir)/../../../talk/third_party/mediastreamer/libmediastreamer.la \
$(EXPAT_LIBS) $(ORTP_LIBS) -lpthread $(ILBC_LIBS) $(SPEEX_LIBS) $(GLIB_LIBS) -lasound $(srcdir)/../../../talk/third_party/ortp/libortp.la \
$(EXPAT_LIBS) -lpthread $(ILBC_LIBS) $(SPEEX_LIBS) $(GLIB_LIBS) -lasound
AM_CPPFLAGS = -DPOSIX AM_CPPFLAGS = -DPOSIX
DEFAULT_INCLUDES = -I$(srcdir)/../../.. DEFAULT_INCLUDES = -I$(srcdir)/../../..

@ -14,5 +14,5 @@ noinst_HEADERS = audiomonitor.h \
call.h \ call.h \
mediachannel.h mediachannel.h
AM_CPPFLAGS = -DPOSIX $(ORTP_CFLAGS) $(ILBC_CFLAGS) -I$(srcdir)/../../../talk/third_party/mediastreamer -I$(srcdir)/../../.. $(GLIB_CFLAGS) $(SPEEX_CFLAGS) AM_CPPFLAGS = -DPOSIX -I$(srcdir)/../../../talk/third_party/ortp $(ILBC_CFLAGS) -I$(srcdir)/../../../talk/third_party/mediastreamer -I$(srcdir)/../../.. $(GLIB_CFLAGS) $(SPEEX_CFLAGS)
noinst_LTLIBRARIES = libcricketsessionphone.la noinst_LTLIBRARIES = libcricketsessionphone.la

@ -1,5 +1,5 @@
#include <portaudio.h> #include <portaudio.h>
#include <ortp/ortp.h> #include <ortp.h>
#include <speex.h> #include <speex.h>
// Socket stuff // Socket stuff

@ -3,7 +3,7 @@
#include <portaudio.h> #include <portaudio.h>
#include <speex.h> #include <speex.h>
#include <ortp/ortp.h> #include <ortp.h>
#include "talk/session/phone/mediaengine.h" #include "talk/session/phone/mediaengine.h"

@ -1 +1 @@
SUBDIRS=mediastreamer SUBDIRS=mediastreamer ortp

@ -85,8 +85,8 @@ noinst_HEADERS = affine.h \
sndcard.h sndcard.h
libmediastreamer_la_LIBADD= $(GLIB_LIBS) $(ORTP_LIBS) $(SPEEX_LIBS) libmediastreamer_la_LIBADD= $(GLIB_LIBS) $(SPEEX_LIBS)
AM_CFLAGS=$(GLIB_CFLAGS) -DG_LOG_DOMAIN=\"MediaStreamer\" $(ORTP_CFLAGS) $(IPV6_CFLAGS) $(ILBC_CFLAGS) $(SPEEX_CFLAGS) AM_CFLAGS=$(GLIB_CFLAGS) -DG_LOG_DOMAIN=\"MediaStreamer\" -I$(srcdir)/../../../talk/third_party/ortp $(IPV6_CFLAGS) $(ILBC_CFLAGS) $(SPEEX_CFLAGS)
INCLUDES= -I$(srcdir)/../../.. $(ORTP_CFLAGS) INCLUDES= -I$(srcdir)/../../.. -I$(srcdir)/../../../talk/third_party/ortp

@ -0,0 +1,18 @@
noinst_LTLIBRARIES = libortp.la
noinst_HEADERS = \
export.h jitterctl.h ortp-config.h ortp.h payloadtype.h \
port_fct.h rtcp.h rtp.h rtpmod.h rtpport.h rtpsession.h \
rtpsignaltable.h rtptimer.h scheduler.h sessionset.h \
str_utils.h telephonyevents.h utils.h
libortp_la_SOURCES= \
port_fct.c rtpmod.c rtpparse.c rtpsession.c jitterctl.c \
rtpsignaltable.c rtptimer.c posixtimer.c ortp.c scheduler.c \
avprofile.c sessionset.c telephonyevents.c payloadtype.c rtcp.c \
utils.c rtcpparse.c str_utils.c
libortp_la_LIBADD= $(GLIB_LIBS)
AM_CFLAGS=-D_ORTP_SOURCE -DG_LOG_DOMAIN=\"oRTP\" $(GLIB_CFLAGS)
CFLAGS+=-std=gnu89
Loading…
Cancel
Save