wok-next annotate electricsheep/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children
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"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
al@21020 9 WEB_SITE="https://electricsheep.org/"
al@21020 10
gokhlayeh@6998 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
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
al@21017 14 BUILD_DEPENDS="curl-dev expat-dev ffmpeg-dev libglade-dev gtk2-dev flam3-dev"
pascal@15002 15
al@21020 16 compile_rules() {
al@21020 17 sed \
al@21020 18 -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@14359 24 -e 's/av\(_write_header(output_ctx\)/avformat\1, NULL/' \
pascal@14358 25 -e 's/av_alloc_format_context/avformat_alloc_context/' \
pascal@14359 26 -e '/GNOME_SCREENSAVER/d' \
pascal@19144 27 -e 's/av_new_stream(output_ctx, /avformat_new_stream(output_ctx, NULL); st->id = (/' \
pascal@19144 28 -e 's/av_close_input_file(/avformat_close_input(\&/' \
pascal@19144 29 -e 's/av_find_stream_info(ictx/avformat_find_stream_info(ictx,NULL/' \
pascal@20396 30 -e '/av_destruct_packet/d' \
al@21020 31 -i electricsheep.c
al@21020 32 mkdir -p $install/usr/share/gconf/defaults
al@21020 33 sed \
al@21020 34 -e '/update-gconf-defaults/d' \
pascal@14359 35 -e 's|/usr/share/gconf/defaults|$(DESTDIR)&|' \
pascal@14360 36 -e '/GNOME_SCREENSAVER/d' \
al@21020 37 -i Makefile*
al@21020 38
gokhlayeh@6998 39 ./configure \
gokhlayeh@6998 40 --prefix=/usr \
gokhlayeh@6998 41 --infodir=/usr/share/info \
gokhlayeh@6998 42 --mandir=/usr/share/man \
gokhlayeh@6998 43 $CONFIGURE_ARGS &&
al@21020 44 make $MAKEFLAGS &&
al@21020 45 make DESTDIR=$install install
gokhlayeh@6998 46 }
gokhlayeh@6998 47
al@21020 48 genpkg_rules() {
pascal@14358 49 cp -a $install/* $fs/
gokhlayeh@6998 50 rm -r $fs/usr/share/man
gokhlayeh@6998 51 rm $fs/usr/share/electricsheep/electricsheep-wait.avi
al@21020 52 DEPENDS="curl expat flam3 ffmpeg mplayer libglade gtk2"
gokhlayeh@6998 53 }