wok-6.x annotate linphone/receipt @ rev 16654
miro: update ffmpeg patch
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 13 15:42:58 2014 +0000 (2014-05-13) |
parents | 002d4bf6c905 |
children | e67fcec5ae0d |
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" |
pascal@5763 | 6 SHORT_DESC="SIP soft phone." |
pascal@5763 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@13027 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@13027 | 10 WEB_SITE="http://www.linphone.org/" |
pascal@13027 | 11 WGET_URL="http://download-mirror.savannah.gnu.org/releases/linphone/${VERSION%.*}.x/sources/$TARBALL" |
pascal@13027 | 12 TAGS="softphone telephony" |
pascal@13027 | 13 |
pascal@16612 | 14 DEPENDS="osip exosip speex ffmpeg xorg-libXv libv4l libglade gtk+ glib" |
pascal@16612 | 15 BUILD_DEPENDS="intltool libsdl-dev ffmpeg-dev osip-dev exosip-dev speex-dev \ |
pascal@10683 | 16 xorg-libXv-dev libv4l-dev libglade-dev gtk+-dev glib-dev" |
pascal@5763 | 17 |
pascal@5763 | 18 # Rules to configure and make the package. |
pascal@5763 | 19 compile_rules() |
pascal@5763 | 20 { |
pascal@5763 | 21 cd $src |
pascal@16654 | 22 sed -i -e 's/CodecID/AV&/' \ |
pascal@16654 | 23 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \ |
pascal@16654 | 24 -e 's/avcodec_get_context_defaults(\([^)]*\)/avcodec_get_context_defaults3(\1, NULL/' \ |
pascal@16654 | 25 -e 's/avcodec_alloc_context(\([^)]*\)/avcodec_alloc_context3(\1 NULL/' \ |
pascal@16654 | 26 mediastreamer2/src/*.c |
pascal@13055 | 27 # Define deprecated ffmepg flags ... |
pascal@13055 | 28 CFLAGS="-DCODEC_FLAG_PART=0x0080 -DCODEC_FLAG_H263P_UMV=0x0200000 -DCODEC_FLAG_H263P_SLICE_STRUCT=0x01000000 -DFF_I_TYPE=1" \ |
pascal@13055 | 29 LIBS="-lavutil -lz" \ |
pascal@13055 | 30 ./configure --prefix=/usr --libexecdir=/usr/bin \ |
pascal@5763 | 31 --infodir=/usr/share/info --mandir=/usr/share/man $CONFIGURE_ARGS |
pascal@5763 | 32 make && |
pascal@15311 | 33 make DESTDIR=$DESTDIR install 2>&1 | sed \ |
pascal@15311 | 34 -e "s/css': No such file/css': no such file/" \ |
pascal@15311 | 35 -e "s/html': No such file/html': no such file/" |
pascal@5763 | 36 } |
pascal@5763 | 37 |
pascal@5763 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@5763 | 39 genpkg_rules() |
pascal@5763 | 40 { |
pascal@5763 | 41 mkdir -p $fs/usr/lib $fs/usr/share |
pascal@15000 | 42 cp -a $install/usr/share/applications $fs/usr/share |
pascal@15000 | 43 cp -a $install/usr/share/pixmaps $fs/usr/share |
pascal@15000 | 44 cp -a $install/usr/share/sounds $fs/usr/share |
pascal@15000 | 45 cp -a $install/usr/share/locale $fs/usr/share |
pascal@15000 | 46 cp -a $install/usr/share/images $fs/usr/share |
pascal@15000 | 47 cp -a $install/usr/share/linphone $fs/usr/share |
pascal@15000 | 48 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@5763 | 50 } |