wok-next view electricsheep/receipt @ rev 21379
updated mspdebug (0.17 -> 0.25)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Apr 16 16:31:49 2020 +0100 (2020-04-16) |
parents | f48456621a9d |
children |
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://electricsheep.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="http://147.52.159.12/mirrors/ftp.kernel.org/pub/dist/vectorlinux/VL64-7.0/sourceAbs/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk2-dev flam3-dev"
16 compile_rules() {
17 sed \
18 -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 -e 's/av_new_stream(output_ctx, /avformat_new_stream(output_ctx, NULL); st->id = (/' \
28 -e 's/av_close_input_file(/avformat_close_input(\&/' \
29 -e 's/av_find_stream_info(ictx/avformat_find_stream_info(ictx,NULL/' \
30 -e '/av_destruct_packet/d' \
31 -i electricsheep.c
32 mkdir -p $install/usr/share/gconf/defaults
33 sed \
34 -e '/update-gconf-defaults/d' \
35 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
36 -e '/GNOME_SCREENSAVER/d' \
37 -i Makefile*
39 ./configure \
40 --prefix=/usr \
41 --infodir=/usr/share/info \
42 --mandir=/usr/share/man \
43 $CONFIGURE_ARGS &&
44 make $MAKEFLAGS &&
45 make DESTDIR=$install install
46 }
48 genpkg_rules() {
49 cp -a $install/* $fs/
50 rm -r $fs/usr/share/man
51 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
52 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk2"
53 }