wok rev 14358
electricsheep: partial fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Apr 18 10:45:17 2013 +0200 (2013-04-18) |
parents | 7e1963cdd8f5 |
children | cc8fd23efba0 |
files | electricsheep/receipt |
line diff
1.1 --- a/electricsheep/receipt Thu Apr 18 08:49:03 2013 +0200 1.2 +++ b/electricsheep/receipt Thu Apr 18 10:45:17 2013 +0200 1.3 @@ -15,18 +15,27 @@ 1.4 compile_rules() 1.5 { 1.6 cd $src 1.7 + sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \ 1.8 + -e 's/guess_format/av_guess_format/' \ 1.9 + -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \ 1.10 + -e '/stream_copy/d' -e '/av_set_parameters/d' \ 1.11 + -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \ 1.12 + -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \ 1.13 + -e 's/av\(_write_header(output_ctx\)/av\1, NULL)/' \ 1.14 + -e 's/av_alloc_format_context/avformat_alloc_context/' \ 1.15 + electricsheep.c 1.16 ./configure \ 1.17 --prefix=/usr \ 1.18 --infodir=/usr/share/info \ 1.19 --mandir=/usr/share/man \ 1.20 $CONFIGURE_ARGS && 1.21 - make $MAKEFLAGS && make DESTDIR=$PWD/_pkg install 1.22 + make $MAKEFLAGS && make DESTDIR=$DESTDIR install 1.23 } 1.24 1.25 # Rules to gen a SliTaz package suitable for Tazpkg. 1.26 genpkg_rules() 1.27 { 1.28 - cp -a $_pkg/* $fs/ 1.29 + cp -a $install/* $fs/ 1.30 rm -r $fs/usr/share/man 1.31 rm $fs/usr/share/electricsheep/electricsheep-wait.avi 1.32 }