wok-next view miro/receipt @ rev 18579
Up geos (3.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 11 14:50:32 2015 +0100 (2015-11-11) |
parents | 533c0cab6960 |
children | 7453cace358a |
line source
1 # SliTaz package receipt.
3 PACKAGE="miro"
4 VERSION="5.0.4"
5 CATEGORY="multimedia"
6 SHORT_DESC="The free and open source internet TV platform."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.getmiro.com"
11 WGET_URL="http://ftp.osuosl.org/pub/pculture.org/$PACKAGE/src/$TARBALL"
13 DEPENDS="dbus-python python-pyrex pygtk gstreamer python-pysqlite pywebkitgtk \
14 shared-mime-info desktop-file-utils hicolor-icon-theme gst-python notify-python \
15 libtorrent-rasterbar gst-plugins-base gst-plugins-good gst-ffmpeg \
16 pycurl taglib python-gconf"
17 BUILD_DEPENDS="$DEPENDS python-dev dbus-python-dev pygtk-dev gstreamer-dev \
18 shared-mime-info-dev gst-python-dev libtorrent-rasterbar-dev libsoup-dev \
19 libwebkit-dev gst-plugins-base-dev gst-plugins-good-dev ffmpeg-dev \
20 imagemagick-dev taglib-dev libboost-dev"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src/linux
26 sed -i -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
27 -e 's/av_set_parameters.*0/0/' \
28 -e 's/ dump_format/ av_dump_format/' \
29 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
30 -e 's/av_write_header(oc)/avformat_write_header(oc, NULL)/' \
31 -e 's/put_flush_packet/avio_flush/' \
32 -e 's/url_fclose/avio_close/' \
33 -e 's/avcodec_open(\([^)]*\)/avcodec_open2(\1, NULL/' \
34 miro-segmenter.c
35 python setup.py install --root=$DESTDIR
36 sed -i "s|./miro.real|/usr/bin/miro.real|g" $DESTDIR/usr/bin/miro
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/share
44 cp -a $install/usr/bin $fs/usr
45 cp -a $install/usr/lib $fs/usr
46 cp -a $install/usr/share/icons $fs/usr/share
47 cp -a $install/usr/share/miro $fs/usr/share
48 }