wok-6.x annotate miro/receipt @ rev 15558

Up: thunderbird-langpack-hu (17.0.11esr)
author Dominique Corbex <domcox@slitaz.org>
date Sun Nov 24 17:37:39 2013 +0100 (2013-11-24)
parents 8975c8651ce7
children bb009a6ef036
rev   line source
slaxemulator@7789 1 # SliTaz package receipt.
slaxemulator@7789 2
slaxemulator@7789 3 PACKAGE="miro"
pascal@14357 4 VERSION="5.0.4"
slaxemulator@7789 5 CATEGORY="multimedia"
slaxemulator@7789 6 SHORT_DESC="The free and open source internet TV platform."
slaxemulator@7789 7 MAINTAINER="slaxemulator@gmail.com"
slaxemulator@7789 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@7789 9 WEB_SITE="http://www.getmiro.com"
slaxemulator@7789 10 WGET_URL="http://ftp.osuosl.org/pub/pculture.org/$PACKAGE/src/$TARBALL"
slaxemulator@7789 11
slaxemulator@13262 12 DEPENDS="dbus-python python-pyrex pygtk gstreamer python-pysqlite pywebkitgtk \
slaxemulator@13262 13 shared-mime-info desktop-file-utils hicolor-icon-theme gst-python notify-python \
slaxemulator@13262 14 libtorrent-rasterbar gst-plugins-base gst-plugins-good gst-ffmpeg \
slaxemulator@13262 15 pycurl taglib python-gconf"
slaxemulator@13262 16 BUILD_DEPENDS="$DEPENDS python-dev dbus-python-dev pygtk-dev gstreamer-dev \
slaxemulator@13262 17 shared-mime-info-dev gst-python-dev libtorrent-rasterbar-dev libsoup-dev \
pascal@14357 18 libwebkit-dev gst-plugins-base-dev gst-plugins-good-dev ffmpeg-dev \
pascal@14357 19 imagemagick-dev taglib-dev libboost-dev"
slaxemulator@10827 20
slaxemulator@7789 21 # Rules to configure and make the package.
slaxemulator@7789 22 compile_rules()
slaxemulator@7789 23 {
slaxemulator@7789 24 cd $src/linux
pascal@14357 25 sed -i -e 's/av_open_input_file\(.*\), NULL/avformat_open_input\1/' \
pascal@14357 26 -e 's/av_set_parameters.*0/0/' \
pascal@14357 27 -e 's/ dump_format/ av_dump_format/' \
pascal@14357 28 -e 's/url_fopen\(.*\)URL_WRONLY/avio_open\1AVIO_FLAG_WRITE/' \
pascal@14357 29 -e 's/av_write_header(oc)/avformat_write_header(oc, NULL)/' \
pascal@14357 30 -e 's/put_flush_packet/avio_flush/' \
pascal@14357 31 -e 's/url_fclose/avio_close/' \
pascal@14357 32 miro-segmenter.c
slaxemulator@9067 33 python setup.py install --root=$DESTDIR
slaxemulator@9067 34 sed -i "s|./miro.real|/usr/bin/miro.real|g" $DESTDIR/usr/bin/miro
slaxemulator@7789 35 }
slaxemulator@7789 36
slaxemulator@7789 37 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7789 38 genpkg_rules()
slaxemulator@7789 39 {
slaxemulator@13262 40 mkdir -p $fs/usr/share/pixmaps
slaxemulator@13262 41 cp -a $install/usr/bin $fs/usr
slaxemulator@13262 42 cp -a $install/usr/lib $fs/usr
slaxemulator@13262 43 cp -a $install/usr/share/miro $fs/usr/share
slaxemulator@13262 44 cp -a $install/usr/share/mime $fs/usr/share
slaxemulator@13262 45 cp -a $install/usr/share/applications $fs/usr/share
slaxemulator@13262 46 cp -a $install/usr/share/icons/hicolor/48x48/apps/miro.png $fs/usr/share/pixmaps
slaxemulator@7789 47 }
slaxemulator@7789 48