wok view linphone/receipt @ rev 22320

updated yaml and yaml-dev (0.1.4 -> 0.2.2)
author Hans-G?nter Theisgen
date Thu Nov 14 16:00:22 2019 +0100 (2019-11-14)
parents 1e800a730225
children d0c61e885e3a
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 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
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="-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 --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 }