wok-6.x view linphone/receipt @ rev 16659

linphone: g_thread_init() is no longer necessary since glib version 2.32 and should not be used
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 14 06:07:40 2014 +0000 (2014-05-14)
parents e67fcec5ae0d
children 1e800a730225
line source
1 # SliTaz package receipt.
3 PACKAGE="linphone"
4 VERSION="3.5.2"
5 CATEGORY="network"
6 SHORT_DESC="SIP soft phone."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.linphone.org/"
11 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL"
12 TAGS="softphone telephony"
14 DEPENDS="osip exosip speex ffmpeg xorg-libXv libv4l libglade gtk+ glib"
15 BUILD_DEPENDS="intltool libsdl-dev ffmpeg-dev osip-dev exosip-dev speex-dev \
16 xorg-libXv-dev libv4l-dev libglade-dev gtk+-dev glib-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
23 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
24 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
25 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
26 mediastreamer2/src/*.c
27 sed -i 's/g_thread_init(NULL);//' gtk/*.c
28 # Define deprecated ffmepg flags ...
29 CFLAGS="-DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1" \
30 LIBS="-lavutil -lz" \
31 ./configure --prefix=/usr --libexecdir=/usr/bin \
32 --infodir=/usr/share/info --mandir=/usr/share/man $CONFIGURE_ARGS
33 make &&
34 make DESTDIR=$DESTDIR install 2>&1 | sed \
35 -e "s/css': No such file/css': no such file/" \
36 -e "s/html': No such file/html': no such file/"
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib $fs/usr/share
43 cp -a $install/usr/share/applications $fs/usr/share
44 cp -a $install/usr/share/pixmaps $fs/usr/share
45 cp -a $install/usr/share/sounds $fs/usr/share
46 cp -a $install/usr/share/locale $fs/usr/share
47 cp -a $install/usr/share/images $fs/usr/share
48 cp -a $install/usr/share/linphone $fs/usr/share
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 }