wok-6.x annotate electricsheep/receipt @ rev 16810

Add yelp-xsl
author Yuri Pourre <yuripourre@gmail.com>
date Wed Jul 09 22:45:26 2014 -0300 (2014-07-09)
parents a11f22da8b31
children 828d10d5e797
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"
pascal@15002 8 LICENSE="GPL2"
gokhlayeh@6998 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@6998 10 WEB_SITE="http://community.electricsheep.org/"
samuel_trassare@12004 11 WGET_URL="http://147.52.159.12/mirrors/ftp.kernel.org/pub/dist/vectorlinux/VL64-7.0/sourceAbs/$PACKAGE/$TARBALL"
gokhlayeh@6998 12
pascal@15002 13 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk+"
pascal@15002 14 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk+-dev flam3-dev"
pascal@15002 15
gokhlayeh@6998 16 # Rules to configure and make the package.
gokhlayeh@6998 17 compile_rules()
gokhlayeh@6998 18 {
gokhlayeh@6998 19 cd $src
pascal@14358 20 sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \
pascal@14358 21 -e 's/guess_format/av_guess_format/' \
pascal@14358 22 -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \
pascal@14358 23 -e '/stream_copy/d' -e '/av_set_parameters/d' \
pascal@14358 24 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
pascal@14358 25 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
pascal@14359 26 -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \
pascal@14358 27 -e 's/av_alloc_format_context/avformat_alloc_context/' \
pascal@14359 28 -e '/GNOME_SCREENSAVER/d' \
pascal@14358 29 electricsheep.c
pascal@14359 30 mkdir -p $DESTDIR/usr/share/gconf/defaults
pascal@14359 31 sed -i -e '/update-gconf-defaults/d' \
pascal@14359 32 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
pascal@14360 33 -e '/GNOME_SCREENSAVER/d' \
pascal@14359 34 Makefile*
gokhlayeh@6998 35 ./configure \
gokhlayeh@6998 36 --prefix=/usr \
gokhlayeh@6998 37 --infodir=/usr/share/info \
gokhlayeh@6998 38 --mandir=/usr/share/man \
gokhlayeh@6998 39 $CONFIGURE_ARGS &&
pascal@14358 40 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
gokhlayeh@6998 41 }
gokhlayeh@6998 42
gokhlayeh@6998 43 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6998 44 genpkg_rules()
gokhlayeh@6998 45 {
pascal@14358 46 cp -a $install/* $fs/
gokhlayeh@6998 47 rm -r $fs/usr/share/man
gokhlayeh@6998 48 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
gokhlayeh@6998 49 }
gokhlayeh@6998 50