wok-next annotate mplayerplug-in/receipt @ rev 9207

offlineimap: fix WGET_URL and paths
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Mar 10 18:39:52 2011 +0100 (2011-03-10)
parents a527a7e82b76
children
rev   line source
jozee@3127 1 # SliTaz package receipt.
jozee@3127 2
jozee@3127 3 PACKAGE="mplayerplug-in"
jozee@3127 4 VERSION="3.55"
jozee@3127 5 CATEGORY="multimedia"
jozee@3127 6 SHORT_DESC="a browser plugin that uses mplayer to play videos from websites"
jozee@3127 7 MAINTAINER="jozee@slitaz.org"
slaxemulator@7140 8 DEPENDS="mplayer xorg-libXpm gtk+ gcc-lib-base"
slaxemulator@7140 9 BUILD_DEPENDS="mplayer gtk+-dev xorg-libXpm-dev firefox-dev libIDL gettext"
jozee@3127 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
jozee@3127 11 WEB_SITE="http://mplayerplug-in.sourceforge.net/"
jozee@3127 12 WGET_URL="http://downloads.sourceforge.net/mplayerplug-in/$TARBALL"
jozee@3410 13 TAGS="player audio video browser"
pascal@7143 14
pascal@7143 15 get_firefox_version()
pascal@7143 16 {
pascal@7143 17 FIREFOX_VER=`cat $1/var/lib/tazpkg/installed/firefox/receipt | \
pascal@7143 18 grep VERSION= | cut -d \" -f 2`
pascal@7143 19 }
jozee@3127 20
jozee@3127 21 # Rules to configure and make the package.
jozee@3127 22 compile_rules()
jozee@3127 23 {
jozee@3127 24 cd $src
pascal@7449 25 sed -i 's/npupp\.h/npfunctions.h/' */np*
pascal@4526 26 cp ../stuff/slitaz-hack.h include
pascal@4526 27 grep -q slitaz-hack include/npplat.h || sed -i \
pascal@4526 28 's/ne _NPPLAT_H_/ne _NPPLAT_H_\n#include "slitaz-hack.h"/' \
pascal@4526 29 include/npplat.h
pascal@4526 30 while read file; do
pascal@4526 31 [ -f done.$file ] && continue
pascal@4526 32 echo "Apply $file..."
pascal@4526 33 patch -p1 < ../stuff/$PACKAGE-$VERSION-$file || return 1
pascal@4526 34 touch done.$file
pascal@4526 35 done <<EOT
jozee@3410 36 glibc210.u
pascal@7450 37 static-iid-accessor.u
jozee@3410 38 EOT
pascal@4526 39 make distclean
jozee@3410 40 touch install.sh
pascal@7143 41 get_firefox_version
jozee@3127 42 ./configure --prefix=/usr --sysconfdir=/etc \
jozee@3127 43 --enable-gtk2 \
jozee@3127 44 --enable-wmp \
jozee@3127 45 --enable-qt \
jozee@3127 46 --enable-rm \
jozee@3127 47 --enable-dvx \
jozee@3127 48 MOZILLA_HOME="/usr/lib/firefox-$FIREFOX_VER" \
pascal@7449 49 GECKO_IDLDIR="/usr/share/idl/firefox-$FIREFOX_VER" &&
pascal@5783 50 make -j 4 &&
jozee@3127 51 make DESTDIR=$PWD/_pkg install
jozee@3127 52 }
jozee@3127 53
jozee@3127 54 genpkg_rules()
jozee@3127 55 {
jozee@3410 56 mkdir -p $fs/usr/lib
pascal@4526 57 cp -a $_pkg/etc $fs
pascal@4526 58 cp -a $_pkg/usr/lib/mozilla $fs/usr/lib
jozee@3410 59 # change the default video output to xv,x11
jozee@3410 60 sed -i "s/#vo=xv,x11/vo=xv,x11/" $fs/etc/$PACKAGE.conf
jozee@3410 61
jozee@3127 62 }
jozee@3410 63
jozee@3410 64 post_install()
jozee@3410 65 {
jozee@3410 66 echo -n "Processing post install commands..."
jozee@3410 67 local root
jozee@3410 68 root=$1
pascal@7143 69 get_firefox_version $1
jozee@3410 70 for i in $root/usr/lib/mozilla/plugins/$PACKAGE*.so ; do
jozee@3410 71 ln -s $i $root/usr/lib/firefox-$FIREFOX_VER/plugins
jozee@3410 72 done
jozee@3410 73 status
jozee@3410 74 }
jozee@3410 75
jozee@3410 76 post_remove()
jozee@3410 77 {
jozee@3410 78 echo -n "Processing post remove commands..."
jozee@3410 79 rm -f /usr/lib/firefox*/plugins/$PACKAGE*.so
jozee@3410 80 status
jozee@3410 81 }
jozee@3410 82