wok view linphone/receipt @ rev 23681

Up libsvn (1.13.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Apr 26 15:38:37 2020 +0000 (2020-04-26)
parents d42fba5d4c31
children a3c45ab9082e
line source
1 # SliTaz package receipt.
3 PACKAGE="linphone"
4 VERSION="3.5.2"
5 CATEGORY="network"
6 TAGS="softphone telephony"
7 SHORT_DESC="SIP soft phone."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="http://www.linphone.org/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL"
15 DEPENDS="exosip glib gtk+ ffmpeg libglade libv4l osip speex xorg-libXv"
16 BUILD_DEPENDS="cmake exosip-dev ffmpeg-dev glib-dev gtk+-dev intltool
17 libglade-dev libsdl-dev libv4l-dev osip-dev speex-dev xorg-libXv-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
23 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
24 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
25 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
26 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
27 mediastreamer2/src/*.c
28 sed -i 's/g_thread_init(NULL);//' gtk/*.c
29 # Define deprecated ffmepg flags ...
30 export CFLAGS="-Wno-deprecated-declarations -DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1"
31 export LIBS="-lavutil -lz"
33 ./configure \
34 --prefix=/usr \
35 --libexecdir=/usr/bin \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS
39 make &&
40 make DESTDIR=$DESTDIR install 2>&1 | sed \
41 -e "s/css': No such file/css': no such file/" \
42 -e "s/html': No such file/html': no such file/"
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 mkdir -p $fs/usr/lib
49 mkdir -p $fs/usr/share
51 cp -a $install/usr/share/applications $fs/usr/share
52 cp -a $install/usr/share/pixmaps $fs/usr/share
53 cp -a $install/usr/share/sounds $fs/usr/share
54 cp -a $install/usr/share/locale $fs/usr/share
55 cp -a $install/usr/share/images $fs/usr/share
56 cp -a $install/usr/share/linphone $fs/usr/share
57 cp -a $install/usr/bin $fs/usr
58 cp -a $install/usr/lib/*.so* $fs/usr/lib
59 }