wok-next annotate linphone/receipt @ rev 20956

Random updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Sep 05 00:08:37 2018 +0300 (2018-09-05)
parents 10df65db91ad
children f48456621a9d
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@20956 18 COOKOPTS="skip-log-errors"
al@20956 19
al@20463 20 compile_rules() {
al@20463 21 sed -i -e 's/CodecID/AV&/' -e 's/avcodec_init();//' \
pascal@16654 22 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
pascal@16654 23 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \
pascal@16654 24 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \
pascal@16654 25 mediastreamer2/src/*.c
pascal@16659 26 sed -i 's/g_thread_init(NULL);//' gtk/*.c
al@20956 27
pascal@13055 28 # Define deprecated ffmepg flags ...
pascal@17774 29 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 30 LIBS="-lavutil -lz" \
al@20463 31 ./configure \
al@20463 32 --prefix=/usr \
al@20463 33 --libexecdir=/usr/bin \
al@20463 34 --infodir=/usr/share/info \
al@20463 35 --mandir=/usr/share/man \
al@20463 36 $CONFIGURE_ARGS &&
pascal@5763 37 make &&
al@20956 38 make DESTDIR=$DESTDIR install
pascal@5763 39 }
pascal@5763 40
al@20463 41 genpkg_rules() {
al@20463 42 case $PACKAGE in
al@20463 43 linphone)
al@20956 44 copy @std
al@20604 45 DEPENDS="osip exosip speex ffmpeg xorg-libXv v4l-utils libglade gtk+ \
al@20463 46 glib"
al@20463 47 TAGS="softphone telephony"
al@20463 48 ;;
al@20463 49 *-dev)
al@20956 50 copy @dev
al@20463 51 ;;
al@20463 52 esac
pascal@5763 53 }