wok view linphone/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents a3c45ab9082e
children
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="https://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 current_version()
20 {
21 local base=http://download-mirror.savannah.gnu.org/releases/linphone
22 wget -O - $base/$(wget -O - $base 2>/dev/null | \
23 sed '/href="[0-9]/!d;s|.*href="\(.*\)/".*|\1|' | sort -Vr | sed q)/sources/ 2>/dev/null | \
24 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
31 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
32 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
33 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
34 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
35 mediastreamer2/src/*.c
36 sed -i 's/g_thread_init(NULL);//' gtk/*.c
37 # Define deprecated ffmepg flags ...
38 export CFLAGS="-Wno-deprecated-declarations -DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1"
39 export LIBS="-lavutil -lz"
41 ./configure \
42 --prefix=/usr \
43 --libexecdir=/usr/bin \
44 --infodir=/usr/share/info \
45 --mandir=/usr/share/man \
46 $CONFIGURE_ARGS
47 make &&
48 make DESTDIR=$DESTDIR install 2>&1 | sed \
49 -e "s/css': No such file/css': no such file/" \
50 -e "s/html': No such file/html': no such file/"
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib
57 mkdir -p $fs/usr/share
59 cp -a $install/usr/share/applications $fs/usr/share
60 cp -a $install/usr/share/pixmaps $fs/usr/share
61 cp -a $install/usr/share/sounds $fs/usr/share
62 cp -a $install/usr/share/locale $fs/usr/share
63 cp -a $install/usr/share/images $fs/usr/share
64 cp -a $install/usr/share/linphone $fs/usr/share
65 cp -a $install/usr/bin $fs/usr
66 cp -a $install/usr/lib/*.so* $fs/usr/lib
67 }