Browse Source

xap/linphone: Upgraded to linphone-3.6.1.

slackware-14.2
Damien Goutte-Gattat 8 years ago
parent
commit
5fee2dcfd0
  1. 64
      xap/linphone/linphone-3.5.2-ffmpeg.diff
  2. 3470
      xap/linphone/linphone-3.5.2-xdg-basedir.diff
  3. 1
      xap/linphone/linphone-3.5.2.tar.gz.sha1
  4. 1
      xap/linphone/linphone-3.6.1.tar.gz.sha1
  5. 14
      xap/linphone/linphone.SlackBuild

64
xap/linphone/linphone-3.5.2-ffmpeg.diff

@ -1,64 +0,0 @@
diff -urN linphone-3.5.2.orig/mediastreamer2/src/h264dec.c linphone-3.5.2/mediastreamer2/src/h264dec.c
--- linphone-3.5.2.orig/mediastreamer2/src/h264dec.c 2012-02-22 18:54:58.000000000 +0700
+++ linphone-3.5.2/mediastreamer2/src/h264dec.c 2012-10-11 09:29:58.229247989 +0700
@@ -44,7 +44,6 @@
static void ffmpeg_init(){
static bool_t done=FALSE;
if (!done){
- avcodec_init();
avcodec_register_all();
done=TRUE;
}
diff -urN linphone-3.5.2.orig/mediastreamer2/src/videoenc.c linphone-3.5.2/mediastreamer2/src/videoenc.c
--- linphone-3.5.2.orig/mediastreamer2/src/videoenc.c 2012-02-22 18:54:58.000000000 +0700
+++ linphone-3.5.2/mediastreamer2/src/videoenc.c 2012-10-11 09:36:46.770805574 +0700
@@ -37,6 +37,13 @@
#define RATE_CONTROL_MARGIN 15000 /*bits/second*/
+#ifndef CODEC_FLAG_H263P_UMV
+#define CODEC_FLAG_H263P_UMV 0x02000000
+#endif
+#ifndef CODEC_FLAG_H263P_SLICE_STRUCT
+#define CODEC_FLAG_H263P_SLICE_STRUCT 0x10000000
+#endif
+
static bool_t avcodec_initialized=FALSE;
#ifdef ENABLE_LOG_FFMPEG
@@ -53,7 +60,6 @@
void ms_ffmpeg_check_init(){
if(!avcodec_initialized){
- avcodec_init();
avcodec_register_all();
avcodec_initialized=TRUE;
#ifdef ENABLE_LOG_FFMPEG
@@ -372,7 +378,7 @@
// assume video size is CIF or QCIF
if (context->width == 352 && context->height == 288) header->b_wptr[1] = 0x60;
else header->b_wptr[1] = 0x40;
- if (context->coded_frame->pict_type != FF_I_TYPE) header->b_wptr[1] |= 0x10;
+ if (context->coded_frame->pict_type != AV_PICTURE_TYPE_I) header->b_wptr[1] |= 0x10;
header->b_wptr += 4;
header->b_cont = *packet;
*packet = header;
@@ -779,7 +785,7 @@
s->req_vfu=TRUE;
}
if (s->req_vfu){
- pict.pict_type=FF_I_TYPE;
+ pict.pict_type=AV_PICTURE_TYPE_I;
s->req_vfu=FALSE;
}
comp_buf->b_rptr=comp_buf->b_wptr=comp_buf->b_datap->db_base;
@@ -799,7 +805,7 @@
if (s->framenum==1){
video_starter_first_frame (&s->starter,f->ticker->time);
}
- if (c->coded_frame->pict_type==FF_I_TYPE){
+ if (c->coded_frame->pict_type==AV_PICTURE_TYPE_I){
ms_message("Emitting I-frame");
}
comp_buf->b_wptr+=error;

3470
xap/linphone/linphone-3.5.2-xdg-basedir.diff

File diff suppressed because it is too large

1
xap/linphone/linphone-3.5.2.tar.gz.sha1

@ -1 +0,0 @@
d0dde9d421b7cf6893c8e5acb969d5bd4a04a231 linphone-3.5.2.tar.gz

1
xap/linphone/linphone-3.6.1.tar.gz.sha1

@ -0,0 +1 @@
3bba40df89443326261e2688f599c31ff156580e linphone-3.6.1.tar.gz

14
xap/linphone/linphone.SlackBuild

@ -26,12 +26,13 @@
# <http://www.linphone.org/>.
#
# Depends: l/libeXosip2, l/speex
# Recommends: xap/ffmpeg
# Source package infos
NAMESRC=${NAMESRC:-linphone}
VERSION=${VERSION:-3.5.2}
VERSION=${VERSION:-3.6.1}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://download.savannah.gnu.org/releases/linphone/3.5.x/sources/$ARCHIVE}
WGET=${WGET:-http://download.savannah.gnu.org/releases/linphone/3.6.x/sources/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-linphone}
@ -86,11 +87,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
# Support for XDG Base Directory Specification
patch -p 1 < $CWD/linphone-3.5.2-xdg-basedir.diff
# Support for recent Ffmpeg, from
# <https://build.opensuse.org/package/view_file?expand=1&file=linphone-ffmpeg.patch&package=linphone&project=openSUSE%3AFactory&rev=e0565b98439f40a4f5e91aa23cceaf1a>
patch -p 1 < $CWD/linphone-3.5.2-ffmpeg.diff
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -111,6 +107,10 @@ make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
# Install the documentation
mv $PKG/usr/share/doc $PKG/usr/doc
mv $PKG/usr/doc/mediastreamer-*/html $PKG/usr/doc/$NAME/mediastreamer
mv $PKG/usr/doc/ortp-*/html $PKG/usr/doc/$NAME/ortp
rmdir $PKG/usr/doc/mediastreamer-* $PKG/usr/doc/ortp-*
install -m 644 AUTHORS BUGS COPYING ChangeLog NEWS README TODO \
$PKG/usr/doc/$NAME

Loading…
Cancel
Save