wok-next view linphone/receipt @ rev 20515

glibc: undo math patches
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Mar 21 16:16:38 2018 +0200 (2018-03-21)
parents b7594677cf1c
children 10df65db91ad
line source
1 # SliTaz package receipt v2.
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 WEB_SITE="http://www.linphone.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL"
14 BUILD_DEPENDS="intltool libsdl-dev ffmpeg-dev osip-dev exosip-dev speex-dev \
15 xorg-libXv-dev libv4l-dev libglade-dev gtk+-dev glib-dev speex-dev"
16 SPLIT="linphone-dev"
18 compile_rules() {
19 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
20 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
21 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
22 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
23 mediastreamer2/src/*.c
24 sed -i 's/g_thread_init(NULL);//' gtk/*.c
25 # Define deprecated ffmepg flags ...
26 CFLAGS="-Wno-deprecated-declarations -DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1" \
27 LIBS="-lavutil -lz" \
28 ./configure \
29 --prefix=/usr \
30 --libexecdir=/usr/bin \
31 --infodir=/usr/share/info \
32 --mandir=/usr/share/man \
33 $CONFIGURE_ARGS &&
34 make &&
35 make DESTDIR=$DESTDIR install 2>&1 | sed \
36 -e "s/css': No such file/css': no such file/" \
37 -e "s/html': No such file/html': no such file/"
38 }
40 genpkg_rules() {
41 case $PACKAGE in
42 linphone)
43 mkdir -p $fs/usr/lib $fs/usr/share
44 cp -a $install/usr/share/applications $fs/usr/share
45 cp -a $install/usr/share/pixmaps $fs/usr/share
46 cp -a $install/usr/share/sounds $fs/usr/share
47 cp -a $install/usr/share/locale $fs/usr/share
48 cp -a $install/usr/share/images $fs/usr/share
49 cp -a $install/usr/share/linphone $fs/usr/share
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 DEPENDS="osip exosip speex ffmpeg xorg-libXv libv4l libglade gtk+ \
53 glib"
54 TAGS="softphone telephony"
55 ;;
56 *-dev)
57 mkdir -p $fs/usr/lib
58 cp -a $install/usr/include $fs/usr
59 cp -a $install/usr/lib/*.*a $fs/usr/lib
60 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
61 ;;
62 esac
63 }