wok-next annotate electricsheep/receipt @ 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 3308cc8c07c7
children cc8fd23efba0
rev   line source
gokhlayeh@6998 1 # SliTaz package receipt.
gokhlayeh@6998 2
gokhlayeh@6998 3 PACKAGE="electricsheep"
gokhlayeh@6998 4 VERSION="2.7b12"
gokhlayeh@6998 5 CATEGORY="graphics"
samuel_trassare@12004 6 SHORT_DESC="Distributed screen-saver that renders morphing abstract animations"
gokhlayeh@7034 7 MAINTAINER="gokhlayeh@slitaz.org"
gokhlayeh@6998 8 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk+"
gokhlayeh@6998 9 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk+-dev flam3-dev"
gokhlayeh@6998 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@6998 11 WEB_SITE="http://community.electricsheep.org/"
samuel_trassare@12004 12 WGET_URL="http://147.52.159.12/mirrors/ftp.kernel.org/pub/dist/vectorlinux/VL64-7.0/sourceAbs/$PACKAGE/$TARBALL"
gokhlayeh@6998 13
gokhlayeh@6998 14 # Rules to configure and make the package.
gokhlayeh@6998 15 compile_rules()
gokhlayeh@6998 16 {
gokhlayeh@6998 17 cd $src
pascal@14358 18 sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \
pascal@14358 19 -e 's/guess_format/av_guess_format/' \
pascal@14358 20 -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \
pascal@14358 21 -e '/stream_copy/d' -e '/av_set_parameters/d' \
pascal@14358 22 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
pascal@14358 23 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
pascal@14358 24 -e 's/av\(_write_header(output_ctx\)/av\1, NULL)/' \
pascal@14358 25 -e 's/av_alloc_format_context/avformat_alloc_context/' \
pascal@14358 26 electricsheep.c
gokhlayeh@6998 27 ./configure \
gokhlayeh@6998 28 --prefix=/usr \
gokhlayeh@6998 29 --infodir=/usr/share/info \
gokhlayeh@6998 30 --mandir=/usr/share/man \
gokhlayeh@6998 31 $CONFIGURE_ARGS &&
pascal@14358 32 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
gokhlayeh@6998 33 }
gokhlayeh@6998 34
gokhlayeh@6998 35 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6998 36 genpkg_rules()
gokhlayeh@6998 37 {
pascal@14358 38 cp -a $install/* $fs/
gokhlayeh@6998 39 rm -r $fs/usr/share/man
gokhlayeh@6998 40 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
gokhlayeh@6998 41 }
gokhlayeh@6998 42