wok-next view electricsheep/receipt @ rev 20017

Add speexdsp, up speex, pulseaudio & pavucontrol.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 22 03:28:23 2017 +0300 (2017-10-22)
parents 7896f0694ef6
children 6196c5e2b89d
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://community.electricsheep.org/"
11 WGET_URL="http://147.52.159.12/mirrors/ftp.kernel.org/pub/dist/vectorlinux/VL64-7.0/sourceAbs/$PACKAGE/$TARBALL"
13 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk+"
14 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk+-dev flam3-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 sed -i -e 's/CODEC_TYPE_VIDEO/AVMEDIA_TYPE_VIDEO/' \
20 -e 's/guess_format/av_guess_format/' \
21 -e 's/PKT_FLAG_KEY/AV_PKT_FLAG_KEY/' \
22 -e '/stream_copy/d' -e '/av_set_parameters/d' \
23 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
24 -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
25 -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \
26 -e 's/av_alloc_format_context/avformat_alloc_context/' \
27 -e '/GNOME_SCREENSAVER/d' \
28 -e 's/av_new_stream(output_ctx, /avformat_new_stream(output_ctx, NULL); st->id = (/' \
29 -e 's/av_close_input_file(/avformat_close_input(\&/' \
30 -e 's/av_find_stream_info(ictx/avformat_find_stream_info(ictx,NULL/' \
31 electricsheep.c
32 mkdir -p $DESTDIR/usr/share/gconf/defaults
33 sed -i -e '/update-gconf-defaults/d' \
34 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
35 -e '/GNOME_SCREENSAVER/d' \
36 Makefile*
37 ./configure \
38 --prefix=/usr \
39 --infodir=/usr/share/info \
40 --mandir=/usr/share/man \
41 $CONFIGURE_ARGS &&
42 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cp -a $install/* $fs/
49 rm -r $fs/usr/share/man
50 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
51 }