wok-next view linphone/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5669e8b3be70
children
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 sdl-dev ffmpeg-dev osip-dev exosip-dev speex-dev \
15 libxv-dev v4l-utils-dev libglade-dev gtk2-dev glib-dev speex-dev"
16 SPLIT="$PACKAGE-dev"
18 COOKOPTS="skip-log-errors"
20 compile_rules() {
21 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
22 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
23 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
24 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
25 mediastreamer2/src/*.c
26 sed -i 's/g_thread_init(NULL);//' gtk/*.c
28 # Define deprecated ffmepg flags ...
29 CFLAGS="-Wno-deprecated-declarations -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 \
32 --prefix=/usr \
33 --libexecdir=/usr/bin \
34 --infodir=/usr/share/info \
35 --mandir=/usr/share/man \
36 $CONFIGURE_ARGS &&
37 make &&
38 make DESTDIR=$install install
39 }
41 genpkg_rules() {
42 case $PACKAGE in
43 linphone)
44 copy @std
45 DEPENDS="osip exosip speex ffmpeg libxv v4l-utils libglade gtk2 \
46 glib"
47 TAGS="softphone telephony"
48 ;;
49 *-dev)
50 copy @dev
51 ;;
52 esac
53 }