aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/Makefile1
-rw-r--r--net/linphone-base/Makefile27
-rw-r--r--net/linphone-base/distinfo1
-rw-r--r--net/linphone-base/files/patch-configure31
-rw-r--r--net/linphone-base/files/patch-console::Makefile.in25
-rw-r--r--net/linphone-base/files/patch-gnome::LinphoneMain.c60
-rw-r--r--net/linphone-base/files/patch-gnome::Makefile.in21
-rw-r--r--net/linphone-base/files/patch-lpc10-1.5::lpcini.c17
-rw-r--r--net/linphone-base/files/patch-mediastreamer::Makefile.in32
-rw-r--r--net/linphone-base/files/patch-mediastreamer::msfifo.c15
-rw-r--r--net/linphone-base/files/patch-oRTP::src::Makefile.in14
-rw-r--r--net/linphone-base/files/patch-oRTP::src::port_fct.c14
-rw-r--r--net/linphone-base/files/patch-oRTP::src::scheduler.h14
-rw-r--r--net/linphone-base/files/patch-osipua::src::Makefile.in36
-rw-r--r--net/linphone-base/files/patch-osipua::src::osipmanager.c15
-rw-r--r--net/linphone-base/files/patch-osipua::src::udp.c15
-rw-r--r--net/linphone-base/files/patch-share::Makefile.in14
-rw-r--r--net/linphone-base/files/patch-speex::src::Makefile.in23
-rw-r--r--net/linphone-base/pkg-comment1
-rw-r--r--net/linphone-base/pkg-descr5
-rw-r--r--net/linphone-base/pkg-plist170
-rw-r--r--net/linphone/Makefile27
-rw-r--r--net/linphone/distinfo1
-rw-r--r--net/linphone/files/patch-configure31
-rw-r--r--net/linphone/files/patch-console::Makefile.in25
-rw-r--r--net/linphone/files/patch-gnome::LinphoneMain.c60
-rw-r--r--net/linphone/files/patch-gnome::Makefile.in21
-rw-r--r--net/linphone/files/patch-lpc10-1.5::lpcini.c17
-rw-r--r--net/linphone/files/patch-mediastreamer::Makefile.in32
-rw-r--r--net/linphone/files/patch-mediastreamer::msfifo.c15
-rw-r--r--net/linphone/files/patch-oRTP::src::Makefile.in14
-rw-r--r--net/linphone/files/patch-oRTP::src::port_fct.c14
-rw-r--r--net/linphone/files/patch-oRTP::src::scheduler.h14
-rw-r--r--net/linphone/files/patch-osipua::src::Makefile.in36
-rw-r--r--net/linphone/files/patch-osipua::src::osipmanager.c15
-rw-r--r--net/linphone/files/patch-osipua::src::udp.c15
-rw-r--r--net/linphone/files/patch-share::Makefile.in14
-rw-r--r--net/linphone/files/patch-speex::src::Makefile.in23
-rw-r--r--net/linphone/pkg-comment1
-rw-r--r--net/linphone/pkg-descr5
-rw-r--r--net/linphone/pkg-plist170
41 files changed, 1101 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 54295eba8daf..0b12b0f9ee19 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -264,6 +264,7 @@
SUBDIR += licq-qt-gui
SUBDIR += limewire
SUBDIR += linc
+ SUBDIR += linphone
SUBDIR += linpopup
SUBDIR += linux-edonkey-gui-gtk
SUBDIR += linux-edonkey-server
diff --git a/net/linphone-base/Makefile b/net/linphone-base/Makefile
new file mode 100644
index 000000000000..805daf38c4f8
--- /dev/null
+++ b/net/linphone-base/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: linphone
+# Date created: 30 December 2002
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= linphone
+PORTVERSION= 0.9.1
+CATEGORIES= net
+MASTER_SITES= http://savannah.gnu.org/download/linphone/${PORTVERSION}/sources/
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= osip.0:${PORTSDIR}/net/libosip
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomehack gnomeprefix libpanel
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= speexdec.1 speexenc.1
+
+.include <bsd.port.mk>
diff --git a/net/linphone-base/distinfo b/net/linphone-base/distinfo
new file mode 100644
index 000000000000..48dc2cb06076
--- /dev/null
+++ b/net/linphone-base/distinfo
@@ -0,0 +1 @@
+MD5 (linphone-0.9.1.tar.gz) = 0c8e94039b5c6b772672f533c54816fe
diff --git a/net/linphone-base/files/patch-configure b/net/linphone-base/files/patch-configure
new file mode 100644
index 000000000000..9d91ad9f0b33
--- /dev/null
+++ b/net/linphone-base/files/patch-configure
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+--- configure 2002/12/16 19:20:25 1.1
++++ configure 2002/12/16 19:21:24
+@@ -7572,6 +7572,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -14026,7 +14027,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
++#LIBS="-lc $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -14074,7 +14075,7 @@
+ #define HAVE_LIBC 1
+ _ACEOF
+
+- LIBS="-lc $LIBS"
++# LIBS="-lc $LIBS"
+
+ fi
+
diff --git a/net/linphone-base/files/patch-console::Makefile.in b/net/linphone-base/files/patch-console::Makefile.in
new file mode 100644
index 000000000000..9d5b095c3ab5
--- /dev/null
+++ b/net/linphone-base/files/patch-console::Makefile.in
@@ -0,0 +1,25 @@
+
+$FreeBSD$
+
+--- console/Makefile.in 2002/12/30 09:08:53 1.1
++++ console/Makefile.in 2002/12/30 09:10:07
+@@ -166,7 +166,8 @@
+ $(top_srcdir)/osipua/src/libosipua.la \
+ $(top_srcdir)/mediastreamer/audiostream.o \
+ $(top_srcdir)/mediastreamer/libmediastreamer.la \
+- $(top_srcdir)/mediastreamer/libmsspeex.la
++ $(top_srcdir)/mediastreamer/.libs/libmsspeex.so \
++ $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ sipomatic_SOURCES = \
+@@ -177,7 +178,8 @@
+ $(top_srcdir)/osipua/src/libosipua.la \
+ $(top_srcdir)/mediastreamer/audiostream.o \
+ $(top_srcdir)/mediastreamer/libmediastreamer.la \
+- $(top_srcdir)/mediastreamer/libmsspeex.la
++ $(top_srcdir)/mediastreamer/.libs/libmsspeex.so \
++ $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ noinst_PROGRAMS = wav2raw
diff --git a/net/linphone-base/files/patch-gnome::LinphoneMain.c b/net/linphone-base/files/patch-gnome::LinphoneMain.c
new file mode 100644
index 000000000000..03745f2ac804
--- /dev/null
+++ b/net/linphone-base/files/patch-gnome::LinphoneMain.c
@@ -0,0 +1,60 @@
+
+$FreeBSD$
+
+--- gnome/LinphoneMain.c 2002/12/30 10:30:37 1.1
++++ gnome/LinphoneMain.c 2002/12/30 11:27:59
+@@ -676,27 +676,49 @@
+ int sock,err,if_count,i,j=0,lo=0;
+ struct ifconf netconf;
+ char buffer[32*MAX_IF];
++ struct ifreq *ifr;
+
+ netconf.ifc_len=32*MAX_IF;
+ netconf.ifc_buf=buffer;
+ sock=socket(PF_INET, SOCK_DGRAM,0);
+ err=ioctl(sock,SIOCGIFCONF,&netconf);
+- if (err<0) printf("Error in ioctl: %i.\n",errno);
+- close(sock);
++ if (err<0) {
++ printf("Error in ioctl: %i.\n",errno);
++ close(sock);
++ return (-1);
++ }
+
+- if_count=netconf.ifc_len/32;
++ if_count=netconf.ifc_len/sizeof(struct ifreq);
+ printf("Found %i interfaces.\n",if_count);
+ for (i=0;i<if_count;i++)
+ {
+- if (strcmp(netconf.ifc_req[i].ifr_name,"lo")==0) lo=1;
++ ifr = &netconf.ifc_req[i];
++ err = ioctl(sock, SIOCGIFFLAGS, ifr);
++ if (err < 0) {
++ if (errno != ENXIO)
++ printf("Error in ioctl: %i.\n",errno);
++ continue;
++ }
++ if ((ifr->ifr_flags & (IFF_UP || IFF_RUNNING)) == 0)
++ continue;
++ err = ioctl(sock, SIOCGIFADDR, ifr);
++ if (err < 0) {
++ printf("Error in ioctl: %i.\n",errno);
++ continue;
++ }
++
++ if (strncmp(netconf.ifc_req[i].ifr_name,"lo",2)==0) lo=1;
++ if (netconf.ifc_req[i].ifr_name[0] == '\0')
++ continue;
+
+ strncpy(lpm->net_conf.if_names[j],netconf.ifc_req[i].ifr_name,20);
+ strncpy(lpm->net_conf.if_addr[j],inet_ntoa(((struct sockaddr_in*)(&netconf.ifc_req[i].ifr_addr))->sin_addr),20);
+ j++;
+
+ }
++ close(sock);
+ if (lo==0) return(-1);
+- return(if_count);
++ return(j);
+ }
+
+ static char lock_name[80];
diff --git a/net/linphone-base/files/patch-gnome::Makefile.in b/net/linphone-base/files/patch-gnome::Makefile.in
new file mode 100644
index 000000000000..6f630edef7be
--- /dev/null
+++ b/net/linphone-base/files/patch-gnome::Makefile.in
@@ -0,0 +1,21 @@
+
+$FreeBSD$
+
+--- gnome/Makefile.in 2002/12/30 08:51:17 1.1
++++ gnome/Makefile.in 2002/12/30 08:59:06
+@@ -167,12 +167,13 @@
+ @BUILD_GNOME_TRUE@ propertybox.c propertybox.h
+
+
+-@BUILD_GNOME_TRUE@linphone_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) @SOUNDLIB@ -lgthread -lpthread -lpanel_applet -lgnorba \
++@BUILD_GNOME_TRUE@linphone_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) @SOUNDLIB@ `gnome-config --libs applets` \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/audiostream.o \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/osipua/src/libosipua.la \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/oRTP/src/libortp.la \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/libmediastreamer.la \
+-@BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/libmsspeex.la
++@BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/.libs/libmsspeex.so \
++@BUILD_GNOME_TRUE@ $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ DEFS = @DEFS@ @SOUNDDEFS@ -DENABLE_TRACE
diff --git a/net/linphone-base/files/patch-lpc10-1.5::lpcini.c b/net/linphone-base/files/patch-lpc10-1.5::lpcini.c
new file mode 100644
index 000000000000..4398a7075055
--- /dev/null
+++ b/net/linphone-base/files/patch-lpc10-1.5::lpcini.c
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- lpc10-1.5/lpcini.c 2002/12/30 08:26:21 1.1
++++ lpc10-1.5/lpcini.c 2002/12/30 08:28:01
+@@ -32,9 +32,9 @@
+ -lf2c -lm (in that order)
+ */
+
+-#include "f2c.h"
++#include <stdlib.h>
+
+-#include <malloc.h>
++#include "f2c.h"
+
+ /* Common Block Declarations */
+
diff --git a/net/linphone-base/files/patch-mediastreamer::Makefile.in b/net/linphone-base/files/patch-mediastreamer::Makefile.in
new file mode 100644
index 000000000000..79aae34a52f9
--- /dev/null
+++ b/net/linphone-base/files/patch-mediastreamer::Makefile.in
@@ -0,0 +1,32 @@
+
+$FreeBSD$
+
+--- mediastreamer/Makefile.in 2002/12/30 08:36:10 1.1
++++ mediastreamer/Makefile.in 2002/12/30 08:43:27
+@@ -163,7 +163,7 @@
+ @BUILD_V4L_TRUE@V4L_PLUGIN_TEST = test_v4l
+
+ @BUILD_MEDIASTREAMER_TRUE@lib_LTLIBRARIES = libmediastreamer.la $(XINE_PLUGIN) $(SMPEG_PLUGIN)\
+-@BUILD_MEDIASTREAMER_TRUE@ $(FFMPEG_PLUGIN) $(GDK_VO_PLUGIN) $(V4L_PLUGIN) libmsspeex.la
++@BUILD_MEDIASTREAMER_TRUE@ $(FFMPEG_PLUGIN) $(GDK_VO_PLUGIN) $(V4L_PLUGIN) libmsspeex.la $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ libmediastreamer_la_SOURCES = msfilter.c msfilter.h msutils.h\
+@@ -239,7 +239,7 @@
+
+
+ mstest_SOURCES = test.c
+-mstest_LDADD = libmediastreamer.la -lglib -lpthread -lgthread
++mstest_LDADD = libmediastreamer.la @GLIB_LIBS@
+
+ #test program to test MSRingPlayer object
+ ring_test_SOURCES = ring_test.c
+@@ -291,7 +291,7 @@
+
+ #the mediastream program that runs a processing that will be used in linphone
+ mediastream_SOURCES = mediastream.c audiostream.c mediastream.h
+-mediastream_LDADD = libmediastreamer.la libmsspeex.la
++mediastream_LDADD = libmediastreamer.la libmsspeex.la $(top_srcdir)/speex/libspeex/libspeex.la
+
+ DEFS = @DEFS@ -DG_LOG_DOMAIN=\"MediaStreamer\"
+
diff --git a/net/linphone-base/files/patch-mediastreamer::msfifo.c b/net/linphone-base/files/patch-mediastreamer::msfifo.c
new file mode 100644
index 000000000000..f30f63710642
--- /dev/null
+++ b/net/linphone-base/files/patch-mediastreamer::msfifo.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- mediastreamer/msfifo.c 2002/12/30 08:33:16 1.1
++++ mediastreamer/msfifo.c 2002/12/30 08:33:36
+@@ -23,6 +23,9 @@
+ #include "msutils.h"
+ #include "msfifo.h"
+
++#ifndef ENODATA
++#define ENODATA 61
++#endif
+
+ MSFifo * ms_fifo_new(MSBuffer *buf, gint r_gran, gint w_gran, gint r_offset, gint w_offset)
+ {
diff --git a/net/linphone-base/files/patch-oRTP::src::Makefile.in b/net/linphone-base/files/patch-oRTP::src::Makefile.in
new file mode 100644
index 000000000000..b2e02153b9b6
--- /dev/null
+++ b/net/linphone-base/files/patch-oRTP::src::Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- oRTP/src/Makefile.in 2002/12/30 08:17:27 1.1
++++ oRTP/src/Makefile.in 2002/12/30 08:24:15
+@@ -93,7 +93,7 @@
+
+ EXTRA_DIST = master system LOAD
+
+-DEFS = @DEFS@ $(PTHREAD_CFLAGS) -DG_LOG_DOMAIN=\"oRTP\"
++DEFS = @DEFS@ $(PTHREAD_CFLAGS) -DG_LOG_DOMAIN=\"oRTP\" -DBUILD_SCHEDULER
+
+ @HPUXKERNEL_TRUE@KERNEL_BITS = $$(getconf KERNEL_BITS)
+ @HPUXKERNEL_TRUE@SYSTEM = $$(/usr/bin/uname -s)
diff --git a/net/linphone-base/files/patch-oRTP::src::port_fct.c b/net/linphone-base/files/patch-oRTP::src::port_fct.c
new file mode 100644
index 000000000000..ececcc89e337
--- /dev/null
+++ b/net/linphone-base/files/patch-oRTP::src::port_fct.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- oRTP/src/port_fct.c 2002/12/30 08:13:23 1.1
++++ oRTP/src/port_fct.c 2002/12/30 08:13:35
+@@ -20,7 +20,7 @@
+
+ /* port_fct.h. define methods to help for portability between unix and win32 */
+
+-
++#include <sched.h>
+ #include "rtpsession.h"
+
+ #include "port_fct.h"
diff --git a/net/linphone-base/files/patch-oRTP::src::scheduler.h b/net/linphone-base/files/patch-oRTP::src::scheduler.h
new file mode 100644
index 000000000000..a872fc24fcbd
--- /dev/null
+++ b/net/linphone-base/files/patch-oRTP::src::scheduler.h
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- oRTP/src/scheduler.h 2002/12/30 08:15:08 1.1
++++ oRTP/src/scheduler.h 2002/12/30 08:15:16
+@@ -20,6 +20,8 @@
+ #ifndef SCHEDULER_H
+ #define SCHEDULER_H
+
++#include <pthread.h>
++
+ #include "rtpsession.h"
+ #include "rtptimer.h"
+ #include "sessionset.h"
diff --git a/net/linphone-base/files/patch-osipua::src::Makefile.in b/net/linphone-base/files/patch-osipua::src::Makefile.in
new file mode 100644
index 000000000000..ce96bf9fec49
--- /dev/null
+++ b/net/linphone-base/files/patch-osipua::src::Makefile.in
@@ -0,0 +1,36 @@
+
+$FreeBSD$
+
+--- osipua/src/Makefile.in 2002/12/30 08:45:50 1.1
++++ osipua/src/Makefile.in 2002/12/30 08:49:29
+@@ -91,7 +91,7 @@
+ SIP_MLEAK_FLAGS = @SIP_MLEAK_FLAGS@
+ SOCKET_LIB = @SOCKET_LIB@
+ STRIP = @STRIP@
+-THREAD_LIB = @THREAD_LIB@
++THREAD_LIB = -pthread
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+@@ -126,7 +126,7 @@
+
+
+ libosipua_la_LDFLAGS = -version-info $(LIBOSIPUA_SO_VERSION) \
+- @POSIX4_LIB@ @THREAD_LIB@ @NSL_LIB@ @SOCKET_LIB@
++ @POSIX4_LIB@ -pthread @NSL_LIB@ @SOCKET_LIB@
+
+
+ libosipua_la_LIBADD = @OSIP_LIBS@
+@@ -137,10 +137,10 @@
+
+ bin_PROGRAMS = osipua_tester test_sdphandler
+ osipua_tester_SOURCES = osipua_tester.c osipua_tester.h
+-osipua_tester_LDADD = libosipua.la
++osipua_tester_LDADD = libosipua.la -pthread
+
+ test_sdphandler_SOURCES = test_sdphandler.c
+-test_sdphandler_LDADD = libosipua.la
++test_sdphandler_LDADD = libosipua.la -pthread
+ subdir = src
+ mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
+ CONFIG_HEADER = $(top_builddir)/osipua-config.h
diff --git a/net/linphone-base/files/patch-osipua::src::osipmanager.c b/net/linphone-base/files/patch-osipua::src::osipmanager.c
new file mode 100644
index 000000000000..79da20b2fdf9
--- /dev/null
+++ b/net/linphone-base/files/patch-osipua::src::osipmanager.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- osipua/src/osipmanager.c 2002/12/30 08:44:18 1.1
++++ osipua/src/osipmanager.c 2002/12/30 08:44:31
+@@ -18,8 +18,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-#include <sys/socket.h>
+ #include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <errno.h>
+ #include "osipua.h"
diff --git a/net/linphone-base/files/patch-osipua::src::udp.c b/net/linphone-base/files/patch-osipua::src::udp.c
new file mode 100644
index 000000000000..082a99884bb5
--- /dev/null
+++ b/net/linphone-base/files/patch-osipua::src::udp.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- osipua/src/udp.c 2002/12/30 08:44:53 1.1
++++ osipua/src/udp.c 2002/12/30 08:45:01
+@@ -19,8 +19,8 @@
+ */
+
+
+-#include <sys/socket.h>
+ #include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <unistd.h>
diff --git a/net/linphone-base/files/patch-share::Makefile.in b/net/linphone-base/files/patch-share::Makefile.in
new file mode 100644
index 000000000000..6973647366bc
--- /dev/null
+++ b/net/linphone-base/files/patch-share::Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- share/Makefile.in 2002/12/30 09:26:56 1.1
++++ share/Makefile.in 2002/12/30 09:27:28
+@@ -158,7 +158,7 @@
+ #linphone_sys2dir=$(prefix)/etc/CORBA/servers
+
+ #linphone_sys2_DATA=linphone.gnorba
+-linphone_appletdir = $(prefix)/share/applets/Network
++linphone_appletdir = $(prefix)/share/gnome/applets/Network
+
+ linphone_applet_DATA = linphone_applet.desktop
+
diff --git a/net/linphone-base/files/patch-speex::src::Makefile.in b/net/linphone-base/files/patch-speex::src::Makefile.in
new file mode 100644
index 000000000000..daeed296be4b
--- /dev/null
+++ b/net/linphone-base/files/patch-speex::src::Makefile.in
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- speex/src/Makefile.in.orig Mon Dec 30 11:29:55 2002
++++ speex/src/Makefile.in Mon Dec 30 11:54:38 2002
+@@ -70,7 +70,7 @@
+ OBJEXT = @OBJEXT@
+ PATH_SEPARATOR = @PATH_SEPARATOR@
+
+-mandir = $(prefix)/share/man
++mandir = $(prefix)/man
+ AMTAR = @AMTAR@
+ AS = @AS@
+ AWK = @AWK@
+@@ -102,7 +102,7 @@
+ ogg_libraries = @ogg_libraries@
+ src = @src@
+
+-INCLUDES = -I$(top_srcdir)/libspeex
++INCLUDES = -I$(top_srcdir)/libspeex @OGG_INCLUDES@
+ man_MANS = speexenc.1 speexdec.1
+
+ EXTRA_DIST = $(man_MANS) getopt_win.h getopt.c getopt1.c wave_out.c wave_out.h
diff --git a/net/linphone-base/pkg-comment b/net/linphone-base/pkg-comment
new file mode 100644
index 000000000000..bbba22ca44fc
--- /dev/null
+++ b/net/linphone-base/pkg-comment
@@ -0,0 +1 @@
+A web phone that supports SIP protocol
diff --git a/net/linphone-base/pkg-descr b/net/linphone-base/pkg-descr
new file mode 100644
index 000000000000..7a4d7fab5cf0
--- /dev/null
+++ b/net/linphone-base/pkg-descr
@@ -0,0 +1,5 @@
+Linphone is a web phone: it let you phone to your friends anywhere in the
+whole world, freely, simply by using the internet. The cost of the phone call
+is the cost that you spend connected to the internet.
+
+WWW: http://www.linphone.org
diff --git a/net/linphone-base/pkg-plist b/net/linphone-base/pkg-plist
new file mode 100644
index 000000000000..43c37b8dcad1
--- /dev/null
+++ b/net/linphone-base/pkg-plist
@@ -0,0 +1,170 @@
+bin/linphone
+bin/linphonec
+bin/osipua_tester
+bin/sipomatic
+bin/speexdec
+bin/speexenc
+bin/test_sdphandler
+bin/testenc
+bin/testenc_wb
+etc/CORBA/servers/linphone.gnorba
+include/ortp/ortp-config.h
+include/ortp/ortp.h
+include/ortp/payloadtype.h
+include/ortp/rtp.h
+include/ortp/rtpmod.h
+include/ortp/rtpport.h
+include/ortp/rtpsession.h
+include/ortp/rtpsignaltable.h
+include/ortp/rtptimer.h
+include/ortp/scheduler.h
+include/ortp/sessionset.h
+include/ortp/str_utils.h
+include/ortp/telephonyevents.h
+include/osipua/bodycontext.h
+include/osipua/bodyhandler.h
+include/osipua/osipdialog.h
+include/osipua/osipmanager.h
+include/osipua/osipua.h
+include/osipua/regctxt.h
+include/osipua/resolver.h
+include/osipua/sdpcontext.h
+include/osipua/sdphandler.h
+include/osipua/utils.h
+include/speex.h
+include/speex_bits.h
+include/speex_callbacks.h
+include/speex_header.h
+lib/libmediastreamer.a
+lib/libmediastreamer.so
+lib/libmediastreamer.so.0
+lib/libmsspeex.a
+lib/libmsspeex.so
+lib/libmsspeex.so.0
+lib/libortp.a
+lib/libortp.la
+lib/libortp.so
+lib/libortp.so.0
+lib/libosipua.a
+lib/libosipua.la
+lib/libosipua.so
+lib/libosipua.so.1
+lib/libspeex.a
+lib/libspeex.la
+share/doc/manual.pdf
+share/doc/mediastreamer/book1.html
+share/doc/mediastreamer/coreapi.html
+share/doc/mediastreamer/index.sgml
+share/doc/mediastreamer/mediastreamer-filters.html
+share/doc/mediastreamer/mediastreamer-msringplayer.html
+share/doc/mediastreamer/mediastreamer-mssync.html
+share/doc/mediastreamer/mediastreamer-running-processing-chains.html
+share/doc/mediastreamer/msfilterimplementations.html
+share/doc/mediastreamer/userapi.html
+share/doc/ortp/book1.html
+share/doc/ortp/index.sgml
+share/doc/ortp/ortp-multiplexing-sessions-(in-a-one-thread-design).html
+share/doc/ortp/ortp-rtp-payloads-and-profiles.html
+share/doc/ortp/ortp-rtpsession-api.html
+share/doc/ortp/ortp-stack-management-functions.html
+share/doc/ortp/ortp-telephone-events-(rfc2833)-.html
+share/doc/ortp/ortpapi.html
+share/doc/osipua/book1.html
+share/doc/osipua/index.sgml
+share/doc/osipua/osipcallleg.html
+share/doc/osipua/osipua--registrationctxt-api-.html
+share/doc/osipua/osipua-osipcallleg-private-api.html
+share/doc/osipua/osipua-osipcallleg-public-api.html
+share/doc/osipua/osipua-osipua-private-api.html
+share/doc/osipua/osipua-osipua-public-api.html
+share/doc/osipua/osipua.html
+share/doc/osipua/registrationctxt.html
+share/gnome/apps/Internet/linphone.desktop
+share/gnome/applets/Network/linphone_applet.desktop
+share/gnome/help/linphone/C/manual/CVS/Entries
+share/gnome/help/linphone/C/manual/CVS/Repository
+share/gnome/help/linphone/C/manual/CVS/Root
+share/gnome/help/linphone/C/manual/docbook.css
+share/gnome/help/linphone/C/manual/index.html
+share/gnome/help/linphone/C/manual/params.html
+share/gnome/help/linphone/C/manual/stylesheet-images/CVS/Entries
+share/gnome/help/linphone/C/manual/stylesheet-images/CVS/Repository
+share/gnome/help/linphone/C/manual/stylesheet-images/CVS/Root
+share/gnome/help/linphone/C/manual/t1.html
+share/gnome/help/linphone/C/manual/x118.html
+share/gnome/help/linphone/C/manual/x121.html
+share/gnome/help/linphone/C/manual/x137.html
+share/gnome/help/linphone/C/manual/x143.html
+share/gnome/help/linphone/C/manual/x167.html
+share/gnome/help/linphone/C/manual/x172.html
+share/gnome/help/linphone/C/manual/x188.html
+share/gnome/help/linphone/C/manual/x26.html
+share/gnome/help/linphone/C/manual/x36.html
+share/gnome/help/linphone/fr/manual/CVS/Entries
+share/gnome/help/linphone/fr/manual/CVS/Repository
+share/gnome/help/linphone/fr/manual/CVS/Root
+share/gnome/help/linphone/fr/manual/docbook.css
+share/gnome/help/linphone/fr/manual/params.html
+share/gnome/help/linphone/fr/manual/registering.html
+share/gnome/help/linphone/fr/manual/stylesheet-images/CVS/Entries
+share/gnome/help/linphone/fr/manual/stylesheet-images/CVS/Repository
+share/gnome/help/linphone/fr/manual/stylesheet-images/CVS/Root
+share/gnome/help/linphone/fr/manual/t1.html
+share/gnome/help/linphone/fr/manual/x116.html
+share/gnome/help/linphone/fr/manual/x134.html
+share/gnome/help/linphone/fr/manual/x140.html
+share/gnome/help/linphone/fr/manual/x164.html
+share/gnome/help/linphone/fr/manual/x170.html
+share/gnome/help/linphone/fr/manual/x188.html
+share/gnome/help/linphone/fr/manual/x24.html
+share/gnome/help/linphone/fr/manual/x34.html
+share/gnome/help/linphone/it/manual/CVS/Entries
+share/gnome/help/linphone/it/manual/CVS/Repository
+share/gnome/help/linphone/it/manual/CVS/Root
+share/gnome/help/linphone/it/manual/docbook.css
+share/gnome/help/linphone/it/manual/params.html
+share/gnome/help/linphone/it/manual/registering.html
+share/gnome/help/linphone/it/manual/stylesheet-images/CVS/Entries
+share/gnome/help/linphone/it/manual/stylesheet-images/CVS/Repository
+share/gnome/help/linphone/it/manual/stylesheet-images/CVS/Root
+share/gnome/help/linphone/it/manual/t1.html
+share/gnome/help/linphone/it/manual/x116.html
+share/gnome/help/linphone/it/manual/x134.html
+share/gnome/help/linphone/it/manual/x140.html
+share/gnome/help/linphone/it/manual/x164.html
+share/gnome/help/linphone/it/manual/x170.html
+share/gnome/help/linphone/it/manual/x189.html
+share/gnome/help/linphone/it/manual/x24.html
+share/gnome/help/linphone/it/manual/x34.html
+share/gnome/linphonec
+share/gnome/pixmaps/linphone/linphone.png
+share/gnome/pixmaps/linphone/linphone2.png
+share/gnome/pixmaps/linphone/linphone2.xpm
+share/gnome/sounds/linphone/hello.raw
+share/gnome/sounds/linphone/ring.raw
+share/gnome/sounds/linphone/ringback.raw
+share/locale/de/LC_MESSAGES/linphone.mo
+share/locale/fr/LC_MESSAGES/linphone.mo
+share/locale/it/LC_MESSAGES/linphone.mo
+@dirrm share/gnome/sounds/linphone
+@dirrm share/gnome/help/linphone/it/manual/stylesheet-images/CVS
+@dirrm share/gnome/help/linphone/it/manual/stylesheet-images
+@dirrm share/gnome/help/linphone/it/manual/CVS
+@dirrm share/gnome/help/linphone/it/manual
+@dirrm share/gnome/help/linphone/it
+@dirrm share/gnome/help/linphone/fr/manual/stylesheet-images/CVS
+@dirrm share/gnome/help/linphone/fr/manual/stylesheet-images
+@dirrm share/gnome/help/linphone/fr/manual/CVS
+@dirrm share/gnome/help/linphone/fr/manual
+@dirrm share/gnome/help/linphone/fr
+@dirrm share/gnome/help/linphone/C/manual/stylesheet-images/CVS
+@dirrm share/gnome/help/linphone/C/manual/stylesheet-images
+@dirrm share/gnome/help/linphone/C/manual/CVS
+@dirrm share/gnome/help/linphone/C/manual
+@dirrm share/gnome/help/linphone/C
+@dirrm share/gnome/help/linphone
+@dirrm share/doc/osipua
+@dirrm share/doc/ortp
+@dirrm share/doc/mediastreamer
+@dirrm include/osipua
+@dirrm include/ortp
diff --git a/net/linphone/Makefile b/net/linphone/Makefile
new file mode 100644
index 000000000000..805daf38c4f8
--- /dev/null
+++ b/net/linphone/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: linphone
+# Date created: 30 December 2002
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= linphone
+PORTVERSION= 0.9.1
+CATEGORIES= net
+MASTER_SITES= http://savannah.gnu.org/download/linphone/${PORTVERSION}/sources/
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= osip.0:${PORTSDIR}/net/libosip
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_LIBTOOL= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomehack gnomeprefix libpanel
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+MAN1= speexdec.1 speexenc.1
+
+.include <bsd.port.mk>
diff --git a/net/linphone/distinfo b/net/linphone/distinfo
new file mode 100644
index 000000000000..48dc2cb06076
--- /dev/null
+++ b/net/linphone/distinfo
@@ -0,0 +1 @@
+MD5 (linphone-0.9.1.tar.gz) = 0c8e94039b5c6b772672f533c54816fe
diff --git a/net/linphone/files/patch-configure b/net/linphone/files/patch-configure
new file mode 100644
index 000000000000..9d91ad9f0b33
--- /dev/null
+++ b/net/linphone/files/patch-configure
@@ -0,0 +1,31 @@
+
+$FreeBSD$
+
+--- configure 2002/12/16 19:20:25 1.1
++++ configure 2002/12/16 19:21:24
+@@ -7572,6 +7572,7 @@
+
+ # This can be used to rebuild libtool when needed
+ LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
++$ac_aux_dir/ltconfig $LIBTOOL_DEPS
+
+ # Always use our own libtool.
+ LIBTOOL='$(SHELL) $(top_builddir)/libtool'
+@@ -14026,7 +14027,7 @@
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lc $LIBS"
++#LIBS="-lc $LIBS"
+ cat >conftest.$ac_ext <<_ACEOF
+ #line $LINENO "configure"
+ #include "confdefs.h"
+@@ -14074,7 +14075,7 @@
+ #define HAVE_LIBC 1
+ _ACEOF
+
+- LIBS="-lc $LIBS"
++# LIBS="-lc $LIBS"
+
+ fi
+
diff --git a/net/linphone/files/patch-console::Makefile.in b/net/linphone/files/patch-console::Makefile.in
new file mode 100644
index 000000000000..9d5b095c3ab5
--- /dev/null
+++ b/net/linphone/files/patch-console::Makefile.in
@@ -0,0 +1,25 @@
+
+$FreeBSD$
+
+--- console/Makefile.in 2002/12/30 09:08:53 1.1
++++ console/Makefile.in 2002/12/30 09:10:07
+@@ -166,7 +166,8 @@
+ $(top_srcdir)/osipua/src/libosipua.la \
+ $(top_srcdir)/mediastreamer/audiostream.o \
+ $(top_srcdir)/mediastreamer/libmediastreamer.la \
+- $(top_srcdir)/mediastreamer/libmsspeex.la
++ $(top_srcdir)/mediastreamer/.libs/libmsspeex.so \
++ $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ sipomatic_SOURCES = \
+@@ -177,7 +178,8 @@
+ $(top_srcdir)/osipua/src/libosipua.la \
+ $(top_srcdir)/mediastreamer/audiostream.o \
+ $(top_srcdir)/mediastreamer/libmediastreamer.la \
+- $(top_srcdir)/mediastreamer/libmsspeex.la
++ $(top_srcdir)/mediastreamer/.libs/libmsspeex.so \
++ $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ noinst_PROGRAMS = wav2raw
diff --git a/net/linphone/files/patch-gnome::LinphoneMain.c b/net/linphone/files/patch-gnome::LinphoneMain.c
new file mode 100644
index 000000000000..03745f2ac804
--- /dev/null
+++ b/net/linphone/files/patch-gnome::LinphoneMain.c
@@ -0,0 +1,60 @@
+
+$FreeBSD$
+
+--- gnome/LinphoneMain.c 2002/12/30 10:30:37 1.1
++++ gnome/LinphoneMain.c 2002/12/30 11:27:59
+@@ -676,27 +676,49 @@
+ int sock,err,if_count,i,j=0,lo=0;
+ struct ifconf netconf;
+ char buffer[32*MAX_IF];
++ struct ifreq *ifr;
+
+ netconf.ifc_len=32*MAX_IF;
+ netconf.ifc_buf=buffer;
+ sock=socket(PF_INET, SOCK_DGRAM,0);
+ err=ioctl(sock,SIOCGIFCONF,&netconf);
+- if (err<0) printf("Error in ioctl: %i.\n",errno);
+- close(sock);
++ if (err<0) {
++ printf("Error in ioctl: %i.\n",errno);
++ close(sock);
++ return (-1);
++ }
+
+- if_count=netconf.ifc_len/32;
++ if_count=netconf.ifc_len/sizeof(struct ifreq);
+ printf("Found %i interfaces.\n",if_count);
+ for (i=0;i<if_count;i++)
+ {
+- if (strcmp(netconf.ifc_req[i].ifr_name,"lo")==0) lo=1;
++ ifr = &netconf.ifc_req[i];
++ err = ioctl(sock, SIOCGIFFLAGS, ifr);
++ if (err < 0) {
++ if (errno != ENXIO)
++ printf("Error in ioctl: %i.\n",errno);
++ continue;
++ }
++ if ((ifr->ifr_flags & (IFF_UP || IFF_RUNNING)) == 0)
++ continue;
++ err = ioctl(sock, SIOCGIFADDR, ifr);
++ if (err < 0) {
++ printf("Error in ioctl: %i.\n",errno);
++ continue;
++ }
++
++ if (strncmp(netconf.ifc_req[i].ifr_name,"lo",2)==0) lo=1;
++ if (netconf.ifc_req[i].ifr_name[0] == '\0')
++ continue;
+
+ strncpy(lpm->net_conf.if_names[j],netconf.ifc_req[i].ifr_name,20);
+ strncpy(lpm->net_conf.if_addr[j],inet_ntoa(((struct sockaddr_in*)(&netconf.ifc_req[i].ifr_addr))->sin_addr),20);
+ j++;
+
+ }
++ close(sock);
+ if (lo==0) return(-1);
+- return(if_count);
++ return(j);
+ }
+
+ static char lock_name[80];
diff --git a/net/linphone/files/patch-gnome::Makefile.in b/net/linphone/files/patch-gnome::Makefile.in
new file mode 100644
index 000000000000..6f630edef7be
--- /dev/null
+++ b/net/linphone/files/patch-gnome::Makefile.in
@@ -0,0 +1,21 @@
+
+$FreeBSD$
+
+--- gnome/Makefile.in 2002/12/30 08:51:17 1.1
++++ gnome/Makefile.in 2002/12/30 08:59:06
+@@ -167,12 +167,13 @@
+ @BUILD_GNOME_TRUE@ propertybox.c propertybox.h
+
+
+-@BUILD_GNOME_TRUE@linphone_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) @SOUNDLIB@ -lgthread -lpthread -lpanel_applet -lgnorba \
++@BUILD_GNOME_TRUE@linphone_LDADD = $(GNOME_LIBDIR) $(GNOMEUI_LIBS) $(INTLLIBS) @SOUNDLIB@ `gnome-config --libs applets` \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/audiostream.o \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/osipua/src/libosipua.la \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/oRTP/src/libortp.la \
+ @BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/libmediastreamer.la \
+-@BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/libmsspeex.la
++@BUILD_GNOME_TRUE@ $(top_srcdir)/mediastreamer/.libs/libmsspeex.so \
++@BUILD_GNOME_TRUE@ $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ DEFS = @DEFS@ @SOUNDDEFS@ -DENABLE_TRACE
diff --git a/net/linphone/files/patch-lpc10-1.5::lpcini.c b/net/linphone/files/patch-lpc10-1.5::lpcini.c
new file mode 100644
index 000000000000..4398a7075055
--- /dev/null
+++ b/net/linphone/files/patch-lpc10-1.5::lpcini.c
@@ -0,0 +1,17 @@
+
+$FreeBSD$
+
+--- lpc10-1.5/lpcini.c 2002/12/30 08:26:21 1.1
++++ lpc10-1.5/lpcini.c 2002/12/30 08:28:01
+@@ -32,9 +32,9 @@
+ -lf2c -lm (in that order)
+ */
+
+-#include "f2c.h"
++#include <stdlib.h>
+
+-#include <malloc.h>
++#include "f2c.h"
+
+ /* Common Block Declarations */
+
diff --git a/net/linphone/files/patch-mediastreamer::Makefile.in b/net/linphone/files/patch-mediastreamer::Makefile.in
new file mode 100644
index 000000000000..79aae34a52f9
--- /dev/null
+++ b/net/linphone/files/patch-mediastreamer::Makefile.in
@@ -0,0 +1,32 @@
+
+$FreeBSD$
+
+--- mediastreamer/Makefile.in 2002/12/30 08:36:10 1.1
++++ mediastreamer/Makefile.in 2002/12/30 08:43:27
+@@ -163,7 +163,7 @@
+ @BUILD_V4L_TRUE@V4L_PLUGIN_TEST = test_v4l
+
+ @BUILD_MEDIASTREAMER_TRUE@lib_LTLIBRARIES = libmediastreamer.la $(XINE_PLUGIN) $(SMPEG_PLUGIN)\
+-@BUILD_MEDIASTREAMER_TRUE@ $(FFMPEG_PLUGIN) $(GDK_VO_PLUGIN) $(V4L_PLUGIN) libmsspeex.la
++@BUILD_MEDIASTREAMER_TRUE@ $(FFMPEG_PLUGIN) $(GDK_VO_PLUGIN) $(V4L_PLUGIN) libmsspeex.la $(top_srcdir)/speex/libspeex/libspeex.la
+
+
+ libmediastreamer_la_SOURCES = msfilter.c msfilter.h msutils.h\
+@@ -239,7 +239,7 @@
+
+
+ mstest_SOURCES = test.c
+-mstest_LDADD = libmediastreamer.la -lglib -lpthread -lgthread
++mstest_LDADD = libmediastreamer.la @GLIB_LIBS@
+
+ #test program to test MSRingPlayer object
+ ring_test_SOURCES = ring_test.c
+@@ -291,7 +291,7 @@
+
+ #the mediastream program that runs a processing that will be used in linphone
+ mediastream_SOURCES = mediastream.c audiostream.c mediastream.h
+-mediastream_LDADD = libmediastreamer.la libmsspeex.la
++mediastream_LDADD = libmediastreamer.la libmsspeex.la $(top_srcdir)/speex/libspeex/libspeex.la
+
+ DEFS = @DEFS@ -DG_LOG_DOMAIN=\"MediaStreamer\"
+
diff --git a/net/linphone/files/patch-mediastreamer::msfifo.c b/net/linphone/files/patch-mediastreamer::msfifo.c
new file mode 100644
index 000000000000..f30f63710642
--- /dev/null
+++ b/net/linphone/files/patch-mediastreamer::msfifo.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- mediastreamer/msfifo.c 2002/12/30 08:33:16 1.1
++++ mediastreamer/msfifo.c 2002/12/30 08:33:36
+@@ -23,6 +23,9 @@
+ #include "msutils.h"
+ #include "msfifo.h"
+
++#ifndef ENODATA
++#define ENODATA 61
++#endif
+
+ MSFifo * ms_fifo_new(MSBuffer *buf, gint r_gran, gint w_gran, gint r_offset, gint w_offset)
+ {
diff --git a/net/linphone/files/patch-oRTP::src::Makefile.in b/net/linphone/files/patch-oRTP::src::Makefile.in
new file mode 100644
index 000000000000..b2e02153b9b6
--- /dev/null
+++ b/net/linphone/files/patch-oRTP::src::Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- oRTP/src/Makefile.in 2002/12/30 08:17:27 1.1
++++ oRTP/src/Makefile.in 2002/12/30 08:24:15
+@@ -93,7 +93,7 @@
+
+ EXTRA_DIST = master system LOAD
+
+-DEFS = @DEFS@ $(PTHREAD_CFLAGS) -DG_LOG_DOMAIN=\"oRTP\"
++DEFS = @DEFS@ $(PTHREAD_CFLAGS) -DG_LOG_DOMAIN=\"oRTP\" -DBUILD_SCHEDULER
+
+ @HPUXKERNEL_TRUE@KERNEL_BITS = $$(getconf KERNEL_BITS)
+ @HPUXKERNEL_TRUE@SYSTEM = $$(/usr/bin/uname -s)
diff --git a/net/linphone/files/patch-oRTP::src::port_fct.c b/net/linphone/files/patch-oRTP::src::port_fct.c
new file mode 100644
index 000000000000..ececcc89e337
--- /dev/null
+++ b/net/linphone/files/patch-oRTP::src::port_fct.c
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- oRTP/src/port_fct.c 2002/12/30 08:13:23 1.1
++++ oRTP/src/port_fct.c 2002/12/30 08:13:35
+@@ -20,7 +20,7 @@
+
+ /* port_fct.h. define methods to help for portability between unix and win32 */
+
+-
++#include <sched.h>
+ #include "rtpsession.h"
+
+ #include "port_fct.h"
diff --git a/net/linphone/files/patch-oRTP::src::scheduler.h b/net/linphone/files/patch-oRTP::src::scheduler.h
new file mode 100644
index 000000000000..a872fc24fcbd
--- /dev/null
+++ b/net/linphone/files/patch-oRTP::src::scheduler.h
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- oRTP/src/scheduler.h 2002/12/30 08:15:08 1.1
++++ oRTP/src/scheduler.h 2002/12/30 08:15:16
+@@ -20,6 +20,8 @@
+ #ifndef SCHEDULER_H
+ #define SCHEDULER_H
+
++#include <pthread.h>
++
+ #include "rtpsession.h"
+ #include "rtptimer.h"
+ #include "sessionset.h"
diff --git a/net/linphone/files/patch-osipua::src::Makefile.in b/net/linphone/files/patch-osipua::src::Makefile.in
new file mode 100644
index 000000000000..ce96bf9fec49
--- /dev/null
+++ b/net/linphone/files/patch-osipua::src::Makefile.in
@@ -0,0 +1,36 @@
+
+$FreeBSD$
+
+--- osipua/src/Makefile.in 2002/12/30 08:45:50 1.1
++++ osipua/src/Makefile.in 2002/12/30 08:49:29
+@@ -91,7 +91,7 @@
+ SIP_MLEAK_FLAGS = @SIP_MLEAK_FLAGS@
+ SOCKET_LIB = @SOCKET_LIB@
+ STRIP = @STRIP@
+-THREAD_LIB = @THREAD_LIB@
++THREAD_LIB = -pthread
+ VERSION = @VERSION@
+ am__include = @am__include@
+ am__quote = @am__quote@
+@@ -126,7 +126,7 @@
+
+
+ libosipua_la_LDFLAGS = -version-info $(LIBOSIPUA_SO_VERSION) \
+- @POSIX4_LIB@ @THREAD_LIB@ @NSL_LIB@ @SOCKET_LIB@
++ @POSIX4_LIB@ -pthread @NSL_LIB@ @SOCKET_LIB@
+
+
+ libosipua_la_LIBADD = @OSIP_LIBS@
+@@ -137,10 +137,10 @@
+
+ bin_PROGRAMS = osipua_tester test_sdphandler
+ osipua_tester_SOURCES = osipua_tester.c osipua_tester.h
+-osipua_tester_LDADD = libosipua.la
++osipua_tester_LDADD = libosipua.la -pthread
+
+ test_sdphandler_SOURCES = test_sdphandler.c
+-test_sdphandler_LDADD = libosipua.la
++test_sdphandler_LDADD = libosipua.la -pthread
+ subdir = src
+ mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
+ CONFIG_HEADER = $(top_builddir)/osipua-config.h
diff --git a/net/linphone/files/patch-osipua::src::osipmanager.c b/net/linphone/files/patch-osipua::src::osipmanager.c
new file mode 100644
index 000000000000..79da20b2fdf9
--- /dev/null
+++ b/net/linphone/files/patch-osipua::src::osipmanager.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- osipua/src/osipmanager.c 2002/12/30 08:44:18 1.1
++++ osipua/src/osipmanager.c 2002/12/30 08:44:31
+@@ -18,8 +18,8 @@
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+-#include <sys/socket.h>
+ #include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <errno.h>
+ #include "osipua.h"
diff --git a/net/linphone/files/patch-osipua::src::udp.c b/net/linphone/files/patch-osipua::src::udp.c
new file mode 100644
index 000000000000..082a99884bb5
--- /dev/null
+++ b/net/linphone/files/patch-osipua::src::udp.c
@@ -0,0 +1,15 @@
+
+$FreeBSD$
+
+--- osipua/src/udp.c 2002/12/30 08:44:53 1.1
++++ osipua/src/udp.c 2002/12/30 08:45:01
+@@ -19,8 +19,8 @@
+ */
+
+
+-#include <sys/socket.h>
+ #include <sys/types.h>
++#include <sys/socket.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>
+ #include <unistd.h>
diff --git a/net/linphone/files/patch-share::Makefile.in b/net/linphone/files/patch-share::Makefile.in
new file mode 100644
index 000000000000..6973647366bc
--- /dev/null
+++ b/net/linphone/files/patch-share::Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- share/Makefile.in 2002/12/30 09:26:56 1.1
++++ share/Makefile.in 2002/12/30 09:27:28
+@@ -158,7 +158,7 @@
+ #linphone_sys2dir=$(prefix)/etc/CORBA/servers
+
+ #linphone_sys2_DATA=linphone.gnorba
+-linphone_appletdir = $(prefix)/share/applets/Network
++linphone_appletdir = $(prefix)/share/gnome/applets/Network
+
+ linphone_applet_DATA = linphone_applet.desktop
+
diff --git a/net/linphone/files/patch-speex::src::Makefile.in b/net/linphone/files/patch-speex::src::Makefile.in
new file mode 100644
index 000000000000..daeed296be4b
--- /dev/null
+++ b/net/linphone/files/patch-speex::src::Makefile.in
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- speex/src/Makefile.in.orig Mon Dec 30 11:29:55 2002
++++ speex/src/Makefile.in Mon Dec 30 11:54:38 2002
+@@ -70,7 +70,7 @@
+ OBJEXT = @OBJEXT@
+ PATH_SEPARATOR = @PATH_SEPARATOR@
+
+-mandir = $(prefix)/share/man
++mandir = $(prefix)/man
+ AMTAR = @AMTAR@
+ AS = @AS@
+ AWK = @AWK@
+@@ -102,7 +102,7 @@
+ ogg_libraries = @ogg_libraries@
+ src = @src@
+
+-INCLUDES = -I$(top_srcdir)/libspeex
++INCLUDES = -I$(top_srcdir)/libspeex @OGG_INCLUDES@
+ man_MANS = speexenc.1 speexdec.1
+
+ EXTRA_DIST = $(man_MANS) getopt_win.h getopt.c getopt1.c wave_out.c wave_out.h
diff --git a/net/linphone/pkg-comment b/net/linphone/pkg-comment
new file mode 100644
index 000000000000..bbba22ca44fc
--- /dev/null
+++ b/net/linphone/pkg-comment
@@ -0,0 +1 @@
+A web phone that supports SIP protocol
diff --git a/net/linphone/pkg-descr b/net/linphone/pkg-descr
new file mode 100644
index 000000000000..7a4d7fab5cf0
--- /dev/null
+++ b/net/linphone/pkg-descr
@@ -0,0 +1,5 @@
+Linphone is a web phone: it let you phone to your friends anywhere in the
+whole world, freely, simply by using the internet. The cost of the phone call
+is the cost that you spend connected to the internet.
+
+WWW: http://www.linphone.org
diff --git a/net/linphone/pkg-plist b/net/linphone/pkg-plist
new file mode 100644
index 000000000000..43c37b8dcad1
--- /dev/null
+++ b/net/linphone/pkg-plist
@@ -0,0 +1,170 @@
+bin/linphone
+bin/linphonec
+bin/osipua_tester
+bin/sipomatic
+bin/speexdec
+bin/speexenc
+bin/test_sdphandler
+bin/testenc
+bin/testenc_wb
+etc/CORBA/servers/linphone.gnorba
+include/ortp/ortp-config.h
+include/ortp/ortp.h
+include/ortp/payloadtype.h
+include/ortp/rtp.h
+include/ortp/rtpmod.h
+include/ortp/rtpport.h
+include/ortp/rtpsession.h
+include/ortp/rtpsignaltable.h
+include/ortp/rtptimer.h
+include/ortp/scheduler.h
+include/ortp/sessionset.h
+include/ortp/str_utils.h
+include/ortp/telephonyevents.h
+include/osipua/bodycontext.h
+include/osipua/bodyhandler.h
+include/osipua/osipdialog.h
+include/osipua/osipmanager.h
+include/osipua/osipua.h
+include/osipua/regctxt.h
+include/osipua/resolver.h
+include/osipua/sdpcontext.h
+include/osipua/sdphandler.h
+include/osipua/utils.h
+include/speex.h
+include/speex_bits.h
+include/speex_callbacks.h
+include/speex_header.h
+lib/libmediastreamer.a
+lib/libmediastreamer.so
+lib/libmediastreamer.so.0
+lib/libmsspeex.a
+lib/libmsspeex.so
+lib/libmsspeex.so.0
+lib/libortp.a
+lib/libortp.la
+lib/libortp.so
+lib/libortp.so.0
+lib/libosipua.a
+lib/libosipua.la
+lib/libosipua.so
+lib/libosipua.so.1
+lib/libspeex.a
+lib/libspeex.la
+share/doc/manual.pdf
+share/doc/mediastreamer/book1.html
+share/doc/mediastreamer/coreapi.html
+share/doc/mediastreamer/index.sgml
+share/doc/mediastreamer/mediastreamer-filters.html
+share/doc/mediastreamer/mediastreamer-msringplayer.html
+share/doc/mediastreamer/mediastreamer-mssync.html
+share/doc/mediastreamer/mediastreamer-running-processing-chains.html
+share/doc/mediastreamer/msfilterimplementations.html
+share/doc/mediastreamer/userapi.html
+share/doc/ortp/book1.html
+share/doc/ortp/index.sgml
+share/doc/ortp/ortp-multiplexing-sessions-(in-a-one-thread-design).html
+share/doc/ortp/ortp-rtp-payloads-and-profiles.html
+share/doc/ortp/ortp-rtpsession-api.html
+share/doc/ortp/ortp-stack-management-functions.html
+share/doc/ortp/ortp-telephone-events-(rfc2833)-.html
+share/doc/ortp/ortpapi.html
+share/doc/osipua/book1.html
+share/doc/osipua/index.sgml
+share/doc/osipua/osipcallleg.html
+share/doc/osipua/osipua--registrationctxt-api-.html
+share/doc/osipua/osipua-osipcallleg-private-api.html
+share/doc/osipua/osipua-osipcallleg-public-api.html
+share/doc/osipua/osipua-osipua-private-api.html
+share/doc/osipua/osipua-osipua-public-api.html
+share/doc/osipua/osipua.html
+share/doc/osipua/registrationctxt.html
+share/gnome/apps/Internet/linphone.desktop
+share/gnome/applets/Network/linphone_applet.desktop
+share/gnome/help/linphone/C/manual/CVS/Entries
+share/gnome/help/linphone/C/manual/CVS/Repository
+share/gnome/help/linphone/C/manual/CVS/Root
+share/gnome/help/linphone/C/manual/docbook.css
+share/gnome/help/linphone/C/manual/index.html
+share/gnome/help/linphone/C/manual/params.html
+share/gnome/help/linphone/C/manual/stylesheet-images/CVS/Entries
+share/gnome/help/linphone/C/manual/stylesheet-images/CVS/Repository
+share/gnome/help/linphone/C/manual/stylesheet-images/CVS/Root
+share/gnome/help/linphone/C/manual/t1.html
+share/gnome/help/linphone/C/manual/x118.html
+share/gnome/help/linphone/C/manual/x121.html
+share/gnome/help/linphone/C/manual/x137.html
+share/gnome/help/linphone/C/manual/x143.html
+share/gnome/help/linphone/C/manual/x167.html
+share/gnome/help/linphone/C/manual/x172.html
+share/gnome/help/linphone/C/manual/x188.html
+share/gnome/help/linphone/C/manual/x26.html
+share/gnome/help/linphone/C/manual/x36.html
+share/gnome/help/linphone/fr/manual/CVS/Entries
+share/gnome/help/linphone/fr/manual/CVS/Repository
+share/gnome/help/linphone/fr/manual/CVS/Root
+share/gnome/help/linphone/fr/manual/docbook.css
+share/gnome/help/linphone/fr/manual/params.html
+share/gnome/help/linphone/fr/manual/registering.html
+share/gnome/help/linphone/fr/manual/stylesheet-images/CVS/Entries
+share/gnome/help/linphone/fr/manual/stylesheet-images/CVS/Repository
+share/gnome/help/linphone/fr/manual/stylesheet-images/CVS/Root
+share/gnome/help/linphone/fr/manual/t1.html
+share/gnome/help/linphone/fr/manual/x116.html
+share/gnome/help/linphone/fr/manual/x134.html
+share/gnome/help/linphone/fr/manual/x140.html
+share/gnome/help/linphone/fr/manual/x164.html
+share/gnome/help/linphone/fr/manual/x170.html
+share/gnome/help/linphone/fr/manual/x188.html
+share/gnome/help/linphone/fr/manual/x24.html
+share/gnome/help/linphone/fr/manual/x34.html
+share/gnome/help/linphone/it/manual/CVS/Entries
+share/gnome/help/linphone/it/manual/CVS/Repository
+share/gnome/help/linphone/it/manual/CVS/Root
+share/gnome/help/linphone/it/manual/docbook.css
+share/gnome/help/linphone/it/manual/params.html
+share/gnome/help/linphone/it/manual/registering.html
+share/gnome/help/linphone/it/manual/stylesheet-images/CVS/Entries
+share/gnome/help/linphone/it/manual/stylesheet-images/CVS/Repository
+share/gnome/help/linphone/it/manual/stylesheet-images/CVS/Root
+share/gnome/help/linphone/it/manual/t1.html
+share/gnome/help/linphone/it/manual/x116.html
+share/gnome/help/linphone/it/manual/x134.html
+share/gnome/help/linphone/it/manual/x140.html
+share/gnome/help/linphone/it/manual/x164.html
+share/gnome/help/linphone/it/manual/x170.html
+share/gnome/help/linphone/it/manual/x189.html
+share/gnome/help/linphone/it/manual/x24.html
+share/gnome/help/linphone/it/manual/x34.html
+share/gnome/linphonec
+share/gnome/pixmaps/linphone/linphone.png
+share/gnome/pixmaps/linphone/linphone2.png
+share/gnome/pixmaps/linphone/linphone2.xpm
+share/gnome/sounds/linphone/hello.raw
+share/gnome/sounds/linphone/ring.raw
+share/gnome/sounds/linphone/ringback.raw
+share/locale/de/LC_MESSAGES/linphone.mo
+share/locale/fr/LC_MESSAGES/linphone.mo
+share/locale/it/LC_MESSAGES/linphone.mo
+@dirrm share/gnome/sounds/linphone
+@dirrm share/gnome/help/linphone/it/manual/stylesheet-images/CVS
+@dirrm share/gnome/help/linphone/it/manual/stylesheet-images
+@dirrm share/gnome/help/linphone/it/manual/CVS
+@dirrm share/gnome/help/linphone/it/manual
+@dirrm share/gnome/help/linphone/it
+@dirrm share/gnome/help/linphone/fr/manual/stylesheet-images/CVS
+@dirrm share/gnome/help/linphone/fr/manual/stylesheet-images
+@dirrm share/gnome/help/linphone/fr/manual/CVS
+@dirrm share/gnome/help/linphone/fr/manual
+@dirrm share/gnome/help/linphone/fr
+@dirrm share/gnome/help/linphone/C/manual/stylesheet-images/CVS
+@dirrm share/gnome/help/linphone/C/manual/stylesheet-images
+@dirrm share/gnome/help/linphone/C/manual/CVS
+@dirrm share/gnome/help/linphone/C/manual
+@dirrm share/gnome/help/linphone/C
+@dirrm share/gnome/help/linphone
+@dirrm share/doc/osipua
+@dirrm share/doc/ortp
+@dirrm share/doc/mediastreamer
+@dirrm include/osipua
+@dirrm include/ortp