wok view electricsheep/receipt @ rev 14389
eet: update deps+bdeps
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Apr 23 07:02:13 2013 +0200 (2013-04-23) |
parents | cc8fd23efba0 |
children | 7896f0694ef6 |
line source
1 # SliTaz package receipt.
3 PACKAGE="electricsheep"
4 VERSION="2.7b12"
5 CATEGORY="graphics"
6 SHORT_DESC="Distributed screen-saver that renders morphing abstract animations"
7 MAINTAINER="gokhlayeh@slitaz.org"
8 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk+"
9 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk+-dev flam3-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://community.electricsheep.org/"
12 WGET_URL="http://147.52.159.12/mirrors/ftp.kernel.org/pub/dist/vectorlinux/VL64-7.0/sourceAbs/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \
19 -e 's/guess_format/av_guess_format/' \
20 -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \
21 -e '/stream_copy/d' -e '/av_set_parameters/d' \
22 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
23 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
24 -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \
25 -e 's/av_alloc_format_context/avformat_alloc_context/' \
26 -e '/GNOME_SCREENSAVER/d' \
27 electricsheep.c
28 mkdir -p $DESTDIR/usr/share/gconf/defaults
29 sed -i -e '/update-gconf-defaults/d' \
30 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
31 -e '/GNOME_SCREENSAVER/d' \
32 Makefile*
33 ./configure \
34 --prefix=/usr \
35 --infodir=/usr/share/info \
36 --mandir=/usr/share/man \
37 $CONFIGURE_ARGS &&
38 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 cp -a $install/* $fs/
45 rm -r $fs/usr/share/man
46 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
47 }