wok-next annotate linphone/receipt @ rev 20610

transmission: up 2.93
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 19 20:11:53 2018 +0300 (2018-04-19)
parents e323d0535e2c
children d2950281f122
rev   line source
al@20463 1 # SliTaz package receipt v2.
pascal@5763 2
pascal@5763 3 PACKAGE="linphone"
pascal@12665 4 VERSION="3.5.2"
pascal@5763 5 CATEGORY="network"
al@20463 6 SHORT_DESC="SIP soft phone"
pascal@5763 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
al@20463 9 WEB_SITE="http://www.linphone.org/"
al@20463 10
pascal@13027 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13027 12 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL"
pascal@13027 13
pascal@16612 14 BUILD_DEPENDS="intltool libsdl-dev ffmpeg-dev osip-dev exosip-dev speex-dev \
al@20604 15 xorg-libXv-dev v4l-utils-dev libglade-dev gtk+-dev glib-dev speex-dev"
al@20463 16 SPLIT="linphone-dev"
pascal@5763 17
al@20463 18 compile_rules() {
al@20463 19 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
pascal@16654 20 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
pascal@16654 21 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
pascal@16654 22 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
pascal@16654 23 mediastreamer2/src/*.c
pascal@16659 24 sed -i 's/g_thread_init(NULL);//' gtk/*.c
pascal@13055 25 # Define deprecated ffmepg flags ...
pascal@17774 26 CFLAGS="-Wno-deprecated-declarations -DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1" \
pascal@13055 27 LIBS="-lavutil -lz" \
al@20463 28 ./configure \
al@20463 29 --prefix=/usr \
al@20463 30 --libexecdir=/usr/bin \
al@20463 31 --infodir=/usr/share/info \
al@20463 32 --mandir=/usr/share/man \
al@20463 33 $CONFIGURE_ARGS &&
pascal@5763 34 make &&
pascal@15311 35 make DESTDIR=$DESTDIR install 2>&1 | sed \
pascal@15311 36 -e "s/css': No such file/css': no such file/" \
pascal@15311 37 -e "s/html': No such file/html': no such file/"
pascal@5763 38 }
pascal@5763 39
al@20463 40 genpkg_rules() {
al@20463 41 case $PACKAGE in
al@20463 42 linphone)
al@20463 43 mkdir -p $fs/usr/lib $fs/usr/share
al@20463 44 cp -a $install/usr/share/applications $fs/usr/share
al@20463 45 cp -a $install/usr/share/pixmaps $fs/usr/share
al@20463 46 cp -a $install/usr/share/sounds $fs/usr/share
al@20463 47 cp -a $install/usr/share/locale $fs/usr/share
al@20463 48 cp -a $install/usr/share/images $fs/usr/share
al@20463 49 cp -a $install/usr/share/linphone $fs/usr/share
al@20463 50 cp -a $install/usr/bin $fs/usr
al@20463 51 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@20604 52 DEPENDS="osip exosip speex ffmpeg xorg-libXv v4l-utils libglade gtk+ \
al@20463 53 glib"
al@20463 54 TAGS="softphone telephony"
al@20463 55 ;;
al@20463 56 *-dev)
al@20463 57 mkdir -p $fs/usr/lib
al@20463 58 cp -a $install/usr/include $fs/usr
al@20463 59 cp -a $install/usr/lib/*.*a $fs/usr/lib
al@20463 60 cp -a $install/usr/lib/pkgconfig $fs/usr/lib
al@20463 61 ;;
al@20463 62 esac
pascal@5763 63 }