wok annotate linphone/receipt @ rev 23630
updated sarg and sarg-php (2.3.11 -> 2.4.0)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Apr 17 08:01:58 2020 +0100 (2020-04-17) |
parents | d42fba5d4c31 |
children | a3c45ab9082e |
rev | line source |
---|---|
pascal@5763 | 1 # SliTaz package receipt. |
pascal@5763 | 2 |
pascal@5763 | 3 PACKAGE="linphone" |
pascal@12665 | 4 VERSION="3.5.2" |
pascal@5763 | 5 CATEGORY="network" |
Hans-G?nter@23041 | 6 TAGS="softphone telephony" |
pascal@5763 | 7 SHORT_DESC="SIP soft phone." |
pascal@5763 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@23041 | 10 WEB_SITE="http://www.linphone.org/" |
Hans-G?nter@23041 | 11 |
pascal@13027 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13027 | 13 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL" |
pascal@13027 | 14 |
Hans-G?nter@23041 | 15 DEPENDS="exosip glib gtk+ ffmpeg libglade libv4l osip speex xorg-libXv" |
Hans-G?nter@23041 | 16 BUILD_DEPENDS="cmake exosip-dev ffmpeg-dev glib-dev gtk+-dev intltool |
Hans-G?nter@23041 | 17 libglade-dev libsdl-dev libv4l-dev osip-dev speex-dev xorg-libXv-dev" |
pascal@5763 | 18 |
pascal@5763 | 19 # Rules to configure and make the package. |
pascal@5763 | 20 compile_rules() |
pascal@5763 | 21 { |
pascal@19737 | 22 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries" |
pascal@16658 | 23 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \ |
pascal@16654 | 24 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \ |
pascal@16654 | 25 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \ |
pascal@16654 | 26 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \ |
pascal@16654 | 27 mediastreamer2/src/*.c |
pascal@16659 | 28 sed -i 's/g_thread_init(NULL);//' gtk/*.c |
pascal@13055 | 29 # Define deprecated ffmepg flags ... |
Hans-G?nter@23041 | 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" |
Hans-G?nter@23041 | 31 export LIBS="-lavutil -lz" |
Hans-G?nter@23041 | 32 |
Hans-G?nter@23041 | 33 ./configure \ |
Hans-G?nter@23041 | 34 --prefix=/usr \ |
Hans-G?nter@23041 | 35 --libexecdir=/usr/bin \ |
Hans-G?nter@23041 | 36 --infodir=/usr/share/info \ |
Hans-G?nter@23041 | 37 --mandir=/usr/share/man \ |
Hans-G?nter@23041 | 38 $CONFIGURE_ARGS |
pascal@5763 | 39 make && |
pascal@15311 | 40 make DESTDIR=$DESTDIR install 2>&1 | sed \ |
pascal@15311 | 41 -e "s/css': No such file/css': no such file/" \ |
pascal@15311 | 42 -e "s/html': No such file/html': no such file/" |
pascal@5763 | 43 } |
pascal@5763 | 44 |
pascal@5763 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5763 | 46 genpkg_rules() |
pascal@5763 | 47 { |
Hans-G?nter@23041 | 48 mkdir -p $fs/usr/lib |
Hans-G?nter@23041 | 49 mkdir -p $fs/usr/share |
Hans-G?nter@23041 | 50 |
Hans-G?nter@23041 | 51 cp -a $install/usr/share/applications $fs/usr/share |
Hans-G?nter@23041 | 52 cp -a $install/usr/share/pixmaps $fs/usr/share |
Hans-G?nter@23041 | 53 cp -a $install/usr/share/sounds $fs/usr/share |
Hans-G?nter@23041 | 54 cp -a $install/usr/share/locale $fs/usr/share |
Hans-G?nter@23041 | 55 cp -a $install/usr/share/images $fs/usr/share |
Hans-G?nter@23041 | 56 cp -a $install/usr/share/linphone $fs/usr/share |
Hans-G?nter@23041 | 57 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23041 | 58 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@5763 | 59 } |